CSS 290: Video Games and
Computer Programming
Reading: Conditional Statements
•
PLAD Ch 4
– The objective for this book is to provide you with a clear,
CONCEPTUAL understanding of what the different programming concepts are
– We will then use GameMaker, and then C#, to see concrete examples of them.
– 4.1: Really good – flowchart aspect is really nice, as are the ‘relational operators’
– 4.2: If / Else
– 4.4: Nested and “Chained” decisions
–
SKIP: 4.3, 4.5, 4.6, 4.7
CSS 290 2
Reading: Conditional Statements
•
GMA Ch 3, Ch 4
• We won’t cover all of this exactly, so you don’t need to read this in excruciating detail
–
Title/Finish Screen: pg 60-61
– ‘Next Room’ example: Pg 58-60
–
Ch 7 (the Koala-BR8 game) is a nice maze game that demonstrates more complicated use of conditionals
•
(It may be helpful to read through for the conditionals)
CSS 290 3
Next Lecture: More C#
•
PLAD, Ch 4 (4.1, 4.2, 4.4)
•
GMA Ch 3, Ch 4
•
C#: Chapter 5
– Conditional Branching Statements
CSS 290 4
Tutor Now Available
•
Mondays, Wednesdays, from noon till 2pm
–
Starting THIS week (April 14)
•
In the Windows lab
•
Feel free to drop by & do homework, study, surf the web, etc, etc
CSS 290 5
A1
•
Has been graded & returned
–
Emailed to whatever address you put into
StudentTracker
CSS 290 6
A1 revision
•
You have until next Tuesday (April 22 nd ) to get it done
• Bring it to class, and we’ll hand it in then
CSS 290 7
A2 was due Tuesday
•
Again, it has two parts:
–
Part 1: Practice C#/XNA skills
– Part 2: Another, NEW, GameMaker game, with evaulation
•
.ZIP both of them into a SINGLE file, and hand that SINGLE file into StudentTracker
– We’ll go over this now
CSS 290 8
A3 is due next Tuesday
• It’ll be posted after class
CSS 290 9
And now… the quiz!
•
Create a GameMaker game, with a <plane>, a
<bullet>, and an <enemy plane>
–
When the user pushes the space bar, the <plane> shoots a <bullet> towards the top of the screen
–
When the <bullet> hits the <enemy plane>, they both disappear, and the game goes to the next room, but ONLY IF THERE IS ANOTHER ROOM
–
Make 2 rooms, put a <plane> and <enemy plane> into each one
CSS 290 10