This repository was archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Validation
Demi - Alvaro Martinez de Miguel edited this page Dec 2, 2015
·
2 revisions
With everything on board and working it's time to test our library and validate its model. To do this task a simple mechanic has been designed that uses all the features GW has available.
##Concept
We have a closed stage with some platforms. our player starts at the top platform and has to go through a whole at the bottom. To try and stop us there are some enemies that kill us the moment we touch them.
How do we check all the wrapper features:
- Loader: It loads a set of images and audio.
- Controller: After loading the assets, the controller will return the programmer control of the game.
- Render: Must draw on the screen our game objects.
- Loop: If any object changes its states it will be working.
- Input: The user will be controlled in teo ways_
- Keyboard: left and right arrows will handle horizontal movement and the up arrow will allow it to jump.
- Click: When a click is done the player will automatically move to x coordinate of the click event.
- Touch: exactly the same as click.
- Tween: The enemies will move from left to right and viceversa with a tween function.
- Physics: walls and platforms will have a physic body, also the player an enemies. This way they will be able to move on top of platforms and get stuck when trying to surpass a wall. Also collision will be checked between enemies and the player.
- Audio: some actions of the game like, winning, loosing or jumping have audios attach that sound when that event is triggered.
- Sprite: All images of the game are sprite objects.
- Text: A countdown timer will be shown at the top left corner of the screen
- Resource: Everytime a sprite object is created it asks the loader for the resource path, which is returned as a Rosource object.
###Ending conditions
Winn: The player will win if he arrives to the hole on the floor without any problem. Loose:
- The countdown gets to 0.
- The Player collides with an enemy.
If the game can be played without errors and gets right this 3 sceneries. The wapper passes the test successfully.
#Index
