My first C++ game is done!

This is a discussion on My first C++ game is done! within the C++ Programming forums, part of the General Programming Boards category; ... well actually it's been done for two days now, but I only just thought of putting it up here... ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    267

    My first C++ game is done!

    ... well actually it's been done for two days now, but I only just thought of putting it up here...

    now, a few things first... this is truly my first complete C++ project, and my first game ever... I've not tested it with 2K/XP, though according to MSDN, it should work the same way (it's a console app)

    It's my text-based tetris clone, Textris

    Tell me what you think... and try to remember it's my first try

    *EDIT* had an XP user test it... seems to work fine on all win32
    *EDIT* fixed minor problem, new link below
    Last edited by d00b; 08-11-2002 at 12:24 AM.

  2. #2
    Registered User GrNxxDaY's Avatar
    Join Date
    Jul 2002
    Posts
    140
    i like it! i was expecting little pieces of text floating around. LoL

    one thing though... .. err.... ok like this..
    Code:
      []
    [][]
    []    [][][][]
    see that long skinny one? ican't slide it under the one next to it.. once the block touches the ground, i think you should beable to move it for just a quick second.
    AOL: GrNxxDaY
    IDE: Dev-C++ Beta 5 (v4.9.4.1)
    Project: Eye of Sahjz (text-RPG)
    If you think I may need help, please IM me.

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    And with 3 extra lines of code... it's fixed You have an extra moment to move pieces once they touch (unless you drop them)
    Attached Files Attached Files
    Last edited by d00b; 08-10-2002 at 11:54 PM.

  4. #4
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    here's the source if you're interested
    Attached Files Attached Files

  5. #5
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    I get these compiler error messages when I try to compile it.

    --------------------Configuration: TextTetris - Win32 Debug--------------------
    Linking...
    main.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
    Debug/TextTetris.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    TextTetris.exe - 2 error(s), 0 warning(s)
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  6. #6
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    you need to add "winmm.lib" to your linker (I used the timeGetTime() function from the multimedia library because it was the easiest way for me to time events in milliseconds)

    sorry, I should have mentioned that earlier

  7. #7
    Registered User GrNxxDaY's Avatar
    Join Date
    Jul 2002
    Posts
    140
    hmm.. for me, its still immediatly frozen once it touches the ground *shrug*.

    but you're game is good d00b - can't believe it only took a couple weeks... its took me 2 weeks to find out i forgot the ; once
    AOL: GrNxxDaY
    IDE: Dev-C++ Beta 5 (v4.9.4.1)
    Project: Eye of Sahjz (text-RPG)
    If you think I may need help, please IM me.

  8. #8
    Registered User (*)BLUE's Avatar
    Join Date
    Aug 2002
    Posts
    6

    Thumbs up very good

    I am impressed..
    It worked fine on Win-ME.
    I am planning to look at your source to learn some more....

    BTW, how can I stop the game? ^^*

  9. #9
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Originally posted by d00b
    here's the source if you're interested
    Thanks for the source. It've been waiting a long time for something like that
    what does signature stand for?

  10. #10
    Unregistered
    Guest

    Re: very good

    Originally posted by (*)BLUE
    BTW, how can I stop the game? ^^*
    Press ESC

  11. #11
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    How about Alt+F4 ??
    what does signature stand for?

  12. #12
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    alt-f4 is the ultimate shutter dpwner it immeditly stops wutever is exucuting i that window and shuts it off. good if your using win me and suddenly you ge a feeling your gonna get the blue screen of death.
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  13. #13
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    and the ability to move the piece a few seconds after it hits should be an option us the users can turn off.
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  14. #14
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Or you can also try Ctrl+Alt+Delete x2 if it really is nasty
    what does signature stand for?

  15. #15
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    Ways to stop program execution:
    • Pull out PSU power cable
    • Press and hold hardware reset
    • Shut off main power breaker to the house
    • Climb nearest pole and cut power line to house
    • Load 12 gauge shotgun and fire at CPU

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

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-07-2010, 11:08 PM
  2. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 10:44 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 02:46 PM
  4. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM

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