Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AgkSharp] Dust To Dust - Game with full project source and code commentary

Author
Message
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 21st Jul 2018 05:36 Edited at: 21st Jul 2018 05:37


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)
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 21st Jul 2018 08:16
Oops, forgot download link.

Dust2Dust
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 21st Jul 2018 19:06
Show my second post. There is a link to the download.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 21st Jul 2018 20:04 Edited at: 21st Jul 2018 20:04
Have you another screen ?
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 21st Jul 2018 20:15
Sorry wrong settings. It should work now.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 21st Jul 2018 22:32
Thank you! I've been hoping someone would post a template project with AGKSharp so I could learn the basics. I taught myself a little bit of C# like ten years ago, just never got into it, so when AGKS came out I downloaded it right away to try and get back into it.

Good job buddy!
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 21st Jul 2018 23:31
nice, thanks
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 11th Feb 2019 21:39
Hi,
can somebody help me out? I have compiled the Dust2Dust game on the Mac and wanted to know if it runs on a real Mac or not. It shouldn't matter if mono is installed on the Mac or not. Also if the development environment is installed should not play a role.
Please test it and give me feedback, please.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-03-28 23:12:10
Your offset time is: 2024-03-28 23:12:10