0 Members and 3 Guests are viewing this topic.
But...L1, according to the documentation, is "free RAM", which doesn't take up any RAM. The earlier method is fine.
Quote from: JWinslow23 on December 02, 2013, 01:39:02 amBut...L1, according to the documentation, is "free RAM", which doesn't take up any RAM. The earlier method is fine.It is only free RAM as long as you don't use it Yes it is free RAM and you can use it whenever you want, but my point is that you might need it somewhere else so if you can save it, save it but if you don't need to, don't save it.For the cookie image, are you sure it is divided in sprites like that and not just divided in plain bytes ?If it's plain bytes, something like this should work (if I made no errors this time ):.unoptimizedFor(X,0,3) For(Y,0,29) {Y*4+X->r1+Pic1}->{r1+L6} {r1+Pic2}->{r1+L3} EndEnd(Sorry, can't test right now)
[0007C000003FFC0000F81F0001F70F8007CF8BC00FCF89C01E6709E03C2000707810183070003C3860003C38E0001818E03C0018E07E001CF07E001CD83C039CCC00079CC200031C6000081870000338708001B839C000F039E000F01CC801E00E0803C00738078001F00E0000E01800003FF00000078000]->Pic1[0007C000003FFC0000FFFF0001FF1F8007FF9FC00FEF8FC01FE79FE03FF319F07C783C70781C7E7870027E38E0383C18E07C0018F07E001CFC7E031CFC7E079CFC1C07BCE300433C7080193870208FF879D083F839E903F03DEB03F01ECE03E00FF807C007FC1F8001FEFE0000FFF800003FF00000078000]->Pic2ClrDraw(L6)ClrDraw(L3)For(X,0,3) For(Y,0,29) {Y*4+X->r1+Pic1}->{Y*12+X->r2+L6} {r1+Pic2}->{r2+L3} EndEndWhile 1DispGraph^^rEndIf getKey(15)
[201D]->Pic1[0007C000003FFC0000F81F0001F70F8007CF8BC00FCF89C01E6709E03C2000707810183070003C3860003C38E0001818E03C0018E07E001CF07E001CD83C039CCC00079CC200031C6000081870000338708001B839C000F039E000F01CC801E00E0803C00738078001F00E0000E01800003FF00000078000][201D]->Pic2[0007C000003FFC0000FFFF0001FF1F8007FF9FC00FEF8FC01FE79FE03FF319F07C783C70781C7E7870027E38E0383C18E07C0018F07E001CFC7E031CFC7E079CFC1C07BCE300433C7080193870208FF879D083F839E903F03DEB03F01ECE03E00FF807C007FC1F8001FEFE0000FFF800003FF00000078000]ClrDraw(L6)ClrDraw(L3)Bitmap(0,0,Pic1,L6)Bitmap(0,0,Pic2,L3)While 1DispGraph^^rEndIf getKey(15)
I wonder if you could optimize it
[0007C000003FFC0000F81F0001F70F8007CF8BC00FCF89C01E6709E03C2000707810183070003C3860003C38E0001818E03C0018E07E001CF07E001CD83C039CCC00079CC200031C6000081870000338708001B839C000F039E000F01CC801E00E0803C00738078001F00E0000E01800003FF00000078000]->Pic1[0007C000003FFC0000FFFF0001FF1F8007FF9FC00FEF8FC01FE79FE03FF319F07C783C70781C7E7870027E38E0383C18E07C0018F07E001CFC7E031CFC7E079CFC1C07BCE300433C7080193870208FF879D083F839E903F03DEB03F01ECE03E00FF807C007FC1F8001FEFE0000FFF800003FF00000078000]->Pic2ClrDraw^^r^^r0For(4) ->X ~1->Y For(30) {Y+1->Y*4+X->r1+Pic1}->{Y*12+X->r2+L6} {r1+Pic2}->{r2+L3} End X+1EndWhile 1DispGraph^^rEndIf getKey(15)
[0007C000003FFC0000F81F0001F70F8007CF8BC00FCF89C01E6709E03C2000707810183070003C3860003C38E0001818E03C0018E07E001CF07E001CD83C039CCC00079CC200031C6000081870000338708001B839C000F039E000F01CC801E00E0803C00738078001F00E0000E01800003FF00000078000]->Pic1[0007C000003FFC0000FFFF0001FF1F8007FF9FC00FEF8FC01FE79FE03FF319F07C783C70781C7E7870027E38E0383C18E07C0018F07E001CFC7E031CFC7E079CFC1C07BCE300433C7080193870208FF879D083F839E903F03DEB03F01ECE03E00FF807C007FC1F8001FEFE0000FFF800003FF00000078000]->Pic2ClrDraw^^r^^r~1->r1~9->r2For(120) {Select(r1+1,->r1 and 3??r2+8->r2)+Pic1}->{r2+1->r2+L6} {r1+Pic2}->{r2+L3}EndWhile 1DispGraph^^rEndIf getKey(15)
[0007C000003FFC0000F81F0001F70F8007CF8BC00FCF89C01E6709E03C2000707810183070003C3860003C38E0001818E03C0018E07E001CF07E001CD83C039CCC00079CC200031C6000081870000338708001B839C000F039E000F01CC801E00E0803C00738078001F00E0000E01800003FF00000078000]->Pic1[0007C000003FFC0000FFFF0001FF1F8007FF9FC00FEF8FC01FE79FE03FF319F07C783C70781C7E7870027E38E0383C18E07C0018F07E001CFC7E031CFC7E079CFC1C07BCE300433C7080193870208FF879D083F839E903F03DEB03F01ECE03E00FF807C007FC1F8001FEFE0000FFF800003FF00000078000]->Pic2ClrDraw^^r^^r~4->r1~12->r2For(30) Copy(r1+4->r1+Pic1,r2+12->r2+L6,4) Copy(r1+Pic2,r2+L3,4)EndWhile 1DispGraph^^rEndIf getKey(15)
A mouse cursor is the easiest thing to make.
offtopic: oh my streetwalker, dat profile pic o.o