I'm trying to seriously get into Axe, and I decided to resurrect an old project idea of mine, to create a "text based" roguelike on the Ti 8X B/W calculators. I absolutely love the ascii art of those roguelikes, and I want to see if I can do this!

After rereading and typing out the things from the Axe documents, I have created a very VERY rudimentary scrolling engine and collision engine. The collision engine doesn't work quite right (because the sprite drawing happens after everything and I need to figure that out), but here it is!


Code:

.ROGUE A roguelike in Axe
prgmFLOR2SRC
DiagnosticOff
[3C429AA6A69C423C]->Pic100
[0042665A5A424200]->Pic101
1->X->Y
.3->U->V
0->U->V
Repeat getKey(15)
   If getKey(4)?TCh(X,Y-1)
   Y--
   ElseIf getKey(1)?TCh(X,Y+1)
   Y++
   ElseIf getKey(2)?TCh(X-1,Y)
   X--
   ElseIf getKey(3)?TCh(X+1,Y)
   X++
   ElseIf getKey(48) and getKey(14)?TCh(X,Y)=2
   1->X->Y
   End
   If X>10:3->U
   Else
   0->U
   End
   If Y>6:3->V
   Else
   0->V
   End
   Lbl DP
   For(B,0,7)
      For(A,0,11)
         Pt-Off(A*8,B*8,{B+V*G+A+U+GDB0}*8+Pic000)
      End
   End
   Pt-Off(X*8,Y*8,Pic100)
   DispGraph
End
Return

Lbl TCh
.<Row#>*<Total Columns> + <Column#> + <Start of Data>
Return {[r2]+V*G+[r1]+U+GDB0}

Lbl MonsGenChk
Return


The floor is unchanged:


Code:

.FLOOR2
[00247E24247E2400]->Pic000
[0000000000001818]->Pic001
[C0300C03030C30C0]->Pic002
16->G
12->H
[00000000000000000000000000000000]->GDB0
[00010101010101010101010101010000]
[00010000010101010101010000010000]
[00010101010101010101010101010000]
[00010101010100010001010101010000]
[00010101010101020101010101010000]
[00010101010101020101010101010000]
[00010101010100010001010101010000]
[00010101010101010101010101010000]
[00010000010101010101010000010000]
[00010101010101010101010101010000]
[00000000000000000000000000000000]
This looks great! I dabbled in Axe for for awhile, but never did anything with it. It has a lot of potential.
Sort of alongside this project, I'm making a roguelike for the Synertek SYM-1 in C, goal being under 3.5kb in size. I'd like for this to be similar, it would be really cool to have a toolchain set up for C to ti 84+ compilation. People say the z80 is garbage for C, and while true, my experiments and experience have shown that you can do C on a z80 very very well if you know what you're doing.
  
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 1 of 1
» 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