Game Programming Final Exam Notes Video Game Invasion Section
Although NOT the very first video game, it was the first video game that lots of people played Pong
What made pong really fun? Ball speedup and sound
What did Atari do to prevent people from replicating their arcade game technology? They mismarked some chips on the circuit boards
Where did Steve Jobs work before founding Apple Computer Co. with co-founder Steve Wosniak? Atari
Nolan Bushnell founded Atari and what other very famous company? Chuck E Cheese’s
What was the first arcade game to display a high score? Space Invaders
What was the first video game to have a story support the game action? Donkey Kong
Shigeru Miyamoto from Nintendo in Japan thought Donkey Kong meant what? Stubborn Gorilla
What was Pac Man’s original name that was changed due to the fear that vandalism would create profanity? Puckman
10. The guys who started _____ worked at Atari and left to make games without making consoles. One of their first games was pitfall. One of their most famous games is the Call of Duty franchise. Activision
A horrible game made from Steven Spielberg’s movie ET, basically killed what company? Atari
In 1985, what company stood up and saved the video game industry with their console named the NES? Nintendo
What was one of the things that made Super Mario Brothers such an awesome game? Side scrolling.
Trip Hawkins founded Electronic Arts after he left ______just like his boss, Steve Jobs, had left Atari. Apple
Madden wouldn’t put his name on a 7-on-7 football game. Instead he wanted real football with how many players on each team? 11
Roberta and Ken Williams from Sierra Online got graphics, better color and sound into video games thus creating the need for ______and video cards. Sound Cards
What did Leisure Suit Larry have to lose in Las Vegas? His virginity.
Tetris came from Russia and the guy who invented it, Alexey Pajitnov, made no money because of what? Communism
Which portable Nintendo system did Tetris help launch? Gameboy
What was Sega’s answer to Mario? Sonic the Hedgehog
Wolfenstein 3D helped create the video game genre ______. First Person Shooter (FPS)
Wolfenstein 3D was the first game to be released in portions so that playing the ______portion of the game would hook players into buying the other portions. Free Demo
What new type of game play started with Doom? Death Match Multiplayer.
Doom spawned the whole culture of ______games Modding
Nintendo came up with the name ______but chose not to work with Sony so Sony made it on their own. Playstation
What company makes Xbox? Microsoft.
Will Wright developed Sim City which started the ______genre. Simulator
What does MMORPG stand for? Massively multiplayer online role playing game
Video games got blamed for the ______Columbine Massacre
Where does Mr. Guarino take his Tech Club to experience a retro 80’s arcade? Yestercades Game Programming Final Exam Notes Flash/ActionScript Section
In ActionScript, a function is used to group and organize a few lines of code into a procedure or routine.
In ActionScript, if you want to display something to the output panel, you use the trace command.
Words reserved by ActionScript such as IF cannot be used as a name for a variable.
When a programmer uses a variable name that is two words together it is customary to use camelCase which means to capitalize the first letter of the second word (myNumber).
The ActionScript code count ++ is the short form that adds one to the value of the variable count.
Using the variable monstermaker in ActionScript causes an error when the variable was declared as monsterMaker because the case does not match.
In the ActionScript code, var monster:MovieClip; the data type of the variable monster is MovieClip.
The following ActionScript statement, this_animator.addEventListener(MotionEvent.MOTION_END, hurtPlayer); runs the hurtPlayer function when the motion of the animation ends.
ActionScript is the programming language we used to make our pong game.
In ActionScript, String is the proper way to declare a text variable.
In ActionScript, Number is the proper way to declare a number variable.
If we want a number variable in ActionScript to not have any decimal or fraction component, we declare it as an int.
The following ActionScript code would align the movie clip, boarder_mc, to the center of the stage: import flash.display.MovieClip; function align(obj:MovieClip):void { obj.x = stage.stageWidth / 2 - obj.width / 2; obj.y = stage.stageHeight / 2 - obj.height / 2; } align(boarder_mc);
To use files in a zipped file folder correctly, they must first be extracted.
Keywords like function and stage in the training videos showed up in blue.
In ActionScript code, we can position objects on the stage using their x and y position. If the name of the object is boarder_mc and we want it 200 pixels from the left edge of the stage the code would be boarder_mc.x = 200;
We used Adobe Flash to make our pong game.
In ActionScript code, we can position objects on the stage using their x and y position. If the name of the object is boarder_mc and we want it 200 pixels from the top edge of the stage the code would be boarder_mc.y = 200;
Decreasing the value of the variable easing in the ActionScript code below will cause the object paddle_mc to move faster. function movePaddle(event:Event):void { if(this.mouseX <= paddle_mc.width/2) { targetX = 0; } else if(this.mouseX >= stage.stageWidth - paddle_mc.width/2) { targetX = stage.stageWidth - paddle_mc.width; } else { targetX = this.mouseX - paddle_mc.width/2; } paddle_mc.x += (targetX - paddle_mc.x) / easing; }
The problem with the following Actionscript code is that you cannot declare a variable twice. var tail:Number; var foot:Number; var bunny:Number; stage.addEventListener(MouseEvent.CLICK, hop); tail = 3; foot = 2; var bunny = tail + foot;
A program one could use to edit graphics for import into Adobe Flash for use in a video game is Adobe Photoshop.
Graphic elements imported into Adobe Flash that are not rectangular need to be a file type that supports transparency to prevent having a white rectangle visible around it. A file type that does not support transparency is a jpg.
To be able to control something in Adobe Flash it must be a symbol.
A symbol must have an instance name in order to control it with Actionscript code in Adobe Flash.
In the figure above, to create an AS linkage by exporting for ActionScript, choose the properties link.
In the figure above, to use the Monster symbol as an ActionScript class, the box export for ActionScript needs to be checked off.
The following ActionScript statement, this_animator.addEventListener(MotionEvent.MOTION_END, hurtPlayer); runs the hurtPlayer function when the motion of the animation ends.
When you make a simple Flash animation, you choose properties like the position of the object on the first frame and then set different properties at the last frame. You then create a tween causing flash to generate all the properties in between the first and last frames to allow the object to gradually change. For example, move from left to right, get bigger, spin, disappear, etc.
The ActionScript code flash.media.SoundMixer.stopAll; will NOT stop a song from playing because there is no open/close parenthesis after stopAll and before the semicolon.
The programming language we used to make our shooter game was ActionScript.
In the code below from our shooter game, to create a monster every 2 seconds we could use the timer code below but we must use 2000 milliseconds. monsterMaker = new Timer(2000, monstersInGame);
The following code has a problem because you cannot declare a variable twice (bunny). var bunny:Number var tail = 3; var foot = 2; stage.addEventListener(MouseEvent.CLICK, hop) var bunny = tail + foot;
Words reserved by ActionScript such as IF cannot be used as a name for a variable.
When a programmer uses a variable name that is two words together it is customary to use camel case which means to capitalize the first letter of the second word (myNumber).
In ActionScript, a function is used to group and organize a few lines of code into a procedure or routine.
In ActionScript, if you want to display something to the output panel, you use the trace command.
The ActionScript code, count ++ is the short form that adds one to the value of the variable count.
Using the variable monstermaker in ActionScript causes an error when the variable was declared as monsterMaker because the case does not match.
In the ActionScript code, var monster:MovieClip; the data type of the variable monster is MovieClip.
If we downloaded a song from youtube to use in a flash game we would first need to import it to the library.
If we imported a song to the library of our flash game, the following code would only work if we linked the song file by exporting it for ActionScript with a class name of Music. var song:Sound = new Music();
If we want to use the graphic below in our flash game but do not want to see the black outline or the yellow background we can use PhotoShop to make them transparent.
If we want an object to have an animation occur when it appears on the stage we can create the animation on a scrap layer on the timeline and then Copy Motion as ActionScript 3.0. We can then paste the code into our object. When we finish our code we need to remember to delete the scrap layer.