Sword Play 5 C++ Console Game (with download)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,541
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 7, 2010

Sword Play has recently had an update!

This console game, written in C++, now has achievements and recorded statistics of the player! For those who can't see the player swing the sword, the recording software had a lower refresh rate, download for the full experience!

It is available for download (free) at:
http://www.mediafire.com/?arah2zyrnmh
http://www.mediafire.com/?jmnono2ince (7/8/2010)
http://www.mediafire.com/?zjyfumdjgnyomjq (7/13/2010)
The last download INSTALLS this on your system (easy to remove)

Known bugs/glitches will be listed below, if anyone finds one that isn't on the list, please comment.

-----

Sword slows enemies in higher ranks (Fixed)
Some Achievement pop ups don't show (Fixed)
Incorrect Accuracy due to Mutants (Fixed)
Chuck Norris misspelled (Fixed)
2 kills 1 swing rank skip glitch (Fixed)
Colors Update Slowly (Fixed)
Save/load glitches (Fixed)
Slow to save (Fixed)
Health display Glitch (Fixed)
Color when hit glitch (Fixed)
Random mutant flash (Fixed)

Link to this comment:

Share to:

Uploader Comments (IonicFox2nd)

  • good work

    what functions did you use to make the player move?

  • @JakobRobert00 I create a 2D character array and place the player and enemies on the array.

    I use the functions kbhit() and getch() and capture user input and change the position of the characters on the array.  You can research these functions on MSDN.

    Let me know if you have any more questions

  • @IonicFox2nd hey im working on a small program that fighting a mob but whit numbers not like urs whit animations, its a real time just like urs but i cant figure out how the function whit kbhit() and getch() should look, can u give me some hints if possible? tnx, oh and btw thats a sick game no matter how lame it looks. WELL DONE KEEP UP!

  • @iiperento this assigns the pressed key's value to a variable of type char.

    char keypress;

    if(kbhit())

    { keypress = getch(); if(keypress == '[key]'){//do function}

    }

  • Can you make a tutorial on how to make this? Is this pure c++ or did you download addtional libaires like SDL ?

  • Sword play was created in Dev C++, and doesn't require any additional

    downloads, just links to -lwinmm & -lgdi32.

    Look up the following functions on MSDN

    I use PlaySound() & mciSendString() to play audio files (not in video)

    I use GetCursorPos(), GetClientRect & ClientToScreen() for GUI Interface

    I use SetConsoleCursorPosition() to place the designs and characters

    I use SetConsoleTextAttribute() for color schemes

    I hope this helps

see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • do you used multithreading? i mean becouse you can move and the creatures at the same time

  • @ChuckleluckMe2 He used kbhit() which checks for user input

  • @IonicFox2nd hmm i manage to do it in a different way:

    input = getch()

    while (!game+ove)

    if (kbhit())

    { input = getch();

    }

  • How'd you make the game run without input? I saw you used getch() but I don't see how you made the game continue to run without user input.

  • @IonicFox2nd thanks i will look up these functions

  • I love this game... Advanced rank ftw ^_^

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more