0 Members and 1 Guest are viewing this topic.
So If I didn't make a mistake here, this should draw (a part of the map) to fill the screen?Code: [Select].0[hexcode1]->pic0.1[hexcode2]for a,0,11for b,0,7pt-on(a*8-8,b*8-8,{Y*Width+B+pointer}+pic0)endendThanks a lot Final Ti.
.0[hexcode1]->pic0.1[hexcode2]for a,0,11for b,0,7pt-on(a*8-8,b*8-8,{Y*Width+B+pointer}+pic0)endend
Quote from: Stefan Bauwens on August 18, 2011, 12:10:34 pmSo If I didn't make a mistake here, this should draw (a part of the map) to fill the screen?Code: [Select].0[hexcode1]->pic0.1[hexcode2]for a,0,11for b,0,7pt-on(a*8-8,b*8-8,{Y*Width+X+pointer}+pic0)endendThanks a lot Final Ti. Nope, better like this (In black, your correct code. In red, your wrong code. In green, corrected code,).0[hexcode1]->Pic0.1[hexcode2]for a,0,11for b,0,7For(A,0,11 For(B,0,7 .not really an error but not written with the exact syntax pt-on(a*8-8,b*8-8,{Y*Width+X+pointer}+pic0) Pt-On(A*8,B*8,{Y*Width+X+Pic0} .you put +pointer but the pointer is Pic0 here EndEnd
So If I didn't make a mistake here, this should draw (a part of the map) to fill the screen?Code: [Select].0[hexcode1]->pic0.1[hexcode2]for a,0,11for b,0,7pt-on(a*8-8,b*8-8,{Y*Width+X+pointer}+pic0)endendThanks a lot Final Ti.
.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
pt-on(a*8-8,b*8-8,{Y*Width+X+pointer}+pic0) Pt-On(A*8,B*8,{Y*Width+X+Pic0} .you put +pointer but the pointer is Pic0 here
Pt-On(A*8,B*8,{Y*Width+X+pointer} * 8 + Pic0)
[010101010101]->GDB1
Because each tile is 8 bytes.
No, it is an hex code. [01]=b00000001
I also have a question. How do we handle 2 bytes data ?(Axe 0.5.3 user)To have 65535 and 65535 at GDB1 and GDB1+1, do I doData(65535r,65535r)→GDB1or Data(65535,65535)r→GDB1or Data(255r,255r,255r,255r)→GDB1etc...and to read, I use {GDB1r} or {GDB1}r ?
No problem. I help those who need help because I first received help when I needed.Yay, quoting myself Quote from: Hayleia on August 19, 2011, 12:16:39 pmI also have a question. How do we handle 2 bytes data ?(Axe 0.5.3 user)To have 65535 and 65535 at GDB1 and GDB1+1, do I doData(65535r,65535r)→GDB1or Data(65535,65535)r→GDB1or Data(255r,255r,255r,255r)→GDB1etc...and to read, I use {GDB1r} or {GDB1}r ?