If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

The ant is the playable character you control by using the arrow keys.

Every time you load the page, or click "restart game", three new items will
spawn randomly on the level and the time will be reset to 0 seconds.

An arrow key must be pressed to start the time counter and the game itself.

There are only 5 items so far, cheese, apple, banana, candy and donut.

The items are supposed to be collected as quickly as possible, when the last item has been collected
(by simply running over it) the game will end, save the time and display a hi-score list.

Time limit is 30 seconds, the game will display a classic "GAMER OVER" if the limit is overrided.

Problems I'm trying to solve:

1: Fullscreen mode (and make the ant actually STAY on the screen)
I want the game level to adapt itself to the computer screen. The game dimensions are 1000x600px at the moment but the ant does not respect the level dimensions. Screenshot: http://i41.tinypic.com/kc1j81.jpg. I have a feeling about that somekind of percental code has to be implented but I've never done this before. (Please note that the size of the ant and the items will remain as they are)

2: Spawning three items randomly on the level
I drew 5 items and saved them as 100x100 PNG. Three of these items have to spawn at a random location on the fullscreen level. The LAST item collected must trigger the time counter to stop. The time will later be used on the hi-score list where he/she can type her nickname. This information will be uploaded to a database.

3: 30 second time limit
Letting the time counter reach 30 seconds will trigger a "GAME OVER". The only way to try again is page refresh or "restart game".