90 likes | 207 Views
Game Programming Elements. By Mr. Lee. Backgrounds. The image that appears in the background (duh!). This might be a horizon, or clouds, trees and rainbows in the distance If you’re playing from a birds eye view, the background would be the floor ( eg ; WarCraft , Raiden ). Rooms.
E N D
Game Programming Elements By Mr. Lee
Backgrounds • The image that appears in the background (duh!). • This might be a horizon, or clouds, trees and rainbows in the distance • If you’re playing from a birds eye view, the background would be the floor (eg; WarCraft, Raiden)
Rooms • The room is the area you play the game in. • Think of it like a movie scene – you might have different rooms for different scenes/levels etc. • The room will have all the objects etc that make the game.
Objects • Objects are things in the game that interact with each other. • An object is the character, the walls, the trees, the gun, the bullets... Anything that the player can interact with. • By interact, I mean pick up, collide, destroy, move, talk to, etc.. What you want me do?
Sprites • Sprites = another word for graphics/animations. • They are like clothes for objects. • Objects don’t look like anything – until you select a sprite for them. • An object can have many sprites: a normal sprite, a explosion sprite, a move left sprite, a move right sprite, an armoured sprite. • The object can change sprites depending on what happens in the game.
Sounds • Just as sprites are images for the object, sounds are voices/noises for them. • An object can have many sounds; a sound for running, a sound for dying, a sound for talking..
Events • Events are triggers for the object to react/do something. • An event could be “on mouse click”, “on keyboard left key pressed”, “on collision with wall”, “on collision with bullet”... Etc. • Think of the word “ON” as “WHEN” • Events are useless unless you have...
Actions • Actions! • These are what the object(s) does when an event happens. • An action could be “move 5 pixels to the left”, “change sprite to explosion sprite”, “play sound “oww”, “destroy object wall”, “create object bullet”, “move object bullet 100 pixels right”, “set lives to subtract 1”.. • An event can have many actions!