SFML community forums

General => SFML projects => Topic started by: ArkFreestyle on September 10, 2016, 12:35:14 pm

Title: First Game Showcase (with source code!)
Post by: ArkFreestyle on September 10, 2016, 12:35:14 pm
(http://img.youtube.com/vi/idLh7-NkYV0/0.jpg)

Hi there!

This is a game I worked on following subconciousbias's SFML game development series, I'm really happy with the result and have officially signed this project off. I'm fairly new to programming and would love to hear what the community has to say about my code, mind you, it might be a case of spaghetti code, but I will learn over time  :D
Also, since I really enjoyed following this series, I was wondering if the community has recommendations to similar programming project series, I would love to be able to follow along and learn new things along the way. I'm an electrical engineering undergrad, who's newly developing a taste for code lol.

Here's the source code: https://github.com/ArkFreestyle/First-C-Game-Showcase-
When you download the source code, please make sure you run the project file (.cbp) so that all the relevant classes are automatically loaded in your IDE (I used codeblocks).
SPACE BAR = Fire projectiles;
E = Enemy Spawning (this was just for initial testing purposes)

As well as a video explanation: https://www.youtube.com/watch?v=idLh7-NkYV0

EDIT: I apologize in advance if my posting format is incorrect, or if there's another preferred way of sharing code (this is my first forum post), but please do let me know and I'll adjust accordingly. Thanks!
Title: Re: First Game Showcase (with source code!)
Post by: MrOnlineCoder on September 10, 2016, 05:30:03 pm
Nice work! The text in console ending on "lol" just made my day :)
Title: Re: First Game Showcase (with source code!)
Post by: ArkFreestyle on September 12, 2016, 06:03:29 am
Nice work! The text in console ending on "lol" just made my day :)
Haha I'm glad you enjoyed it!  ;D
Title: Re: First Game Showcase (with source code!)
Post by: MrOnlineCoder on September 14, 2016, 08:06:43 pm
Can you post binaries on GitHub (release)? Not everybody has CodeBlocks.

EDIT: Tried to compile your project, error:
Quote
maingame.cpp|2249|error: call of overloaded 'abs(float)' is ambiguous|
Title: Re: First Game Showcase (with source code!)
Post by: ArkFreestyle on September 16, 2016, 08:52:23 am
Can you post binaries on GitHub (release)? Not everybody has CodeBlocks.

EDIT: Tried to compile your project, error:
Quote
maingame.cpp|2249|error: call of overloaded 'abs(float)' is ambiguous|

Ooh, strange, this is my first experience sharing source codes so I was sure some problems would arise. Of course most of my classmates used codeblocks as well so there was no problem when they tried to compile. Could you please guide me a bit? How would I go about posting binaries? I actually have never worked with files in my code :D
Title: Re: First Game Showcase (with source code!)
Post by: MrOnlineCoder on September 26, 2016, 08:26:10 pm
There is nice blog post about releases on GitHub: https://github.com/blog/1547-release-your-software (https://github.com/blog/1547-release-your-software)
Title: Re: First Game Showcase (with source code!)
Post by: MrOnlineCoder on October 11, 2016, 03:26:50 pm
So, finally I compiled it, I fixed abs error by including <cmath>.
Title: Re: First Game Showcase (with source code!)
Post by: alien8 on October 13, 2016, 10:05:35 am
looks great but is for debugging?