![]() |
| | #1 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| Primary game build, feedback welcome 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. |
| Clyde is offline | |
| | #2 |
| C++ Developer Join Date: Jun 2002 Location: UWaterloo
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 |
| XSquared is offline | |
| | #3 |
| C++ Developer Join Date: Jun 2002 Location: UWaterloo
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. |
| XSquared is offline | |
| | #4 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| eepas! Will do, im getting 75 fps, so i didnt think it would be a problem. |
| Clyde is offline | |
| | #5 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| Ok, done, frame-rate should now be capped at 75. |
| Clyde is offline | |
| | #6 |
| C++ Developer Join Date: Jun 2002 Location: UWaterloo
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. |
| XSquared is offline | |
| | #7 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| 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. |
| Clyde is offline | |
| | #8 |
| . Join Date: May 2002
Posts: 469
| Only thing I can think of is not having it in the right directory |
| Driveway is offline | |
| | #9 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| 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.... |
| Clyde is offline | |
| | #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. Too bad because I really wanted to try out your game. |
| TechWins is offline | |
| | #11 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| 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. |
| Clyde is offline | |
| | #12 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| Aha! Victory is mine! The art should be ungarbled now. Man, that was a battle, grrr *shakes fist at Andre LaMothe* |
| Clyde is offline | |
| | #13 |
| C++ Developer Join Date: Jun 2002 Location: UWaterloo
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. |
| XSquared is offline | |
| | #14 |
| The Earth is not flat. Join Date: Mar 2002
Posts: 1,420
| OK, looking into it, what improvements to the enemy motion/firing would be good? |
| Clyde is offline | |
| | #15 |
| C++ Developer Join Date: Jun 2002 Location: UWaterloo
Posts: 2,718
| You might want to make him avoid collisions, instead of look for them. |
| XSquared is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 20q game problems | Nexus-ZERO | C Programming | 24 | 12-17-2008 05:48 PM |
| How to build a flexible Game Menu.. | ThLstN | Game Programming | 1 | 12-13-2008 10:53 AM |
| Need book to program game into multiplayer... | edomingox | Game Programming | 3 | 10-02-2008 09:26 AM |
| Game Programmer's AIM Circle: Join Today | KingZoolerius66 | A Brief History of Cprogramming.com | 28 | 12-20-2003 12:12 PM |
| My Maze Game --- A Few Questions | TechWins | Game Programming | 18 | 04-24-2002 11:00 PM |