Thread: DirectX Worm! (source included)

  1. #1
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704

    DirectX Worm! (source included)

    A work in progress for quite a while now (workin off and on). Its nearing the basic completed stage and after that point I'll begin modifing it to be cooler. But for now, its pretty functional with the game system, menu system and power ups system in place (all though not uses in this build).

    You can can compile it (DX8.1b) or run the exe included in the zip.

    http://amithran.hybd.net/downloads/dxmsource.zip

    README:
    AUTHOR: Jeremy Giberson
    E-MAIL: [email protected]
    TITLE: DX WORM (direct X worm)
    PLATFORM: Windows 98/XP(home/pro)/ ?
    HOME-PAGE: http://amithran.hybd.net

    DXWorm is a clone of the popular arcade style game: Snakes/Nibbles/Worms(has many names). This is my first complete game project and takes use of the DirectX and DirectSound technologies. The exe has been tested on win98 and winXP and has shown no bugs. If you find/encounter an error/bug please report so in the forum-thread you found this file posted in.

    Thanks for showing interest in my work.

    HOW TO PLAY:
    -Start up: Run the DXM.exe (or compile a new one after you've examined the source) and the game will start. You will be presented with 3 options: New, Exit, and Resume. New will (re)start a new game of DXWorm. Exit will quit out of the application. Resume will take you back to the game you were already playing had you pressed the ESC key during the game.

    CONTROLS:
    -LEFT ARROW: Go in the left direction
    -RIGHT ARROW: Go in the right direction
    -UP ARROW: Go in up direction
    -DOWN ARROW: Go in the down direction

    -ESC: Puase/Exit/Restart/New (pressing esc will boot you to the main menu (acting like a puase mechanism). From there you can resume game play where you left, start a new game, or exit.

    GOAL: Navigate the worm creature around the grassy field eating the apples you find. Every apple you eat will make you grow one worm segment. IF you run into a border you lose. IF you run into yourself you lose. Winning is objective as of the current build, and is mearly the challenge to get as manny worm segments then your previous tries. When you die, press ESC to go to the menu and start a new game.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    This is very close to a OpenGL project i was thinking of doing, called snake. Its on my dads cell phone, your in a box and u need to run into randomly placed boxes, and u cant hit anything but those boxes. Its pretty cool, nicely done.

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    thats pretty cool, i like the background image in the menu!

    one suggestion: imo, a worm should not die if it is moving in one direction and you try to move it in the opposite direction (ie. moving up, wormLength > 2, and you hit down = death). i think the move should just not do anything, but maybe its just me!

    anyway, good game!

  4. #4
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    Its just you.

    Think about it, if you eat yourself, you die. So there.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  5. #5
    One problem. One of my apples were placed out-of-bounds. I could only see a very small portion of it. My score was 11 if that would help you any.

  6. #6
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704

    UPDATE:

    Clicking the link i provided above will get you the latest version of the game. I updated the menu screen to something more arcade-ish (and I like it tons more), and you know have the option of selecting from 3 background musics. (IN order for that to work you have to start a new game, and while playing press esc, select the music, and click resume).

    I'll fix the out of bounds(apple) bug tommorow. I did however fix the bug of crashing if you clicked resume before starting a game at all.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Don't understand part of the source... Help!
    By tggqqa in forum C++ Programming
    Replies: 1
    Last Post: 04-08-2007, 10:33 PM
  2. Open Source Licenses
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-10-2006, 08:53 PM
  3. directX problem
    By Da-Nuka in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-03-2005, 01:03 AM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM