0 Members and 2 Guests are viewing this topic.
:.DJTUNNEL Axe Parser Tunnel clone:[80C0E0F0E0C08000→Pic1:[FFFFFFFFFFFFFFFF→Pic2:"SCORE:"→Str1:"AXE TUNNEL"→Str2:"2010, BY DJ OMNIMAGA"→Str3:"SPEED:"→Str4:1→S:9→R:0→D:8→C:30→A+10→W→T:0→P:2→Q:Full:DiagnosticOff:ClrHome:ClrDraw:For(Z,9,21:Line(0,Z,95,Z:End:Line(0,56,95,56:StorePic :ClrDraw:For(Z,8,22:Line(0,Z,95,Z:End:For(Z,56,63:Line(0,Z,95,Z:End:DrawInv :Fix 5:Fix 1:Text(20,12,Str2:Fix 0:Text(14,57,Str3:Fix 3:Text(5,35,Str4:29→I:5→J:2→K:Repeat Z=54:DS<(K,12):DispGraphr:End:DS<(J,9/S):Pt-Change(I,34,Pic1):I+1→I:If I=86:29→I:End:End:getKey→Z:Z=3-(Z=2)+S→S:If S=6:5→S:End:If S=0:1→S:End:End:ClrHome:ClrDraw:For(Z,10,50:Line(0,Z,95,Z):End:Repeat W=6 or getKey(15):P+S→P:DS<(C,8):If rand<32767:‾1→D:Else:1→D:End:End:R+D→R:If R<1:1→R:End:If 62-W<R:62-W→R:End:If getKey(4):A-1→A:End:If getKey(1):A+1→A:End:Pt-Change(0,A,Pic1):Line(95,R,95,R+W):DS<(Q,S):DispGraph:If pxl-Test(0,A) or pxl-Test(0,A+6):Goto GO:End:End:Pt-Change(0,A,Pic1):Horizontal-:DS<(T,99):W-1→W:End:End:Lbl GO:Fix 4:Fix 2:ClrHome:Output(0,0,Str1,P►DecGenerated by SourceCoder, © 2005 Cemetech
the executable would be about twice smaller than the executable.
Quote from: DJ Omnimaga on April 27, 2010, 12:30:03 pmthe executable would be about twice smaller than the executable.lolwut?
:.DJTUNNEL Axe Parser Tunnel clone:[80C0E0F0E0C08000→Pic1:[FFFFFFFFFFFFFFFF→Pic2:"SCORE:"→Str1:"AXE TUNNEL"→Str2:"2010, BY DJ OMNIMAGA"→Str3:"SPEED:"→Str4:0→D→P+1→S+1→Q:8→C+1→R:30→A:10→W→T:Full:DiagnosticOff:ClrHome:ClrDraw:For(Z,9,21:Line(0,Z,95,Z:End:Line(0,56,95,56:StorePic :ClrDraw:For(Z,8,22:Line(0,Z,95,Z:End:For(Z,56,63:Line(0,Z,95,Z:End:DrawInv :Fix 5:Fix 1:Text(20,12,Str2:Fix 0:Text(14,57,Str3:Fix 3:Text(5,35,Str4:29→I:5→J:2→K:Repeat Z=54:DS<(K,12):DispGraphr:End:DS<(J,9/S):Pt-Change(I,34,Pic1):I+1→I:If I=86:29→I:End:End:getKey→Z:Z=3-(Z=2)+S→S:If S=6:5→S:End:!If S:1→S:End:End:ClrHome:ClrDraw:For(Z,10,50:Line(0,Z,95,Z):End:Repeat W=6 or getKey(15):P+S→P:DS<(C,8):rand^2*2-1→D:End:R+D→R:!If R:1→R:End:If 62-W<R:62-W→R:End:If getKey(4):A-1→A:End:If getKey(1):A+1→A:End:Pt-Change(0,A,Pic1):Line(95,R,95,R+W):DS<(Q,S):DispGraph:If pxl-Test(0,A) or pxl-Test(0,A+6):Goto GO:End:End:Pt-Change(0,A,Pic1):Horizontal-:DS<(T,99):W-1→W:End:End:Lbl GO:Fix 4:Fix 2:ClrHome:Output(0,0,Str1,P►DecGenerated by SourceCoder, © 2005 Cemetech
Quote from: Silver Shadow on April 27, 2010, 12:42:34 pmQuote from: DJ Omnimaga on April 27, 2010, 12:30:03 pmthe executable would be about twice smaller than the executable.lolwut?In source code, sprites are stored in hex form. A 8x8 sprite takes 16 bytes in the source. When compiled, that sprite shrinks to 8 bytes. Same for any hex data. Say you have a game with 20 KB of map data and 0.5 KB of code. The maps will end up 10 KB and the code around 1 KB
Edit:Quote from: DJ Omnimaga on April 27, 2010, 12:53:53 pmQuote from: Silver Shadow on April 27, 2010, 12:42:34 pmQuote from: DJ Omnimaga on April 27, 2010, 12:30:03 pmthe executable would be about twice smaller than the executable.lolwut?In source code, sprites are stored in hex form. A 8x8 sprite takes 16 bytes in the source. When compiled, that sprite shrinks to 8 bytes. Same for any hex data. Say you have a game with 20 KB of map data and 0.5 KB of code. The maps will end up 10 KB and the code around 1 KBIt was funny becasue you said executable was smaller than itself. You meant the source would be about twice smaller than the executable size.