Project Name: BAGASMI Roulette
Original Enter: Yes
Support Motion: No
Open Source: Kinda (interpreter source linked below, script pasted below)
In a past NEO Compo this project won in the top 10: No
BAGASMI Roulette is a simple text based roulette game scripted using BAGASMI http://www.neoflash.com/forum/index.php/topic,7644.0.html
This game is played with a group of people, where you can pass your DS around.
Essentially, There is a revolver with 6 chambers and 1 chamber contains a bullet. You fire this revolver by pressing the A button. If you fire and the chamber is empty, you are safe. The game continues by passing the DS to the next person (who then fires the gun, and so on and so forth) until the chamber with the bullet is fired--in which case, whoever fired the bullet loses.
It's a simple time wasting game, or perhaps an entertaining drinking game!
Script code here:
;since the game is just starting, we can skip right to the beginning
;game over text
GameOver PRINT "*BANG!* You lost.\n"
;initialize our revolver, jump with jump back flag initialized
GameStart JUMP Reload, #0
;then print out the game instructions
PRINT "\n~BAGASMI Roulette!~\n"
PRINT "Press A to shoot.\nPress B to exit.\nSelect to clear console.\n\n"
;loop to keep game running
;store current key presses in register 0
;Check if B button (#2) is newly pressed to exit script
CHKKEYNEW $R0, #2, Exit
;Check if Selected (#4) is pressed to clear the console
CHKKEYNEW $R0, #4, ClearScreen, #0
;if A button (#1 value) is newly pressed, check to see if shot is legit
CHKKEYNEW $R0, #1, CheckChamber, #0
;otherwise, continue game loop
;exit the script
;check if chamber was empty or not
;if our shot is equal to the chamber that is loaded,
;then the game resets for another go :D
IFEQ shotCounter, chamber, GameOver
;otherwise, increase the shot counter, and try again
;let the user know they are safe
PRINT "*CLICK* Safe!\n"
;loads a single shot into a random chamber
;pick a random chamber from 0 - 6 (6 chambers)
RANDM chamber, #6
;reset the shot counter
SET shotCounter, #0
;Set up our six shooter here
chamber DATA #0
shotCounter DATA #0
Binary Download Here: https://www.dropbox.com/s/0hcq2nl8hj3xg8c/BAGASMI-Roulette.zip