First Windows game, FINALLY DONE!

This is a discussion on First Windows game, FINALLY DONE! within the Game Programming forums, part of the General Programming Boards category; Hey everyone, I'm finally done my first game! Well, minus tictactoe and some other little thing. It's written in C++, ...

  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879

    Arrow First Windows game, FINALLY DONE!

    Hey everyone, I'm finally done my first game! Well, minus tictactoe and some other little thing. It's written in C++, and uses Windows GDI for graphics. It's called Space Shooterz! (with the !). Try it out and tell me what you guys think! Any comments welcome, minus flames about the graphics And if it runs slow, don't blame me, because Windows GDI is slow.

    Alrighty then, I'll just be waitin for the posts to start pourin' in
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    *sorry, forgot to attach it.
    Attached Files Attached Files
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    94
    Nice! My only issue: the controls. I had some difficulties trying to move around. I may change it on my own, though, for when I play it. Other than that, very well done!

    Brendan
    Draco dormiens nunquam titillandus

  4. #4
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Well, you did a good job, and the game is very well designed except...for the controls

    the controls leave a lot to be desired. here are my suggestions...

    Arrow Up = Up
    Arrow Down = Down
    Arrow Left = Left
    Arrow Right = Right

    Space Bar = Attack
    B = Cycle Weapons
    N = Activate Limitbreak
    V = Previous Weapon

    another suggestion i have is to decrease the size of the stars. what you outght to do is randomly create the stars and randomly create their size. then by the size of the star you can put the proper amount of pixels down. do you see what i mean? then again that would be a lot more difficult.

    and you didn't put all the files into a folder, so now i have to go back and find each and every one of your game files on my desktop (no big deal really 'cause you're not the only one who does it. i think there should be a universal internet rule that you have to put all of your files inside of a folder...)

    all in all, the game is good, but better controls really could make the game a lot better. i strongly recommened changing the controls.

  5. #5
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Alrighty then, change the controls it is! And add a high-scores table, since I forgot to put it in. Looks like just about everybody hates my controls I personally have no problem with them since I'm used to playing counter-strike But I guess it's true that generally people like arrow-keys better.

    another suggestion i have is to decrease the size of the stars
    If you'd care to just step inside and take a look at my code, you can see that each star is 1 pixel

    what you outght to do is randomly create the stars and randomly create their size. then by the size of the star you can put the proper amount of pixels down
    Been there, done that. The stars are randomly generated at the beginning of the program at random positions on the screen; when they reach the bottom, they go to the top. I had different-sized stars (1 pixel, 2 pixels, 4 pixels) to start out with, but they looked like alien-dandruff Plus for each large-star, it would take 4 SetPixelV's instead of just 1... and then the code looked messy:
    Code:
    SetPixelV();
    if(size > 1)
         SetPixelV();
    if(size > 2)
    {
         SetPixelV();
         SetPixelV();
    }
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  6. #6
    Registered User Kirdra's Avatar
    Join Date
    Aug 2002
    Posts
    105
    Oh oh oh lemme do some graphics for you I love that game... oh oh please... Also a suggestion when the spaceship is going left or right you could include a different image tilting in the direction, that wouldn't take that long would it? but seriously I want to make you some graphics for that game... Maybe if you see the designs I made you'll see what my suggestion is suggesting h0h0

  7. #7
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Shure, lemme see the graphics! But I'm not going to be putting in the tilting yet, 'cuz I'm about to start recoding the game in DirectX

    BTW everyone, sorry but I can't change the controls to the arrow keys/space/stuff (at least not for my comp), because then there's problems where keypresses get blocked (i.e. if you press up and space or something, you can't go left.)
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  8. #8
    Registered User Kirdra's Avatar
    Join Date
    Aug 2002
    Posts
    105
    I have remade your little spaceship and Alien ship, I hope you like them they're a little blurry due to being converted into JPEGs just black out around the edges with MS paint.

    http://elevenkingavaters.homestead.c...aGraphics.html

  9. #9
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, I like the ship But the alien looks a little funny...

    Anyways, I just finished my final update on the game, and I'll attach it in a sec (gotta stick in the new ship ). Sorry Kirdra, you'll have to wait for my DirectX version to remake the rest of the pics
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  10. #10
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Alrighty everyone, this is the final FINAL version of my game. It's not perfect, but it'll do until I come out with a DirectX version Until then everyone, download and enjoy!
    Attached Files Attached Files
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  11. #11
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    *sorry but I can't upload the exe/bitmaps. It's too big a zip But to download it, you can click on the link in my sig... should work just as well
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  12. #12
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    It's fun. When I build the project, however, it doesn't load the data correctly.

    What is the difference between the beam and the laser in terms of varying effectiveness?

    It seems that they are basically the same... only shoot straight up pretty much, and the damage rate is comparable. Perhaps you should make one of them split apart at a slight angle? Also, some explosive weapons could be cool.. rather than damage by contact directly, they start an explosion that damages the aliens.

    Some code is redundant.. IE, the if aliens.size() > 0 condition would be handled because 0 is not less than 0, which would be the condition checked by the for loop.

    Code:
    bool Shot::collide(GFX& gfx)
    {
    	if(aliens.size() > 0)
    	{
    		for(int i = 0; i < aliens.size(); ++i)
    		{
    			int left = pos.x;
    			int right = pos.x + bmpDimensions.right;
    			int top = pos.y;
    			int bottom = pos.y + (bmpDimensions.bottom / frames);
    			int aLeft = aliens[i].pos.x + 2;
    			int aRight = aliens[i].pos.x + aliens[i].bmpDimensions.right - 2;
    			int aTop = aliens[i].pos.y + 2;
    			int aBottom = aliens[i].pos.y + aliens[i].bmpDimensions.bottom - 2;
    
    			if(left <= aRight && right >= aLeft && top <= aBottom && bottom >= aTop)
    			{
    				if(!aliens[i].damage(dmg, gfx))
    					aliens.erase(&aliens[i]);
    				return true;
    			}
    		}
    	}
    	return false;
    }
    Regardless. Definetely a good job. Perhaps I should boot to windows more to check out more of the other posters games as well .
    Last edited by SilentStrike; 08-24-2002 at 12:43 AM.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  13. #13
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Thanks for pointing out the redundant thingee. I didn't really notice. I'll change it, but I don't think I'll be posting it again, 'till I recode it in DX.
    Last edited by Hunter2; 08-24-2002 at 11:13 AM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  14. #14
    DeSeis
    Guest
    Hello kirdra.

    Im also making a similar shooter to that one but it is already developed in opengl and directx for graphics and sound relateively . The game also has 3d effects and particles and more, but im not releasing any betas untill its completely done, its my graduation project .

    The real problem are the textures. They look ugly, If you got time I will give you a link to my stupid looking ship and maybe you can re-edit it or make a new one that looks better. .

    Here you go:
    http://members.lycos.co.uk/r3altime/ship.bmp .
    See what you can do .
    Cya later.

  15. #15
    Registered User Kirdra's Avatar
    Join Date
    Aug 2002
    Posts
    105
    I'll work on it

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 10:26 AM
  2. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  3. Game Designer vs Game Programmer
    By the dead tree in forum Game Programming
    Replies: 8
    Last Post: 04-28-2005, 10:17 PM
  4. Tricks of the windows game programming gurus
    By Nutshell in forum Game Programming
    Replies: 0
    Last Post: 04-25-2003, 12:37 AM
  5. finished my game, finally
    By agerealm in forum Game Programming
    Replies: 15
    Last Post: 10-12-2001, 09:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21