Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: First Game Showcase (with source code!)  (Read 5022 times)

0 Members and 1 Guest are viewing this topic.

ArkFreestyle

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
First Game Showcase (with source code!)
« on: September 10, 2016, 12:35:14 pm »


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!
« Last Edit: September 10, 2016, 06:51:48 pm by ArkFreestyle »

MrOnlineCoder

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: First Game Showcase (with source code!)
« Reply #1 on: September 10, 2016, 05:30:03 pm »
Nice work! The text in console ending on "lol" just made my day :)

ArkFreestyle

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: First Game Showcase (with source code!)
« Reply #2 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

MrOnlineCoder

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: First Game Showcase (with source code!)
« Reply #3 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|
« Last Edit: September 14, 2016, 10:53:35 pm by MrOnlineCoder »

ArkFreestyle

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: First Game Showcase (with source code!)
« Reply #4 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

MrOnlineCoder

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: First Game Showcase (with source code!)
« Reply #5 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

MrOnlineCoder

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: First Game Showcase (with source code!)
« Reply #6 on: October 11, 2016, 03:26:50 pm »
So, finally I compiled it, I fixed abs error by including <cmath>.

alien8

  • Newbie
  • *
  • Posts: 16
  • 8 bits rocks!
    • View Profile
    • Email
Re: First Game Showcase (with source code!)
« Reply #7 on: October 13, 2016, 10:05:35 am »
looks great but is for debugging?
Alien 8

 

anything