Monday, 16 November 2015

Pong - Game Salad


Actors
Actors are assets that you add into the scene, the actors contain the players background elements, avatars and behaviors. In my game I have 4 actors, player 1, player 2, a wall and the ball. Each of my actors have different shapes and work independently of one another but each have a set of rules which tells them how to react to the different actors. For example the actor ball will bounce off of player on if it comes into contact with it while player 1 will not move if it collides with the ball. 


Scenes

The scene is just the level or stages of the game, its what the player would see when playing the game and represents the environment the player is in. 


Rules

The actors must also have rules to determine how they move and react to other actors. For example, the ball is given the rules to not pass through any of the actors and to bounce of them if it collides with any of the other actors.
Behaviors

After you have added Rules to the actors you can then give them Behaviors, these are similar to rules but instruct an actor to do something. For example you can tell an actor spawn another actor, play a tune or move in a certain direction when a button is pressed. 
  

No comments:

Post a Comment