Games:Example:MoveOnGrid:Summary

From FANG

Jump to: navigation, search

Note: This example is currently being updated to use a new version of the FANG Engine.

media.php?f=Games-Example-MoveOnGrid.jpg

Move On Grid by Jam Jenkins

Shows how to move a sprite smoothly between grid locations rather than jumping directly to the new position. Click on a cell and the circle will move to that cell over a 1 second duration. This example is particularly useful for writing turn-based games such as tic-tac-toe, checkers, or chess where there should be a smooth transition when moving game pieces.

Source Code: MoveOnGrid.java, GridTracker.java, Grid.java

Click here to run the Move On Grid example.





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games