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 / Converted T1 SpaceShooter-Demo to T2

Author
Message
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 22nd Apr 2016 15:17
Hello,

this is my first post in the agk Forum. Now I wanted to inspect the agk 'Tier 2'. To learn some commands and capabilities of AppGameKit, I have converted the demo project 'Space Shooter' from Tier 1 to Tier 2. I hope some one

I hope someone finds it useful. I look forward to comments and suggestions.

Note:
1. It is nearly one to one implementation.
2. In the File 'Player.cpp', function 'Fire Bullets' is a loop finished by 'goto'. I have learned that this is a bad programming style so I have taken a more elegant solution.
The corresponding part is commented out.

Btw: I have not seen Lee's video. So if a few thing are identical or similar that is purely coincidental.

I will convert this project further to include more c ++ elements.

Happy coding
MadBit
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 5th May 2016 00:13
Hi, as I promised the project is now fully written in C++. This time with all the media files and an executable file. I commented the source code with my poor english. I hope you can do something with the comments.
Writing the comments have taken longer than to translate the project in c++.

This project (and this from the first post) need an environment variable 'AGK2_T2DIR'. This must be set manually.

So, open a console window and enters the following:

Now you must log out and log in again.
That's it.

Who has interest, just look into it.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine

Attachments

Login to view attachments
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 5th May 2016 09:30
I'll be sure to check it out later! Thanks.
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 8th May 2016 08:00
Can you run both and see what the fps is on both. Would be interesting to see the performance difference if this is a straight conversion.
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 12th May 2016 23:38
Sorry for the late reply. There is no performance differences, because there is too few program logic's inside. I've tested both versions with identical frame rates. (Laptop: ~ 1500 fps and desktop: ~ 4700 fps)
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine

Login to post a reply

Server time is: 2024-11-25 08:29:08
Your offset time is: 2024-11-25 08:29:08