|
Gaming Talk Post all your game related stuff here. This includes PC, Console, Handhelds etc. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Slot Stomp Machine
I've made a 5 Reel Arcade Slot Machine game called Slot Stomp.
You can play it for free with no money involved. It's a simple little game. Start with 100 Tokens up and score up 1000 Tokens within the time-limit to play the Bonus level called Hit Stomp. LINK Slot Stomp Last edited by Guest001; 12-17-2016 at 01:08 PM. |
#2
|
||
|
nice!
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
Thanks Scott, as you'd appreciate the code was complex for a beginner like myself and took about 12 months on and off.
It took so long because I've rebuilt the code many times. Now there's no way to predict or to manipulate the outcome. So the code is no good to a Casino. Oh well... it's old fashioned fun and I've got a reasonable starting point for other games based on random strategies. OH and like any GMachine I've found it can get you in. BTW it'd be nice to have a bit of feedback if someone plays it and it falls over in any way. |
#4
|
||
|
I know this is Delta Force and all but the community is pretty broad minded and I've been around a while making maps for it so please excuse me for mucking about with this bit of self indulgence.
So, sorry to say it but after playing it on-line myself I've found some errors in scoring and audio output. Seems to work OK in exe run-time so there must be something wrong with the compile over to HTML5. Short-circuiting evaluations seems to help... working on it. |
#5
|
||
|
What are you using to build it?
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#6
|
||
|
I'm using the Game Maker-Studio IDE for this one.
Despite advertising ease of use, it can take a lot of code to get anything useful happening. Quote: Functions When using expressions in your code, ensure you use brackets to properly control the operations. This is very important to ensure the correct behaviour of your games across all the target platforms and is essential for JavaScript platforms. a = b == c || d; //Incorrect a = ((b == c) || d); //Correct Last edited by Guest001; 12-18-2016 at 02:20 PM. |
#7
|
||
|
Scott can you see any rules being broken here?
I can't seem to debug it in design time for some reason - I have to wait for run-time errors. Code:
// Scoring is in units of +10 or -10 // Replay option followed by level vars { if (score < 10){ str = show_question('Replay Game?') if (str == false){game_end()} if (str == true){game_restart()} } bonus.spin_level = 0 bonus.room_level = 0 { if (score >= 999) && (score <= 1999) { bonus.spin_Level = 1 bonus.room_Level = 1 } { if (score >= 1999) && (score <= 2999) { bonus.spin_Level = 1 bonus.room_Level = 2 } } Last edited by Guest001; 12-18-2016 at 03:30 PM. |
#8
|
||
|
Idk what language that is... but I can see that possibly the lines
Code:
if (score >= 999) && (score <= 1999) { bonus.spin_Level = 1 bonus.room_Level = 1 if (score >= 1999) && (score <= 2999) { bonus.spin_Level = 1 bonus.room_Level = 2
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#9
|
||
|
Thanks Scott - good suggestion and it all helps.
It's a proprietary version of LUA call GML (Game Maker Language). In keeping with your advice I've altered the score parameters but what I've done is included them in an else statement just to try and save alterations elsewhere for now. I've also set the global vars to init before the main code block. Code:
bonus.spin_level = 0 bonus.room_level = 0 { if (score < 10){ str = show_question('Replay Game?') if (str == false){game_end()} if (str == true){game_restart()} } } if (score >= 999) && (score <= 1999) { bonus.spin_Level = 1 bonus.room_Level = 1 } else if (score >= 1999) && (score <= 2999) { bonus.spin_Level = 1 bonus.room_Level = 2 } Last edited by Guest001; 12-20-2016 at 09:12 AM. |
#10
|
||
|
That was a mistake there reading what you were really saying and thanks again Scott... here's the corrected script
Code:
bonus.spin_level = 0 bonus.room_level = 0 { if (score < 10){ str = show_question('Replay Game?') if (str == false){game_end()} if (str == true){game_restart()} } } if (score >= 1000) && (score <= 1999) { bonus.spin_Level = 1 bonus.room_Level = 1 } else if (score >= 2000) && (score <= 2999) { bonus.spin_Level = 1 bonus.room_Level = 2 } |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|