Name: Slots
I have bee working on this for quite some time, running into various issues along the way. I have it pretty much complete, but I have a couple of problems.
1) When exiting the app, I have it save the amount of "money" that the player has. however, my method is not the best method. I currently have it adding a digit to a string for each "dollar" and then saving it to an appvar. This is fine when saving small numbers, but can get very tedious when trying to save large numbers. I feel like there is a much easier way to do this. Here is the code that I am currently using.
Code:
In the future, I plan on making a third version (the first was purely BASIC) that will use sprites and the half resolution mode for better graphics and overall experience.[/code]
I have bee working on this for quite some time, running into various issues along the way. I have it pretty much complete, but I have a couple of problems.
1) When exiting the app, I have it save the amount of "money" that the player has. however, my method is not the best method. I currently have it adding a digit to a string for each "dollar" and then saving it to an appvar. This is fine when saving small numbers, but can get very tedious when trying to save large numbers. I feel like there is a much easier way to do this. Here is the code that I am currently using.
Code:
If K=22 or K=45
Then
"rowSwap(MONEY"→Str0
det(4)
" "→Str8
For(Y,2,X)
Output(10,26,"0"
Str8+" "→Str8
iPart(Y/X*100→A
Output(7,13,A)
Output(10,26," "
End
Str8→Str9
1
det(1)
Stop
End
In the future, I plan on making a third version (the first was purely BASIC) that will use sprites and the half resolution mode for better graphics and overall experience.[/code]