Thread: Primary game build, feedback welcome

  1. #1
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403

    Primary game build, feedback welcome

    http://www.geocities.com/cfare2002/Ship.zip

    I have a long way to go: scrolling, powerups, music, all the regular enemy ship patterns, etc. etc.

    But i wanted to get feedback on what i have so far, 10 hits kill the enemy ship.

    The enemy ship follows one of two patterns and swaps between then periodically.

    I get patches of jerkyness, though i think its my machine rather than the code (though i have a lot of optimisation to do anyway), i'm interested in hearing if anyone else gets it too.

    Edit: it seems the link doesn't work, if you copy it then paste into the address box in IE/netscape it should work.
    Last edited by Clyde; 07-05-2002 at 11:33 AM.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Make the animation go by time using GetTickCount() instead of by frame. I can't even play it on my pc, it lasts just over a second. According to my log file, i got 1198fps.

    My system specs: P3 1GHz, 512MB SDRAM, GeForce3 Ti500 /w 64MB onboard DDR RAM, Win2k Professional

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Here's my log file:
    Code:
    Opening Error Output File (Log.txt):
    
    Create BOB 0
    Create BOB 5
    Create BOB 5
    Create BOB 7
    Create BOB 0
    Create BOB 6
    The FPS is 1
    The FPS is 1198
    Closing Error Output File.

  4. #4
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    eepas! Will do, im getting 75 fps, so i didnt think it would be a problem.

  5. #5
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    Ok, done, frame-rate should now be capped at 75.

  6. #6
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Two problems:

    1) If you close the program using ALT-F4, the program is not actually unloaded if you look in task manager.

    2) For some reason, the ships, explosions and the gunfire are garbled. Its not the BMP files, because they look fine when I open them in PhotoShop. See the attached picture.

  7. #7
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    Thanks for the heads up, when i run it from my PC, the art isnt garbled, hmm, and ideas what could cause that?

    I'm not sure I can do anything about the Alt-F4 thing, since windows handles that, perhaps looking out for the Alt-F4 key press and preventing the game from running another frame would do the trick.

    This art thing really is puzzle.

  8. #8
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    Only thing I can think of is not having it in the right directory

  9. #9
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    I've tried something new now, could you test it see if the art is still bugged?

    Its very odd, if i download the zip, extract it to a separate directory and run the game the art is fine.

    The first thing i thought of was that I had changed the palette on my comp. but looking at the scrambled art it doesnt look like a palette problem.

    Hmmm....

  10. #10
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Wow that didn't work too well at all. The first time I ran it the only thing that loaded on the screen was the lives and screen text. I used ESC to exit, and it worked fine with the blue fade out (pretty cool). Then I tried it again, and everything was the same with the loading. Except this time when I exit with ESC I got a bunch of memory errors and all of my Windows' folder were closed. Here are my specs: 500 mhz, win2k, 384mb ram, 4mb video card

    And the log file:

    Code:
    pening Error Output File (Log.txt):
    
    The FPS is 1
    The FPS is 49
    The FPS is 48
    Closing Error Output File.
    So obviously it appears as if it deals with the log.txt file.

    Too bad because I really wanted to try out your game.

  11. #11
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    eepas i'm terribly sorry for causing you these problems!

    *is puzzled!*

    The log file doesnt actually do much, at present, though it may prove the anser to finding this problem.

    *scurries off to link the log file to everything*

    My brother's PC is networked to mine so i tried it on his, and i get the garbled art problem, so atleast i can actually attempt to solve it.

    I think the problem is the function i'm using to load the bitmaps into their respective surfaces, though its really weird that it works on my PC!
    Last edited by Clyde; 07-05-2002 at 05:48 PM.

  12. #12
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    Aha! Victory is mine!

    The art should be ungarbled now.

    Man, that was a battle, grrr *shakes fist at Andre LaMothe*

  13. #13
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    The art looks fine now.

    All you need to do is fix the problem where it doesn't close properly on ALT-F4.

  14. #14
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    OK, looking into it, what improvements to the enemy motion/firing would be good?

  15. #15
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    You might want to make him avoid collisions, instead of look for them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 05:48 PM
  2. How to build a flexible Game Menu..
    By ThLstN in forum Game Programming
    Replies: 1
    Last Post: 12-13-2008, 10:53 AM
  3. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 09:26 AM
  4. Game Programmer's AIM Circle: Join Today
    By KingZoolerius66 in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 12-20-2003, 12:12 PM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM