Simple Game using Allegro Library and GameObject Structure
Functional Requirements
The program will have a display size of 640x480.
A player object (20x20 rectangular shape with blue colour or a bitmap) will be moved by the arrow keys.
5 Enemy objects (20x20 rectangular shape with red colour or a bitmap) will start in random locations and move in random directions. They bounce when they hit the sides of the screen.
5 score objects (20x20 rectangular shape with green colour or a bitmap) will be placed in random locations without any movement.
If the player's distance to an enemy is less than 10 the game ends.
If the player's distance to a score object is less than 10 the object will disappear (player will pick it up) and player gets a score. Once all score are picked up, the game ends.
If the player press Escape at any time the game ends.
You may use any colour or shape for the objects as long as objects of the same type look the same.