Hey, I'm trying to make a 2D maze game in Axe with ASCII symbols (so I can eventually turn it into a roguelike).
I started it in Ti-BASIC. Here's the BASIC code:
Code:
But this version doesn't work well at all.
Then I decided to do this in Axe so I could do more things with the game (and so it would be much faster). Here's my attempt at porting the code above:
Code:
But this doesn't work at ALL. All I see is a blank screen, and when I press [CLEAR] it exits.
Can I have some help please?
Edit by Merth: Added code tags around your code. In the future please be sure to add them.
I started it in Ti-BASIC. Here's the BASIC code:
Code:
ClrHome
1->X
1->Y
Menu("The Maze Game","Start",ST,"Quit",QT
Lbl ST
While 1
Repeat getKey
getKey->K
If K=25 and Y!=0:Then
Y-1->Y
Goto DP
End
If K=34 and Y!=60
Then
Y+1->Y
Goto DP
End
If K=24 and X!=0:Then
X-1->X
Goto DP
End
If K=26 and X!=60
Then
X+1->X
Goto DP
End
Lbl DP
ClrDraw
Text(Y,X,"A"
DispGraph
Goto ST
But this version doesn't work well at all.
Then I decided to do this in Axe so I could do more things with the game (and so it would be much faster). Here's my attempt at porting the code above:
Code:
.MAZEGAME
3C409EA2A29E423C->Pic1
DiagnosticOff
ClrHome
1->X
1->Y
Lbl ST
Repeat getKey(15)
If getKey(1) and (Y!=0)
Y-1->Y
sub(DP)
Else
Goto ST
End
If getKey(2) and (Y!=60)
Y+1->Y
sub(DP)
Else
Goto ST
End
If getKey(3) and (X!=0)
X-1->X
sub(DP)
Else
Goto ST
End
If getKey(4) and (X!=60)
X+1->X
sub(DP)
Else
Goto ST
End
Lbl DP
ClrDraw
Pt-On(X,Y,Pic1)
DispGraph
Goto ST
End
But this doesn't work at ALL. All I see is a blank screen, and when I press [CLEAR] it exits.
Can I have some help please?
Edit by Merth: Added code tags around your code. In the future please be sure to add them.