Games:Example:MoveOnGrid:Summary

From FANG

Jump to: navigation, search


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