Hello,
I provide you an AgkSharp - project with all files and source code.
It is a complete game inspired by the classic'Asteroids'.
The code is largely documented.
At first I wanted to make a tutorial out of it. But I gave up after the twentieth page.
I'm not a writer, I prefer programming.
I hope you can still use one or the other of the code for yourself.
The video is not as soft as the game actually is. That's the recording software's fault.
To the game.
Steering
W / S Forward / Reverse thrust
A / D Rotate left / right
SPACEBAR Fire
SHIFT Ghost mode
or with a game controller.
Buttons:
A - Fire
B - Ghost mode
Remark
This example project shows a possible State/StateManager implementation.
It uses the particle effect files from the particle editor using a particle manager.
The number of asteroids increases with each level.
At the beginning of each level, the player is automatically in ghost mode for 3 seconds and the movement is half as slow. This effect is only for demonstration purposes of my GameState class.
In ghost mode, the player is invulnerable but can no longer shoot. The mode continues for 3 seconds. Can be used as often as you like.
Sources of media used.
Background --> Created with SpaceScape.
Asteroids --> DLC - Package from TGC (Giant Asset Pack)
Shots --> Self-made
Particle effect --> Pictures from sample project SpaceShooter and self-made.
Playership --> DLC - Package from TGC (Giant-Asset-Pack)
Sound --> Example project SpaceShooter
Music --> from modarchive.org with the license CC0 (Public Domain).
Title image --> composed of several image files from TGC (Giant-Asset-Pack).
Share your knowledge. It\'s a way to achieve immortality.
(Tenzin Gyatso)