プレイ日記
Brando SF wolflover111
how to fix this syntax error?
2そうだね
プレイ済み
返信[1]
親投稿
イスターリャ arduinotexter
Please show me "DEF GUN"
0そうだね
未プレイ
返信[2]
親投稿
12Me21 12Me21
@BIG_TEXTER GUN is a variable, not a function What are those lines supposed to do, we need more information.
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
You are just listing a bunch of expressions. Maybe you meant to write an assignment or use them as parameters for a command? What I'm saying is, writing... 10,20,15 ...doesn't really mean anything. Meanwhile, writing... A=10:B=20:C=15 ...or... SPOFS 10,20,15 ...does make sense.
0そうだね
プレイ済み
返信[4]
親投稿
Brando SF wolflover111
@Oscar I'm still confused, I put GUN as = to 165 so it says... GUN=165, you just cant see it because its near the top.
0そうだね
プレイ済み
返信[5]
親投稿
Oscar PwnageBlock
You need to write GUN=SOMETHING every time you want to assign something to GUN, not just once. For example... GUN=10 GUN+20 GUN-5 ...the second and third lines won't change the value of GUN. They just serve as expressions. However... GUN=10 GUN=GUN+20 GUN=GUN-5 ...will change the value of GUN accordingly.
1そうだね
プレイ済み
返信[6]
親投稿
Brando SF wolflover111
@12me21 i dont know what the lines do yet because i cant fix the syntax error to test the game, all i know is that im making an asteroids like game *you know the Asteroids arcade/atari game*
0そうだね
プレイ済み
返信[7]
親投稿
Oscar PwnageBlock
What do you mean you don't know what the lines do? Aren't you the one programming this?
0そうだね
プレイ済み
返信[8]
親投稿
Brando SF wolflover111
well, im guessing the way to fix it is by adding in the commands before it, i just dont know how to add in LINE and CIRCLE commands...
0そうだね
プレイ済み
返信[9]
親投稿
Oscar PwnageBlock
You need to use SmileBASIC's graphics commands. They all start with a G. You can use GLINE to draw lines, GCIRCLE for circles and GCLS to clear the graphics screen. I suggest looking at their manual entries, but I will give you a basic rundown.
0そうだね
プレイ済み
返信[10]
親投稿
Oscar PwnageBlock
Parameters in brackets aren't necessary. GLINE X1,Y1,X2,Y2,[COLOR] ...This one is pretty self-explanatory. You draw a line from point (X1,Y1) to (X2,Y2). GCIRCLE CX,CY,R,[COLOR] ...For this one you specify the center coordinates of the center (CX,CY) and the radius R of the circle. GCLS [COLOR] ...This one "clears" the graphics screen by filling the entire screen with a single color.
0そうだね
プレイ済み