0 Members and 1 Guest are viewing this topic.
:"set user vars:real(1,1,0,0:real(1,1,1,0:real(1,1,2,0:real(1,1,3,0:real(1,1,5,0:real(1,1,6,0:real(1,1,7,64:"set 160x240 mode:real(0,1,0:"draw tilemap (to both sides of LCD):real(3,0,5,6,7,0,0,1:real(3,0,5,6,7,0,0,0:"loop until clear is pressed:Repeat real(2,0)=15:"draw character sprite, updateLCD:real(4,0,1,2,2,0,249,1,0,124,125,126,127:"draw tiles behind old character sprite to inactiveLCD section:real(4,2,3,2,2,0,1,0,real(3,1,2,3,7,0,0),real(3,1,2,3,7,0,8),real(3,1,2,3,7,8,0),real(3,1,2,3,7,8,8:"copy old character position to temp position:real(1,1,2,real(1,0,0:real(1,1,3,real(1,0,1:"test for keypresses, update x/y depending on arrows:real(2,4,4,1,-8,1,1,8,2,0,-8,3,0,8:End:"restore LCD to normal mode:real(0,1,1
Well the map will site in temp RAM and you can modify the tiles in it however you like. You just cant save it back to the original data.
:If N=5821:[[16,16,16,16,16,16,29,11,39,40,27,16][16,16,16,29,27,29,41,11-(L1(1)=4),11,11,39,15][28,28,29,41,39,41,11,11,11,10+(L1(1)=4),11,15][40,40,41,11,11,11,11,11,11,11,11,15][11,11,11,11,11,11,11,11,11,11,3,16][4,4,5,11,11,11,11,11,3,4,4,16][16,16,16,5,11,11,11,11,27,28,54,55][16,16,16,16,5,11,11,11,39,40,66,67]]
Just a small colour drawLine test. Note that this is in 160x120 res ... but i have limited the random line coords to the middle ofthe screen because there is no clipping.Also its a jsTIfied screenie so its a lot smoother in reality: