Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Pixilized

Pages: [1]
1
The Axe Parser Project / Snake: What’s wrong?
« on: December 05, 2023, 07:20:40 pm »
I’m making Snake in Axe as practice, but my code isn’t working and I can’t figure out what’s wrong. The Snake is supposed to be longer, but I can only make it be one segment. What did I do wrong? Here’s my code. Thanks in advance!

Quote from: SourceCoder 3 (thetaSNAKE)
:.SNAKE
:DiagnosticOff
:ClrHome
:
:.sprites
:[E0A0E00000000000]->Pic0BODY
:[1F1F1FFFFFFFFFFF]->Pic0FILL
:
:.v\ariable RAM
:|E9872->->^^oVR
:
:.create v\ars
:^^oVR->->^^oHeadX+2->->^^oHeadY+2->->^^oDir+2->->^^oTail+2->->^^oLength
:
:.set v\ars
:0->HeadX->HeadY
:1->Tail+6->Length
:3->Dir
:
:.set list
:Data(0,0,0,0,0,0)->GDB1SEGX
:Data(0,0,0,0,0,0)->GDB1SEGY
:
:.game loop
:Repeat getKey(15)
:   
:   .erase tail
:   Pt-And({Tail-1+GDB1SEGX},{Tail-1+GDB1SEGY},Pic0FILL)
:   
:   .draw head
:   Pt-On(HeadX,HeadY,Pic0BODY)
:   
:   .update list
:   HeadX->{Tail-1+GDB1SEGX}
:   HeadY->{Tail-1+GDB1SEGY}
:   
:   .get input
:   getKey->Ans
:   If Ans?Ans<=4
:      
:      Ans->Dir
:      
:   End
:   
:   .move
:   (Dir=3)-(Dir=2)+HeadX->HeadX
:   (Dir=1)-(Dir=4)+HeadY->HeadY
:   
:   .update tail
:   Tail+1-(Length*(Tail=Length))->Tail
:   
:   .draw screen
:   DispGraphClrDraw
:   
:End



Side note: what is the bbcode for a code box? I clicked the bbcode button on SourceCoder, but that makes it a quote with a bunch of styling. How do I make the code box that you can click "copy" on?



Never mind, I found out what was wrong with snake. I forgot DispGraphClrDraw cleared the current buffer.

Edit (Eeems): Merged triple post

2
The Axe Parser Project / Buff() Command Help
« on: September 30, 2023, 08:26:24 pm »
In Axe, there is a Buff() command to make a custom buffer. It takes an input of a size, and an optional fill with constant, and returns a pointer to the new buffer.

However, when I run programs using the command, the size I choose doesn’t seem to affect how it runs, even when I choose a buffer size of one byte.

Why does the buffer size matter if it doesn’t affect the program? Or does it affect the program and I’m just to dense to notice it?

In addition, is the constant it can be filled with a hexadecimal code of an entire screen? Because I think that’s how it works, from what I’ve seen in the source code of Cookie Clicker Axe.

Thanks in advance!

3
The Axe Parser Project / Axiom Help
« on: September 23, 2023, 08:46:19 am »
I don’t really understand what Axioms are, and I really need help. ??? All I can gather is that they’re important, and I really need to know what they are. Thanks in advance! (Also, please explain to me as if I’m two years old).

EDIT: Never mind, I figured it out. Sorry!

Pages: [1]