AS3 ROBOT NAIGATION GAME DESIGN ( ERY BASI DESIGN ENOUG - 2 DAYS ) - open to bidding
$30-250 CAD
Paiement à la livraison
ActionScript 3 MVC Robot Navigation Game
You are requested to design a fully OO ActionScript 3 game based on an MVC architecture.
In this game the player controls a robot where the following can happen:
1 – User clicks somewhere on the screen.
2 – The controller handles the click and converts the event into an appropriate action. For example if the terrain is occupied by an enemy, an attack action is created, if it is empty terrain, then a move action is created and finally if the place where the user tapped is occupied by an obstacle, do nothing.
3 – The controller updates the robot‘s (model‘s) state accordingly. If the move action was created, then it changes the position, if the attack, then it fires.
4 – The renderer (view) gets notified about the state changes and renders the world’s current state.
What this all means is, that the models (robots) don’t know anything about how to draw themselves, or how to change their state (position, hit points). The controller is in charge of changing the models’ state and notifies the renderer. The renderer has to have a reference to the models (robots and any other entities) and their state, in order to draw them. The MVC controller represents the game main loop that acts as a super controller, which updates the states and then renders the objects onto the screen many times a second. The different basic aspects (concerns) of the required game is as follows:
The model
The robot is controlled by the player
An arena where the robot can move
Some obstacles
Some enemies to shoot at
The controller
The main loop and the input handler
Controller to process player input
Controller to perform actions on the player’s robot (move, attack)
The view
The world renderer – to render the objects onto the screen
The basic layout of the game can be seen in the following figure (certainly you can replace the robot, enemies and obstacles with more meaningful images):
The attached Java program implements this game. You may benefit from this Java program to write your own ActionScript 3 MVC game. You can learn more information about this Java game from:
[url removed, login to view]
Additional requirements for this game is to add new actions (attack) when an enemy is clicked and to have at least two levels with meaningful way to win a level and go to the next level as well as to have a game over when the enemy kills the robot.
Nº du projet : #5690641