Here I have enclosed the source file and executable file for the Yahtzee game. Current untraceable bugs:
1. Saferam L1 not clearing after a Fill(), a looped zero, and other means of zero-ing the data
I wish I could test this, but I only have a CE now. Could it and Project Slender be ported?
Server Name: acagliano.no-ip.biz
User: git
Password: tiCalcDevs
Path to game source: /home/git/repos/slender1.git
Supported commands: Anything related to git, and scp.
Here I have enclosed the source file and executable file for the Yahtzee game. Current untraceable bugs:
1. Saferam L1 not clearing after a Fill(), a looped zero, and other means of zero-ing the data
I stepped through both instances of Fill(L1,...) in a debugger, and both are behaving correctly. If there's any unexpected data there after this, you must be putting it there. :P
Why are you using GetKey? Also, i'd either disable interrupts or turn off the run indicator (_RunIndicOff or resetting the bit in indicFlags).
What are the keys? I get to the screen where you have the five boxes, but there are no die or anything. I can select the boxes using the f1-f5 keys, but nothing else. The game screen looks a bit plain, but it's a nice start :) I played Yahtzee a ton in school, i believe this was the game i used to play, perhaps you could use it for some inspiration:
http://www.ticalc.org/archives/files/fileinfo/191/19190.html
I would just use a loop with _GetCSC, in asm:
waitKey:
bcall(_GetCSC)
or a
jr z,waitKey
I tested the game again and it seems to work pretty well, it'd be nice to be able to see all the sets at once. Also, when you pick your points after rolling, the dice aren't rolled again, you can choose to hold dice from the previous roll. I'm not sure what exactly happened, but i held dice until i eventually got a Yahtzee, and the second time i choose Yahtzee it wouldn't let me roll anymore, all i could do was press enter to get more points (see screenshot). I just tried it again and the same thing happened. Getting two Yahtzees (or maybe getting a Yahtzee after holding all five cards?) prevents you from being able to roll the dice anymore.
The way it works is, if you score more than one Yahtzee, you score again against an additional combo before rolling again.You mean the second time around you get the fifty points and then pick another combo? The problem currently is you can just continually choose Yahtzee and get an infinite amount of points, at least until the counter overflows. I think i always just played after the first Yahtzee any others will give you 100 points, but with your way at least prevent the player from chosing another Yahtzee ;)
By key list do you mean like in the help menu? I think you could leave it as it is ([mode] brings up the help screen) or perhaps add an entry to the main menu or a [mode]=? button on screen. Personally i'd prefer to see all my combos.
And your loop should more or less get turned into that asm code, i'm not familiar with Axe but in your program try pressing [2nd]+[On]. You'll exit your program and the RAM your program occupied won't be freed (a massive RAM leak).
The way it works is, if you score more than one Yahtzee, you score again against an additional combo before rolling again.You mean the second time around you get the fifty points and then pick another combo? The problem currently is you can just continually choose Yahtzee and get an infinite amount of points, at least until the counter overflows. I think i always just played after the first Yahtzee any others will give you 100 points, but with your way at least prevent the player from chosing another Yahtzee ;)
Btw, i forgot how much i love playing this game :D Please post when you get the new GUI ready!
And your loop should more or less get turned into that asm code, i'm not familiar with Axe but in your program try pressing [2nd]+[On]. You'll exit your program and the RAM your program occupied won't be freed (a massive RAM leak).
EndIf getKey->G
Can I then store getKey to a variable? LikeCode: [Select]EndIf getKey->G
- highlight the combos you've used already (XOR a black square over them) so you can easily see which combos you've already used.I could do that.
- Replace the 'used' text with the points you scored for that combo
- Perhaps up/down could move the cursor to the other row? If you want things to line up, you can make the USED/score box the same size as the YATZ box.I could also do that. Not too concerned about lining up exactly, but we'll see.
- A way to see how many points you have in the top row (i believe it's 63 points you need to get the bonus)
- Turn off the run indicator. The hex code for bcall(_RunIndicOff) is EF7045. Axe may have another way to do this.
- It might be better to notify you that you're getting the +35, at first i thought it was a calculation glitch (eg. for 3 6's, it'd show 18+35 or something or have a text or button appear saying "BONUS").
- After selecting a combo, it might be better to clear the dice. Also, a rolling animation would look nice :)Sorry, but the program is already 6000 bytes. I wanted smaller, but animations are going to make the program even larger.