Reference no: EM132962284
IN2026 Games Technology - City University of London
Part I
Implement either:
a) A start screen, or
b) Asteroids that split into smaller asteroids when hit
Hints
To implement a start screen you will need to look at how the Asteroids class starts a game session and add some additional code to display a message and wait for a key to be pressed. Once a key has been pressed the spaceship can be created.
To implement asteroids that split into smaller asteroids when they are hit you will need to extend the current Asteroid class to add new asteroids when it explodes.
Part II
Implement either:
a) A high score table, or
b) A bonus/power-up system
Hints
The simplest possible implementation would display the high scores for a single session (this would not require the player to input their name). A more sophisticated implementation would save and load high scores from a text file (and would require players to input their name).
To implement bonuses and/or power-ups you will need to implement new subclasses of GameObject that, when they collide with a Spaceship, alter the way the Spaceship behaves in some way. You might want to implement a new type of listener that would allow the game to change its display. Types of bonuses and power-ups might include: extra lives, bullet upgrades, ship upgrades, shields, etc.
Part III
Implement either:
a) A demo mode, or
b) An alien spaceship
Hints
A demo mode should be designed to run while a start screen or high score table is being displayed. The demo mode should display a game being "played" by a computer controller. The simplest possible demo mode would control the spaceship using a random controller. A more complete implementation would use navigation and targeting algorithms to control the spaceship. The computer player doesn't have to be great at playing the game. If you try to make the behaviours of the computer player believable, don't forget to write an explanation of how you've tried to do it.
An alien spaceship is a natural extension to the bonuses/power-ups task in Part II. To implement an alien spaceship, you will need to implement a computer control system for the spaceship. Your alien spaceship should be able to navigate itself across the game world, try to avoid the player's bullets and fire at the player's spaceship. As with the demo mode, you don't have to make the control of the alien spaceship particularly intelligent, but you might want to try to make it believable. To make the implementation a bit easier you can make the alien spaceship invulnerable to collisions with asteroids.
Attachment:- Games Technology.rar