0 Members and 2 Guests are viewing this topic.
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.bizUser: gitPassword: tiCalcDevsPath to game source: /home/git/repos/slender1.gitSupported commands: Anything related to git, and scp.
Quote from: ACagliano on February 03, 2016, 09:54:03 pmHere 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 dataI 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.
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 ajr z,waitKeyI 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.
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).
Quote from: ACagliano on February 08, 2016, 10:11:48 amThe 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 Please post when you get the new GUI ready!
EndIf getKey->G
Can I then store getKey to a variable? Like Code: [Select]EndIf getKey->G