Exiting crashes the calc, with a RAM clear, and the window's X to close doesn't do anything.
Launching the options menu brings up GAME OVER and crashes.
High Scores button isn't being rendered.

Need to fix the options menu thing first.
EDIT:
Looking good! And hopefully you figure out your options problem. Smile Did you remember to load hl,0 before calling GUIMouse?
That's the options problem; HL pointed to optsWinButtonCancel when I called GUIMouse in the options menu..

EDIT:
Bugs fixed:
Options menu works, applying options is buggy though.
Forgot to put the High Scores button on GUI stack, fixed
not bad look, properly position the text below the quit button (and possibly pad the quit button with spaces and it'll look great. put a tetris-y looking GUIRSprite on the right side to take up the blank area.
elfprince: definitely. I think that would make it look much spiffier.

It seems to me that it shouldn't be running out of RAM unless there's something wrong in the GUI routines..
However, things seem to be coming along pretty well aside from that. I'll definitely spiff up the windows and do some better alignment once it stops crashing. Also, that GUIRWrappedText in the high scores screen is acting strange.. any ideas? The data:

Code:

highScoreTexts:
   .db 0
   .db 0
   .db 40
   .db 0
highScoreTexts_Spork:
   .db "1. ----------",0D6h   ;needs space for the score, too.  ignore for now
   .db "2. ----------",0D6h
   .db "3. ----------",0

It's possible I'm screwing with the data when I copy the high scores from the 'actual' storage, though. ..or maybe the wrap limit is far too low, which seems more likely.
It seems that the 'Play Game' button works, but it fails to make the screen actually render, just bringing up the "WAITING.." message for a while, then bringing up "GAME OVER".
Post the code for the guiwinbuttons on the high score screen. Also, use three regular text line items instead of one wrapped line.

Code:

scoresOpen:
   call resetAppPage
   ld a,GUIRSmallWin
   ld hl,scoresWinDat
   ld de,scoresWinTaskB-scoresWinDat
   call pushGUIStack
   ld a,GUIRWinButtons
   ld hl,scoresWinTaskB
   ld de,highScoreTexts-scoresWinTaskB
   call pushGUIStack
   ld a,3
highScore_winDatCopy:
   ld hl,highScoreTable
   ld de,highScoreTexts_Spork
   ld bc,13
   ldir
   inc hl
   inc hl
   inc hl
   inc de
   dec a
   jr nz,highScore_winDatCopy
   ld a,GUIRWrappedText
   ld hl,highScoreTexts
   ld de,scoresWin_End-highScoreTexts
   call pushGUIStack
   ld hl,0
   call GUIMouse
;;only one possible action here - exit
closeScoresWin:
   call resetAppPage
   pop hl
   ld b,3
   call PopGUIStacks
   ret
;=================================================
;   scoresWin objects
;=================================================
scoresWinDat:
   .db 7
   .db 7
   .db 11110000b
   .db 00100000b
   .db 01010000b
   .db 11111000b
   .db 00010000b
   .db "High scores",0
scoresWinTaskB:
   .db 00100000b
   .dw 0
   .dw 0
   .dw closeScoresWin
highScoreTexts:
   .db 0
   .db 0
   .db 40
   .db 0
highScoreTexts_Spork:
   .db "1. ----------",0D6h   ;needs space for the score, too.  ignore for now
   .db "2. ----------",0D6h
   .db "3. ----------",0
scoresWin_End:

I'll change the names to three objects, though.
I just stumbled onto this topic and wondered if any progress has been made Confused
Excellent call, Pseudo. Tari, any progress with this? Smile
Not recently, seeing as I haven't had much time to do stuff. I've got a password protection SE under construction which seems to almost complete, which I should be able to release around the middle of the week. If anyone else wants to have a stab at it, here's my primary file. I seem to have deleted ztris.z80 (no idea why), but it was only a slightly modified version of the 'stock' file off ticalc.org.
Can't wait to see this! Maybe 2 player will be fixed as well...
1/4
Sting::Ray, please keep your posts on-topic. You put that in the incorrect topic.
Sorry. Sad

I edited it, it's on-topic now.
Soooooo.... Did anything ever come of this?
Harq wrote:
Soooooo.... Did anything ever come of this?
The last I spoke to Tari, he was going to clean up his existing code and toss it to me to finish up for release.
I did, and now I don't have the files.. I think I e-mailed it to you (admin -AT- cemetech.net).
The Tari wrote:
I did, and now I don't have the files.. I think I e-mailed it to you (admin -AT- cemetech.net).
Hopefully I got them... Sad I might have lost it when the server crashed...
Heh, so the source code is floating, lost in the world wide web of tubes....

Quick, call a plumber!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement