My first Direct X game

This is a discussion on My first Direct X game within the Game Programming forums, part of the General Programming Boards category; You are welcome to try it. Just unzip the files in any directory and it (should) work. Source included for ...

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    My first Direct X game

    You are welcome to try it. Just unzip the files in any directory and it (should) work.
    Source included for those who are interested .
    Post comments and bugs if you like.

    (If the links doesn't work, try to Copy and Paste them)

    http://www.geocities.com/magos818/Files/Ball.zip (321 kb)

    Seems like you need this DLL too:
    www.geocities.com/magos818/Files/cw3220.zip (101 kb)

    Controls:

    LEFT/RIGHT -Move paddle left and right
    ESC -Exit
    ENTER -Start/Restart a game
    SPACE -Randomly select another level (there are 8)
    Last edited by Magos; 05-08-2002 at 10:34 AM.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    I got an error message that said it couldn't find "cw3220.dll". I
    searched my system and I don't have it anywhere. What *.lib's
    did you include when you compiled it?

  3. #3
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    It would prolly have been extremely cool if i had gotten it to work.
    But unfortunately it requires cw3220.DLL to run.

    And just so that other people know you might need to copy and paste that adress instead of clicking it since GeoCities sucks.

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Hmm, sorry about that. You can download the DLL from here:

    www.geocities.com/magos818/Files/cw3220.zip

    Unless someone can recommend something better, I have to put up with geocities
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by jdinger
    What *.lib's did you include when you compiled it?
    ddraw.lib
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  6. #6
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Nice!
    Very cool game though the ball is moving much too slow and i sometimes encounter some strange physics like when for example the ball comes diagonally from above, hits the left side of a box and bounces upwards to the right instead of downwards to the left.

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    riktigt braa!

  8. #8
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    A site I recommend (it's free) is 0catch.com (that is a 0 not an O). You get 150mb of free storage. The only thing you need to do to keep your site from being closed is to just by following the rules, which aren't that restrictive.

    EDIT: Now I'm able to download it...
    Last edited by TechWins; 04-24-2002 at 05:34 PM.

  9. #9
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    copy the link instead of clicking on it

  10. #10
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by TechWins
    A site I recommend (it's free) is 0catch.com (that is a 0 not an O). You get 150mb of free storage. The only thing you need to do to keep your site from being closed is to just by following the rules, which aren't that restrictive.

    EDIT: Now I'm able to download it...
    I checked it out, but the ad-banner covers half the screen
    Could be nice for file-hosting though.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  11. #11
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    As ErionD pointed out, there are certain bugs in the balls movement, especially in high speeds. If someone knows some site where good "ball-bouncing-movements" are explained, plz tell.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  12. #12
    Registered User
    Join Date
    Apr 2002
    Posts
    12

    Smile

    Nice Game...

    one day I may even understand the source code naah...maby not...
    Last edited by niklaskr; 05-02-2002 at 11:40 PM.
    I'm a newbie, so don't take my words for facks!
    btw, I'm useing Dev-4

  13. #13
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Magos I'd be happy to give you some free bannerless file hosting... PM me if you want to take me up on the offer.

  14. #14
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Well since you must have a loop or something that moves the ball. Cant you just check if its limits are inside the others and then move it according to that

  15. #15
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by ErionD
    Well since you must have a loop or something that moves the ball. Cant you just check if its limits are inside the others and then move it according to that
    That's what I did. This is a representation of the blocks:
    Code:
    +--------+
    |\   1  /|
    | \    / |
    |  \  /  |
    |2  \/  3|
    |   /\   |
    |  /  \  |
    | /    \ |
    |/   4  \|
    +--------+
    If the ball overlaps the block (which isn't hard to calculate ), I check which part of the block the ball is in. If it's in (1), the ball bounces upwards, if it's in (3) it bounces to the right (and so on).

    However, if the ball enters the block at the edge from below in high speed, it will enter region (2) or (3) directly, instead of (4), causing it to bounce irregular...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

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

Similar Threads

  1. Open-source Game Project
    By Glorfindel in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-24-2009, 02:12 AM
  2. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 01:48 AM
  3. So you want to be a game programmer?
    By dxfoo in forum Game Programming
    Replies: 23
    Last Post: 09-26-2006, 09:38 AM
  4. Try my game
    By LuckY in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 09-15-2004, 12:58 PM
  5. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 05:19 AM

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