Java ME Games
Author: Samuel Williams When: Tuesday, 10 August 2010April 2009
May 2009
August 2009
September 2009
October 2009
- Building a Concrete Bath
- LED Lighting Comparison
- Thinking about Programming Languages
- How To Be A Consultant
- Lucid Programming Dojo
- Exim4 + ClamAV + SpamAssassin
- Secure login using AJAX
- Ramaze And Rack
- ActiveMerchant
- Concurrency And Immutability
- Floating Point Numbers
- Programming And Debugging
- Useful jQuery Plugins
- Loading Anonymous Ruby Classes
- 尺八 (Shakuhachi)
- Card Trick
- Object Oriented C
- Gemcutter
- Writing Clearly
- Richard Stallman In Christchurch
- Magnatune
- Client Side Graphing
- Zena CMS
November 2009
February 2010
March 2010
April 2010
May 2010
June 2010
July 2010
August 2010
September 2010
December 2010
January 2011
March 2011
May 2011
August 2011
September 2011
I have developed two Java ME games. The first game is a 2D tile based game, and the second is a simple 3D animated world using the M3G API.
Snails
In this game you play an aphid collecting seeds, and you must gather these and avoid the snails.
This game makes extensive use of the Java ME LCDUI classes including the LayerManager, TiledLayer and GameCanvas classes.
There are four tile sets used, and two animated sprite characters.
The character sprite sheets are animated from left to right and have four poses, forward, right, back, left.
I made the water sprite sheet by hand.
The map was put together using Tiled Map Editor, a fairly powerful map editing tool. The map data was hard coded into the application to reduce the amount of development work required.
The movement of the snails is calculated by moving one tile at a time, and at each tile, checking which direction the snail can move in. If the snail can move in the same direction, there is a high chance that the snail will keep moving in that direction, otherwise, the snail will randomly try one of the other available directions.
Robots
In this game you can watch a robot walk around in circles. The robot is animated using simple keyframe animation.
Several textures were used to add realism to the scene. The trees are rendered using Sprite3D.
Comments
Please note, you can leave a comment that uses (limited) XHTML and Textile syntax.