Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
127 28 29 30 31 32 33 34 35 36 37 38 39
次のページ(過去)
返信[1]
親投稿
SıмΞоп SimeonW
lol
0そうだね
プレイ済み
返信[1]
親投稿
SıмΞоп SimeonW
Show some code first, revealing how your initializing the data
1そうだね
プレイ済み
返信[5]
親投稿
SıмΞоп SimeonW
Blastoise: Instead of all those if statements, simplify it like so: IF B AND #UP IF B AND #DOWN IF B AND #LEFT IF B AND #RIGHT That way it compares the binary numbers through a bitwise AND gate, the code is much cleaner and faster
1そうだね
プレイ済み
返信[4]
親投稿
SıмΞоп SimeonW
Improvement of Josh's code S=MIN(S,511)
1そうだね
プレイ済み
返信[2]
親投稿
SıмΞоп SimeonW
Yea so I curiously studied your source code, It is pretty interesting, and much shorter than I expected May I recommend studying "Reverse polish notation" using the "Shunting yard algorithm" If you study the wikipedia page(s) then you'll be able to build much more complex parsing engines It converts an expression that needs parentheses into one that doesnt (3-5)/(1+2) ↓↓↓↓↓↓ 3 5 - 1 2 + /
1そうだね
プレイ済み
返信[1]
親投稿
SıмΞоп SimeonW
... WHAT? :o An interpreter for what language?
0そうだね
プレイ済み
返信[3]
親投稿
SıмΞоп SimeonW
That would be nice, but sadly no, each version of a program gets assigned an entirely new key
0そうだね
プレイ済み
返信[3]
親投稿
SıмΞоп SimeonW
S5WEVW3V is mine The impressive part is behind the scenes, the data structure is very dynamic, it only draws what is in the screen, so the map can be theoretically infinite, without modifying the performance at all :D
1そうだね
プレイ済み
返信[3]
親投稿
SıмΞоп SimeonW
Variable declaration is optional, except for arrays VAR and DIM are the same DIM a[0],randomnumber=42 PUSH a,[some value] is very common TOUCH OUT TM,TX,TY IF TM>0 THEN PRINT TX,TY prints out the touch coordinates when the user is tapping (TM is 0 if not tapping, and >0 if tapping, TM==1 if its the first tap)
1そうだね
プレイ済み
返信[2]
親投稿
SıмΞоп SimeonW
Yeah use POW(), ^ is used for bitwise operations in nearly every programming language now a days I think its bitwise XOR
0そうだね
プレイ済み
返信[3]
親投稿
SıмΞоп SimeonW
Look at this algorithm: VAR SMOOTHNESS=10,TX2,TY2 'Then add this right after the TOUCH OUT TM,TX,TY command: TX2=(SMOOTHNESS*TX2+TX)/(SMOOTHNESS+1) TY2=(SMOOTHNESS*TY2+TY)/(SMOOTHNESS+1) 'Then draw the graphics at (TX2,TY2) instead, its a nice fun little algorithm, I use it all the time to make smooth moving graphics
0そうだね
プレイ済み
返信[2]
親投稿
SıмΞоп SimeonW
Your a freakin genious This is the best game ive played on smilebasic, i'm going to really enjoy these levels, thanks a bunch!
3そうだね
プレイ済み
返信[1]
親投稿
SıмΞоп SimeonW
looks cool!
1そうだね
プレイ済み
返信[6]
親投稿
SıмΞоп SimeonW
oooh
1そうだね
プレイ済み
返信[6]
親投稿
SıмΞоп SimeonW
hm
1そうだね
プレイ済み
返信[4]
親投稿
SıмΞоп SimeonW
I dont recommend SPSET 0,618 though, since its hard to locate the sprite you want Try: SPSET 0,[x coordinate],[y coordinate]
0そうだね
プレイ済み
返信[2]
親投稿
SıмΞоп SimeonW
SPSET 0,618 SPSCALE 0,[blah] SPSET 1,619 SPSCALE 1,[blah]
0そうだね
プレイ済み
返信[1]
親投稿
SıмΞоп SimeonW
Sounds fun to build, i might give it a try
1そうだね
プレイ済み
返信[1]
親投稿
SıмΞоп SimeonW
sheesh that fish is a pooping professional
0そうだね
プレイ済み
返信[4]
親投稿
SıмΞоп SimeonW
Holy cow its 9875 lines of code!
2そうだね
プレイ済み