Show some code first, revealing how your initializing the data
1そうだね プレイ済み
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そうだね プレイ済み
Improvement of Josh's code
S=MIN(S,511)
1そうだね プレイ済み
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そうだね プレイ済み
... WHAT?
:o
An interpreter for what language?
0そうだね プレイ済み
That would be nice, but sadly no, each version of a program gets assigned an entirely new key
0そうだね プレイ済み
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そうだね プレイ済み
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そうだね プレイ済み
Yeah use POW(), ^ is used for bitwise operations in nearly every programming language now a days
I think its bitwise XOR
0そうだね プレイ済み
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そうだね プレイ済み
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そうだね プレイ済み
I dont recommend SPSET 0,618 though, since its hard to locate the sprite you want
Try:
SPSET 0,[x coordinate],[y coordinate]
0そうだね プレイ済み
SPSET 0,618
SPSCALE 0,[blah]
SPSET 1,619
SPSCALE 1,[blah]
0そうだね プレイ済み
Sounds fun to build, i might give it a try
1そうだね プレイ済み
sheesh that fish is a pooping professional
0そうだね プレイ済み