Debasis1963 / Sample-game

This code example shows how to use a timer, mouse input, keyboard input, and other elements of a simple game. The example also shows how to use the state design pattern for the three states in the game, the introduction screen, the game, and the game over screen. This complicates the code somewhat, but makes it much easier to add states to the game. It is not really a game, more of a sketch for a game architecture.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample-game

#Help required

This code example shows how to use a timer, mouse input, keyboard input, and other elements of a simple game. The example also shows how to use the state design pattern for the three states in the game, the introduction screen, the game, and the game over screen. This complicates the code somewhat, but makes it much easier to add states to the game. It is not really a game, more of a sketch for a game architecture.

About

This code example shows how to use a timer, mouse input, keyboard input, and other elements of a simple game. The example also shows how to use the state design pattern for the three states in the game, the introduction screen, the game, and the game over screen. This complicates the code somewhat, but makes it much easier to add states to the game. It is not really a game, more of a sketch for a game architecture.

License:Apache License 2.0


Languages

Language:Java 100.0%