Jump to content




Hangman

game

16 replies to this topic

#1 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 04 July 2014 - 01:35 PM

Hey there!
Message from future me, if you enjoy this game (or even if you don't), you should check out my latest game! It's way better than this one, I'm sure you'd love it ;)
Click the link here to check it out!
Back to your original post already in progress..

This is my first program (in CC) that I've ever actually finished, I hope you enjoy it ;)

HANGMAN

Instructions:
.. It's hangman. If you don't know how to play it.. :P

Pictures:

Attached Image: Hangman1.JPG
Attached Image: Hangman2.JPG
Attached Image: Hangman5.JPG

Attached Image: Hangman7.JPG
Attached Image: Hangman8.JPG

Install:

Just type in
pastebin run u15WwrLd
-And follow the installer's instructions!

Known bugs:

Trying to install to the root folder (Typing in "/" in the installer when it prompts) will cause the program to hang.

Upcoming Features:

An in-game dictionary writer, so you don't have to write them externally.

How to make a Custom Dictionary:

1. Create a file inside the "Dicts" folder of your Hangman root.
2. Open the file. (Duh)
3. Type in whatever words you want to use, always adding an | at
the end of it. (This is crucial for .dict files) Also make sure that they are
all lower case.
4. Run Hangman and go to the dictionary list. If your dictionary is not there, you probably didn't put it in the Dicts folder.
5. Load your dictionary
6. Have fun!


Change Log:

7/22/14: VERSION 1.3.2 : Added support for folders in the Dictionary Menu : Added support for phrases (2 or more Words at a time) in Dictionaries. : Fixed a bug : Added an option to just "Go Back" when you're in the dictionary menu.

7/21/14: VERSION 1.3.1 : Fixed 3 bugs in the installer : Removed remaining "Debug Prints" in the installer.
7/21/14: VERSION 1.3 : Custom dictionary support : 2 Additional Dictionary's added (Lua and Minecraft words) : Because of the need for external files
(instead of the entire game being in 1 file), I also had to create an installer. The installer will NOT auto update, so for every new update, you will need
to re-download it.
7/8/14: VERSION 1.2 : Fixed a lot of bugs.. a lot.
7/7/14: VERSION 1.1 : Added more description and tweaked the Points system : Fixed the "Exiting after first game without the option to keep playing" bug. : And some other minor changes
7/5/14: Points added : You can now play multiple games on only 1 program run : Points travel across games : And some other minor changes
7/4/14: Hints added (Can only be used once per game, only hint available as of yet is a free letter.)
7/4/14: Bug fixed - Still being able to guess letters that you already guessed. : Updated dictionary
7/4/14 : VERSION 1.0 : Released!


Please let me know how you enjoy it, and if you find any bugs, please tell me so I can fix them. Because if you don't tell me, well, I can't really fix them can I? :rolleyes:

Yes, I know, the GUI sucks, I will improve it in the future.

Edited by Saldor010, 05 June 2019 - 09:14 PM.


#2 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 05 July 2014 - 03:25 PM

I added a point system to the game! If you haven't tried it out yet, now's the time!

#3 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 07 July 2014 - 09:25 PM

Feedback would be appreciated ;)

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 08 July 2014 - 12:53 AM

Scoring certainly needs work, it always states I guessed none of the characters, the word multiplier doesn't apply to the total, and I'm not sure the limbs score is right either...

It's "Thanks", not "Thank's".

The game always starts with the rope drawn, even though I haven't had time to get any letters wrong yet.

I can't see any offer to keep playing - it always exits after the first round.

Other than those points, not bad. :) You've certainly done a good job of choosing words I can't guess...

#5 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 08 July 2014 - 01:03 AM

View PostBomb Bloke, on 08 July 2014 - 12:53 AM, said:

Scoring certainly needs work, it always states I guessed none of the characters, the word multiplier doesn't apply to the total, and I'm not sure the limbs score is right either...

It's "Thanks", not "Thank's".

The game always starts with the rope drawn, even though I haven't had time to get any letters wrong yet.

I can't see any offer to keep playing - it always exits after the first round.

Other than those points, not bad. :) You've certainly done a good job of choosing words I can't guess...

Yeah, I should probably add some more information to the points, I could see how it might be confusing for people who don't understand how it works.

Sorry, must have missed that one. Where is it? On the forum post or in game?

Yeah, in my version it starts with the head being drawn first when you miss a letter.

Hm, maybe it's an outdated version that I have uploaded to pastebin. I'll check after I post this. EDIT: Hm, it's working for me. Are you using an emulator? Are you using CC 1.6?

Thanks!

Edited by Jiloacom, 08 July 2014 - 01:05 AM.


#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 08 July 2014 - 01:10 AM

View PostJiloacom, on 08 July 2014 - 01:03 AM, said:

Sorry, must have missed that one. Where is it? On the forum post or in game?

In the game, on exit.

View PostJiloacom, on 08 July 2014 - 01:03 AM, said:

Hm, maybe it's an outdated version that I have uploaded to pastebin. I'll check after I post this. EDIT: Hm, it's working for me. Are you using an emulator? Are you using CC 1.6?

1.63.

#7 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 08 July 2014 - 01:18 AM

View PostBomb Bloke, on 08 July 2014 - 01:10 AM, said:

View PostJiloacom, on 08 July 2014 - 01:03 AM, said:

Sorry, must have missed that one. Where is it? On the forum post or in game?

In the game, on exit.

View PostJiloacom, on 08 July 2014 - 01:03 AM, said:

Hm, maybe it's an outdated version that I have uploaded to pastebin. I'll check after I post this. EDIT: Hm, it's working for me. Are you using an emulator? Are you using CC 1.6?

1.63.

Okay, I'll fix it while I'm fixing the scoring.

Are you using an emulator?

#8 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 08 July 2014 - 01:43 AM

No, I'm running CC 1.63, as opposed to any imitation of it.

#9 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 08 July 2014 - 01:46 AM

View PostBomb Bloke, on 08 July 2014 - 01:43 AM, said:

No, I'm running CC 1.63, as opposed to any imitation of it.

Weird. I don't know why it isn't working then. Try deleting it and reinstalling it?

#10 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 08 July 2014 - 02:06 AM

lolno. If the download was corrupt, it wouldn't be running at all. ;)

Looking at your code, it's 'cause of the way you're pulling events.

Every character pressed triggers two of the things - a key event, followed by a character event. So if you press eg space, a key event with a value of 57 goes into the queue, and a char event with a value of " " goes into the queue.

Say a round is played. The last thing you do before breaking out of the game function's loop is to tell the user to press "any key", and then you pull a key event. If eg space is pressed, you'll catch the key event generated, but the char event stays in the queue for now.

The game function returns, then you call your play function - this asks whether to play again, then pulls a char event. If eg space was pressed before, then it'll pull the corresponding char event now, and take that as a "no".

Easy fix would be to switch lines 272 and 285 to pull char events.

(And fix line 305 while you're at it!)

Edited by Bomb Bloke, 08 July 2014 - 02:08 AM.


#11 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 08 July 2014 - 02:12 AM

I already fixed the "Thank's" issue, that was one of my first priorities when I started the edits to Hangman. I am fixing the points right now so it's more descriptive and accurate, and I just fixed lines 272 and 285. When I'm done, I'll post it to pastebin, and I'll notify you so you can test it and make sure that all of the bugs you pointed out are fixed.

EDIT: And actually, I didn't think the download was corrupt, I thought that you may have downloaded it a couple days ago (the older version) and didn't have time to test it.

Edited by Jiloacom, 08 July 2014 - 02:14 AM.


#12 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 08 July 2014 - 02:28 AM

Version 1.1 uploaded! (I decided to start naming the versions now.)

#13 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 08 July 2014 - 05:18 PM

Version 1.2 Uploaded!

#14 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 21 July 2014 - 08:21 PM

Version 1.3 Uploaded! Run the new installer and try out the 2 new Dictionaries! :lol:

#15 Cookiezi

  • Members
  • 9 posts

Posted 21 July 2014 - 09:07 PM

Neat program, you could probably include this game in like an Arcade of sorts in Servers where players could just play games like these: Compete with eachother etc.
I would suggest going a bit further with the whole game concept and making a Game Center, I saw a game center made by someone before but I can't remember who it was.

#16 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 21 July 2014 - 09:56 PM

View PostCookiezi, on 21 July 2014 - 09:07 PM, said:

Neat program, you could probably include this game in like an Arcade of sorts in Servers where players could just play games like these: Compete with eachother etc.
I would suggest going a bit further with the whole game concept and making a Game Center, I saw a game center made by someone before but I can't remember who it was.

I'll think about it, and thank you :D

#17 ShadowDisruptor

  • Members
  • 74 posts

Posted 13 December 2014 - 05:11 AM

I'd be glad to implement this into the store. Only thing is you need to create an un-install script to delete all the files it creates. After that, it should be good to go in.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users