IS660Z – Programming Games Using Visual Basic Required session 3 June 16, 2004.

Slides:



Advertisements
Similar presentations
TGI Tic Tac Dough Game.
Advertisements

Microsoft® Small Basic
IS660Z Programming Games Using Visual Basic Overview of Cannonball.
Tic Tac Toe size(600,600); Aim: How can we set up our canvas and display for a Tic Tac Toe game? 1. Sketch the two drawings and write the two code.
Lecture Roger Sutton 21: Revision 1.
Microsoft® Small Basic
Tic Tac Toe Game Design Using OOP
Introduction to Programming Using simple games to convey introductory concepts MERLOT International Conference 2004 Tracey Jensen Assistant Professor,
Integer Tic Tac Toe Let’s Begin Rules: 1.Erase all x’s and o’s from the previous game before you begin. 2.Decide which player will be x’s and which will.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
TGI Tic Tac Dough Game READ ME Do NOT delete or add slides in this game. Not all of the slides in this file will play during a slideshow. The first eight.
CIS101 Introduction to Computing Week 02. Agenda Your questions CIS101 Blackboard Site online.pace.edu and the online orientation Excel Project One Next.
General Computer Science for Engineers CISC 106 Lecture 19 Dr. John Cavazos Computer and Information Sciences 04/06/2009.
CIS101 Introduction to Computing Week 03. Agenda Your questions Online gradebook and quizzes Register for WEBSPACE Excel project two This week’s assignments.
ITC242 – Introduction to Data Communications ITC431 – Computer Networks Week 13 Exam Preparation.
1 TEL 104 / MKK Fundamental Programming: Introductory Lecture.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
CSE 115 Week 12 March 31 – April 4, Announcements March 31 – Exam 8 March 31 – Exam 8 April 6 – Last day to turn in Lab 7 for a max grade of 100%,
CIS101 Introduction to Computing Week 02. Agenda Your questions CIS101 Blackboard Site Excel Project One Next Week.
Programming Games Using Visual Basic IS660Z Graduate Elective for IS Majors Lecture 1 – 6/2/2004.
CIS101 Introduction to Computing Week 10. Agenda Your questions Final exam and final project CIS101 Student Survey Class presentations: Your Mad Libs.
IS660Z – Programming Games Using Visual Basic Required Session 2 June 9, 2003.
CIS101 Introduction to Computing Week 12 Spring 2004.
© The McGraw-Hill Companies, 2006 Chapter 16 Two-dimensional arrays.
COMPSCI 101 S Principles of Programming Lecture 1 – Introduction.
MrsBillinghurst. net A2 Computing A2 Computing Projects Game Animation in Pascal.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Introduction to Engineering Computing GEEN 1300 Lecture 7 15 June 2010 Review for midterm.
Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th.
Visual Basic Games: Prepare for Hangman
Visual Basic Games: Week 3 Global variables, parameters, Select, KeyDown Enable, Visible, Focus State of Game Read chapter 3.
11 Finding Winners Using Arrays Session 8.2. Session Overview  Find out how the C# language makes it easy to create an array that contains multiple values.
Case Study: Game2D with Method Design
Programming Games Simulated ballistic motion: cannon ball. Classwork: Final day for midterm project and all projects for first part of class. Homework:
Introduction. 2COMPSCI Computer Science Fundamentals.
Programming Games in Visual Basic: Data base Catch up questions Data base: generalities & specifics on Visual Basic links Lab: work on projects.
MAT Meyer Week 2 Programming VB: ‘basics’ Review & preview: Events, variables, statements, etc. Images, Control arrays, For/Next Assignment: read.
CIS101 Introduction to Computing Week 03. Agenda Your questions Online gradebook and quizzes Your Web space Review of charts and today’s homework Excel.
VB Games: Preparing for Memory Brainstorm controls & events Parallel structures (again), Visibility, LoadPicture, User-defined procedures, Do While/Loop,busy.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Visual Basic Games: Week 4 Recap Parallel structures Initialization Prepare for Memory Scoring Shuffling Homework: when ready, move on to next game/chapter.
Chapter 5: More on the Selection Structure
Just Say NO! No Drinks or Food No Game Playing No Personal No Cell Phones Seen No Cell Phones Heard No Drinks or Food No Game Playing No Personal.
Programming games using Visual Basic Files; files vs. databases Reprise on state of program Lab/HW: work on projects, final project.
Chapter 3 Control Structures. The If…Then Statement The If…Then statement is a Decision statement = that executes a set of statements when a condition.
How to Successfully Prepare for Your EXAMS on Twitter and at
Welcome to... A Game of X’s and O’s. Another Presentation © All rights Reserved
Programming games in Visual Basic Review programming & VB topics Insertion sort. Best times. Generate questions & answer patterns for quiz Lab/Homework:
TGI Tic Tac Dough Game READ ME Do NOT delete or add slides in this game. Not all of the slides in this file will play during a slideshow. The first eight.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Programming games using Visual Basic Detecting a position on top/within a rectangle, near a point, past a line Mouse events.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Programming for Art: Arrays – 2D ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 16 Fall 2010.
Principles of Imperative Computation Lecture 1 January 15 th, 2012.
Chapter 9 Introduction to Arrays Fundamentals of Java.
Boxes. boxes- learning targets o I will be able to display buttons (boxes) o I will be able to organize boxes o I will be able to create an animation.
1 Quiz Show Programming Terms. 2 Alice - 3D Virtual Programming Vocabulary Quiz Board Chapter 1 Chapter 2a Chapter 2b Chapter 3 Chapter 4 $100 $200 $300.
Algorithms. An algorithm is an effective method expressed as a finite list of well- defined instructions for accomplishing a goal.. Have one student give.
Programming Right from the Start with Visual Basic .NET 1/e
Lecture 5 of Computer Science II
Algorithms.
O X X O O X X O X O X O O X O X O X Tic Tac Toe Graphical
Variables Data Types and Assignment
IPad Center.
CS285 Introduction - Visual Basic
Visual Basic: Week 5 Review User defined functions
Test Next Week Summer 3, 2016 Midterm Exam
Variables Data Types and Assignment
Variables Data Types and Assignment
CS51A David Kauchak Spring 2019
Presentation transcript:

IS660Z – Programming Games Using Visual Basic Required session 3 June 16, 2004

Agenda Last minute corrections and fixes to Cannonball and posting of assignment Discussion questions from Blackboard Overview of Minesweeper, Tic Tac Toe Suggestions for other games

Lecture begins soon … Students can finish up Cannonball and post to digital drop box Students missing project 2 presentation will present

Discussion questions Managing enhancements Keeping cannon length constant Finding the formulas to solve this problem Angles vs. radians

Structures in code Functions – return a value that answers a question or solves a problem Sub-routines – carry out a task but do not return a value Event handler – responds to an event captured by OS

Final project Final project presentation next Wednesday Your choice: Enhanced Cannonball Minesweeper Tic Tac Toe Your own game?

Final week wrap up Second exam last hour of class Conducted online Same kinds of questions as midterm Open books, open notes, but no electronic resources (Internet) Week 4 discussion postings due by 9 am Saturday, June 26th Post-course anonymous survey due by 9 am Saturday, June 26th

Enhancements to Cannonball Scoring Move the target as well as the cannon (requires multiple timers) More realistic rendering of cannon, target, scene Other ideas?

Minesweeper Control array of label objects represents the minefield Mines are randomly scattered throughout the minefield and hidden from player Sophisticated mouse actions determine player’s move

Minesweeper Design Issues 3 parallel data structures Actual minefield visible to player Hidden location of mines Location (state) of player’s markings, i.e. what cells have been uncovered or flagged

Minesweeper cont. Visible minefield – control array of label objects Two internal arrays Two dimensional array of Boolean values (True, False) One array records hidden location of mines, other status of each cell Similar to spreadsheet

2 dimensional arrays Declaration: Dim blnMinesOn (1 to conSize, _ 1 to conSize) As Boolean Access individual element with 2 subscripts: blnMinesOn(i,j) = True Processing requires nested loops: For i = 1 to conSize For j = 1 to conSize blnMinesOn(i,j) = False Next j Next i

Tic Tac Toe Simple child’s game is last chapter in the book! Requires two dimensional array to represent board Implement strategies for computer’s choice of move (AI) The Cat wins in case of a tie

Tic Tac Toe Design Issues How to recognize a win? (p. 183) Drawing a winning line Cascading events (p. 182) Implementing levels of play for the computer (p. 185)

VB Exercise Pre-minesweeper – introduces algorithm for recognizing mouse combination clicks Left click Right click Left click with right button down

Last week! See you online