Now with 20% more walruses
Started by 123outerme, January 16, 2017, 12:29:41 am
0 Members and 1 Guest are viewing this topic.
Quote from: p2 on January 16, 2017, 02:26:48 pmif you have the appvar OIRAM and the appvar NOMEKOP and both have the command DRAWSTUFF(how does the game decide which one to use?
:"OIRAM->Str0 // If you want the other AppVar, just change it to "NOMEKOP->Str0:"DRAWSTUFF(20:prgmDIYILB
1 :DIGIT(CALL(EXECUTE(A(2 :code for DIGIT(3 :code for CALL(4 :code for EXECUTE(etc.
Quote from: p2 on January 16, 2017, 03:03:30 pmreally nice, might be a great help for on-calc programmers (dont have to type the same super song formula a thousand times again) xDhow big exactly is the slowdown? could you do two counters, one using the external command thingy, one directly counting, and tell us the results (speed comparison)? I'm really interested in how fast it is ^^
"rowSwap(LIBNEW00→Str0startTmr→TFor(F,1,150"DIGIT(FprgmDIYLIBEndcheckTmr(T-IAns/150→GstartTmr→TFor(F,1,150int(1+log(real(F+(0=real(FEndcheckTmr(T)→JAns150→HDisp G,H," ",I,JPause
Quote from: p2 on January 16, 2017, 03:25:21 pmouch those numbers hurt... can you maybe determine where the slowdown comes from?try a loop INSIDE the external thingy (the userdefined command).maybe it just takes time to lookup what should be executed, while the execution itself is at regular speed again, which means the slowduwn would be much smaller for real day-to-day usage.
Quote from: kotu on January 16, 2017, 03:29:00 pmshouldn't you store each command's lookup address before you start? idk never programmed a emulator or anything like that b4
Quote from: DJ Omnimaga on February 05, 2017, 04:39:53 pmI'm kinda curious if some sort of game can be made out of this, such as a turn based text based fighting game
Get the input stringRead the DIYLIB appvar to determine which command is being called; repeats through the "master string" holding every command nameExecute the code on one on the corresponding line
Get the input stringRead every other line of the appvar until you find the command being calledExecute the code, which appears on the next line
CodeWalr.us 2.0 © 2019, DJ Omnimaga & Juju
Page created in 0.049 seconds with 37 queries.