0 Members and 2 Guests are viewing this topic.
This is probably very stupid to ask, but I find myself learning Axe very slowly. I read through the document and I read tutorials on Axe. But when I read codes from open source Axe programs, I have to spend a really long time to figure out what it does, most of the time, I can't figure out either. So I'd like to ask how you learned Axe at the beginning and how did you progress to this stage?
Both are the same size: 0 bytes.
In other news, Frey continues kicking unprecedented levels of ass.
2 or 3 bytes with End, 4 or 5 bytes with EndIf or End!If. But While 1 and Repeat 0 themselves result in 0 bytes of compiled code.
{{1,1,1,1,1,1},{1,0,0,0,0,1},{1,0,0,0,0,1},{0,0,0,0,0,0}}➝matrix
I have a question. I have just started in axe and I never programmed on the z80 calcs really before. I am used to in 68k basic to use matrices as a way to save map data. Something like this: Code: [Select]{{1,1,1,1,1,1},{1,0,0,0,0,1},{1,0,0,0,0,1},{0,0,0,0,0,0}}➝matrixBut I don't know if this is possible on the Ti-83+.Maybe axe doesn't support it... Also if it would be possible is there a limit, or can I have huge matrices? Thanks in advance.
[010101010101][010000000001][010000000001][000000000000]➝pointer
Data(1,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0)➝pointer
{Y*Width+X+pointer}
Hey guys, sorry for my english because i am french, but can some one explain me how to use the link port, how to send some variable, files, to make a multiplayer game.Thank's
Quote from: Stefan Bauwens on August 18, 2011, 05:21:53 amI have a question. I have just started in axe and I never programmed on the z80 calcs really before. I am used to in 68k basic to use matrices as a way to save map data. Something like this: Code: [Select]{{1,1,1,1,1,1},{1,0,0,0,0,1},{1,0,0,0,0,1},{0,0,0,0,0,0}}➝matrixBut I don't know if this is possible on the Ti-83+.Maybe axe doesn't support it... Also if it would be possible is there a limit, or can I have huge matrices? Thanks in advance. Well, Axe doesn't technically support matrices, everything used to store data is an array of bytes.There are a couple ways to do it. One is to use hex:Code: [Select][010101010101][010000000001][010000000001][000000000000]➝pointerAnother way is to use the Data() command:Code: [Select]Data(1,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0)➝pointerThe only limit to these arrays of bytes is your free memory. If you had the memory free, you could have a 128*128 map or possibly larger.Once you've set up your array of bytes, you would read each byte like you would a cell in a matrix.Code: [Select]{Y*Width+X+pointer}Where Y is your Y-coordinate, X is your X-coordinate, and Width is the width of the map, and pointer is the pointer to your map data.
.0[hexcode1]->pic0.1[hexcode2]for a,0,11for b,0,7pt-on(a*8-8,b*8-8,{Y*Width+X+pointer}+pic0)endend