Thread: Project: Classic Asteroid Game coded in C with SDL2 (GNU/LINUX & Windows)

  1. #1
    Registered User
    Join Date
    Feb 2019
    Posts
    4

    Lightbulb Project: Classic Asteroid Game coded in C with SDL2 (GNU/LINUX & Windows)

    Hello,

    This is my first ever game in C with SDL2.
    It's simple but it might help others to make their own games in C.

    Code here -> GitHub - velorek1/asteroid: Classic Asteroid Game coded with SDL2 in C
    Cheers,

    Velorek

    Screenshot:

    Project: Classic Asteroid Game coded in C with SDL2 (GNU/LINUX & Windows)-asteroid-png

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    It built and ran okay; but, I do not remember the ability of going backwards with the arcade unit.
    And, I am not certain about the force field; but, you likely played it on a game station instead of real upright arcade unit like I did in the early 1980s.

    Built under MSys2 MinGW64 64 bit under Windows 7 using mingw32-make.exe

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User
    Join Date
    Feb 2019
    Posts
    4

    Smile Collision detection needs improvement

    Quote Originally Posted by stahta01 View Post
    It built and ran okay; but, I do not remember the ability of going backwards with the arcade unit.
    And, I am not certain about the force field; but, you likely played it on a game station instead of real upright arcade unit like I did in the early 1980s.

    Built under MSys2 MinGW64 64 bit under Windows 7 using mingw32-make.exe

    Tim S.
    Glad that it compiled. Let's say then that it's inspired by Asteroid hehe

    The idea for a force field actually came up as was a way of dealing with collision, which is not pixel perfect. For now, I've only been able to implement a rectangle over rectangle collision function.

    Thank you for your feedback!

    Velorek



    .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 06-09-2018, 11:14 AM
  2. Classic memory game board (size 4 * 5)
    By DecoratorFawn82 in forum C Programming
    Replies: 11
    Last Post: 12-05-2017, 02:41 PM
  3. Windows/Linux C++ project
    By TriKri in forum Linux Programming
    Replies: 7
    Last Post: 01-01-2007, 06:13 PM
  4. windows game programming on Linux?
    By 124 in forum Linux Programming
    Replies: 18
    Last Post: 03-23-2006, 05:14 PM

Tags for this Thread