Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: My Game - (Asteroids clone made with Windows GDI)

  1. #1

    My Game - (Asteroids clone made with Windows GDI)

    Hi!

    The story beguns from here (http://www.pascalgamedevelopment.com...p?topic=5951.0) when I asked some help to sort out some problems with my Asteroids look-a-like game.

    Since then 'the game' has evolved and I decided to post this new topic here under 'your projects' section because, I felt that this might be a better place to share it to the people and get feedback about it.

    'My Game' (I haven't been figured out a name yet ) uses Windows GDI for graphics and mainly Windows own routines for the engine. SysUtils is used to convert types and etc. and Math library for mathematical routines. Audio is implemented by using BASS audio library.

    There's still lots of things to do. For example:
    - Animations and sound effects for explosions and so on.
    - Game GUI, scoring, player lives and etc.
    - Game states, animations when dying or re-born and etc.
    - Game menus and scoreboard.
    - Game settings.
    - Full screen mode.
    - Error handling (There's no anykind of it currently).
    - Lots of little fixing how shuttle moves, asteroids are generated and etc.
    - Code optimizing.
    - Better sound samples for the effects and music jukebox.
    - Etc....

    I liked to know how it runs on different kind of computers. Especially if there is any problems to get it work correctly.

    For a comparison in my oldest computer AMD Duron 1.6GHz with Radeon 9600XT it runs around 500FPS and goes nice and smooth.

    Here's a executable along the resources (2.5MB)
    http://www.saunalahti.fi/hag/share/MyGame_20091004.zip

    'My Game' is going to be shared under the GNU/GPL or Mozilla license (meaning that sources will be available) when it's reached first release version.

    edit: Forgot to mention that arrows moves, CTRL fires, F1 / F2 controls music volume and ESC to exit. These are also in game window caption, but just in case.
    - In a world without the wall and fences, who will need the Gates and Windows.

  2. #2

    Re: My Game - (Asteroids clone made with Windows GDI)

    Opening zip file brings message "TR/Dropper.Gen" trojaner found. Mhm....

    Thomas

  3. #3

    Re: My Game - (Asteroids clone made with Windows GDI)

    Same here.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  4. #4

    Re: My Game - (Asteroids clone made with Windows GDI)

    No shit!! Really!?! I have to check it out instantly... sorry guys.

    Edit: Hmmm... which virus scanners you are using because Avast! says absolutely nothing about that exe? And it seems to be clean anyhow (compared with hex editor with just compliled one).

    Edit2: No, there's no virus at my side of view. Hmmm.. maybe your virus scanners are too sensitive or something (or maybe mine is too insensitive ). Anyhow, I cannot find virus but I check later (when I have time) with different scanner.
    - In a world without the wall and fences, who will need the Gates and Windows.

  5. #5

    Re: My Game - (Asteroids clone made with Windows GDI)

    Now I'm pretty sure there's no virus in the .zip file.

    I checked it with Avast! Home antivirus scanner, F-Secure online scanner and F-Secure standalone scanner with two different computers and every program says that files are clean.

    Here's a screenshot from F-Secures standalone scanner:




    So go ahead, download and test it! It won't bite.
    - In a world without the wall and fences, who will need the Gates and Windows.

  6. #6

    Re: My Game - (Asteroids clone made with Windows GDI)

    Yup.. well virus scanners are often unreliable.. Gonna run your game.

    Edit: Nice job. Game works.

    I think it would be better to make the ship turn a bit faster. It would make the game a little easier. Moreover, it crashed when I destroyed the last asteroid.

    Keep it up!
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  7. #7

    Re: My Game - (Asteroids clone made with Windows GDI)

    Thank's chronozphere for your feedback.

    The game is designed to be a little 'hard to play'. That's why ship is rotating slowly and fire rate is slow, but I will adjust those (along everything else) when game is more complete.

    Game has mainly tested my five year old son who already found a one bug. When all asteroids are shot memory exception is raised. The reason is in collision checking because I do it in for-loop and if last asteroid is shot then counter of the loop goes of the limit. Except if last asteroid is 'killed' by crashing with it. Then all goes fine because for-loop is interupted when ship collides with an asteroid.

    Collision detection will be fixed on next 'test' release.
    - In a world without the wall and fences, who will need the Gates and Windows.

  8. #8

    Re: My Game - (Asteroids clone made with Windows GDI)

    Quote Originally Posted by FusionWolf
    Thank's chronozphere for your feedback.

    The game is designed to be a little 'hard to play'. That's why ship is rotating slowly and fire rate is slow, but I will adjust those (along everything else) when game is more complete.

    Game has mainly tested my five year old son who already found a one bug. When all asteroids are shot memory exception is raised. The reason is in collision checking because I do it in for-loop and if last asteroid is shot then counter of the loop goes of the limit. Except if last asteroid is 'killed' by crashing with it. Then all goes fine because for-loop is interupted when ship collides with an asteroid.

    Collision detection will be fixed on next 'test' release.
    With the crash but and out of limit loop...a quick fix would be to go backwards, ie. from highest index downto 0...

    cheers,
    Paul

  9. #9

    Re: My Game - (Asteroids clone made with Windows GDI)

    Quote Originally Posted by paul_nicholls

    With the crash but and out of limit loop...a quick fix would be to go backwards, ie. from highest index downto 0...

    cheers,
    Paul
    Thanks Paul for your advice. I tried that and it works flawlessly.

    Here's the fixed version of it. Nothing else hasn't changed:

    edit: [Link to the file removed]

    There's again some very crazy things going on from Delphi. When Delphi IDE is open and game is ran all works perfectly, but when game is run without Delphi open it crashes again after the last asteroid is shot.

    I can only wonder why it acts like this, but I will do more research and publish fixed version when it's done.
    - In a world without the wall and fences, who will need the Gates and Windows.

  10. #10

    Re: My Game - (Asteroids clone made with Windows GDI)

    Finally I had time to fix the game. By reversing the for loop for collision test fixed one problem, but after that there was that weird thing going on from Delphi. When Delphi was open while playing the game it worked flawlessly. But if Delphi wasn't running and last asteroid was shot then memory exception was raised.

    The problem was in inner loop of collision test loop where is tested asteroid collision with every visible bullet. I kept checking the hit with same asteroid even if it was already hit by previous bullet. So exiting from the inner loop after a hit repaired problem.

    Here's the fixed version:
    http://www.saunalahti.fi/hag/share/M...91004_1944.zip
    - In a world without the wall and fences, who will need the Gates and Windows.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •