Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
119 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 3948
次のページ(過去)
返信[2]
親投稿
Oscar PwnageBlock
Well, the START and SELECT buttons have always been used yo forcibly exit a program, in case the program doesn't exit on its own. It has been this way since the first PetitCom, I think. Also, why were you trying to pause when you had beat the level? lol
2そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
It’s four o’clock in the morning, why on earth are you making SB posts?
1そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
It seems you are running an outdated version of SmileBASIC. Updating to the latest version adds critical functionality and is sure to fix the problems you are having. If the game doesn't update on boot (on the 3DS menu) you can find the update in the eShop.
2そうだね
プレイ済み
返信[7]
親投稿
Oscar PwnageBlock
It's right there in the manual... http://smilebasic.com/en/e-manual/17.php
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
WX is best OS.
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Maybe you could change the size of the sprite's template per frame?
0そうだね
プレイ済み
返信[4]
親投稿
Oscar PwnageBlock
The code itself would look something like this... PP=0 'DECLARE PADDLE POSITION VARIABLE WHILE 1 'EXECUTE CODE CONTINUOUSLY 'CHANGE VARIABLE USING BUTTON INPUT IF BUTTON() AND #LEFT THEN INC PP IF BUTTON() AND #RIGHT THEN DEC PP 'LOCATE CURSOR FOR PRINT USING LOCATE AND THE VARIABLE LOCATE PP,3 PRINT "=------=" 'PRINT THE PADDLE 'PREPARE FOR NEXT FRAME WAIT 1 CLS WEND
1そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
You could get it to move left and right by using the value returned by BUTTON and using logic gates and constants to build conditionals for modifying the paddle's position value.
0そうだね
プレイ済み
返信[2]
親投稿
Oscar PwnageBlock
Of course, this should all be executed within a main loop so that the program runs continuously. At the end of the loop there should also be a WAIT command so that the program runs in a stable manner, and a CLS as to erase the console screen and prevent PRINT clutter.
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
While I'm sure there are various ways to implement it, I'll tell you how I'd do it. Use a variable to track the location of the paddle. Use the BUTTON command to get button input from the player. Use said input to change the variable of the paddle's location. Use the LOCATE command to print the paddle at a specified location, determined by the previously mentioned variable.
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Actually, Petit World is already taken by another Terraria-like clone. You shouldn't worry about the name too much right now, though.
3そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
Well, if you did, you should have a sufficient enough base of knowledge to start coding a bit.
1そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Here's a tip: Your project folder is misspelled. It says WESRERNS instead of WESTERNS.
3そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
I recommend reading the official e-manual for starters. It should teach you the basics of programming, and give you examples on coding and such. You can find it here... http://smilebasic.com/en/e-manual/10.php
0そうだね
プレイ済み
返信[2]
親投稿
Oscar PwnageBlock
It's actually pretty simple! The BUTTON function returns which buttons are being pressed in that exact moment in the form of a value. This means that BUTTON is more useful if you assign it to a variable. You can then operate this variable with logic gates and constants to determine which buttons are being pressed and build code, such as conditionals, with it.
0そうだね
プレイ済み
返信[6]
親投稿
Oscar PwnageBlock
THIS IS PURE AWESOME! Thank you so much for translating it!
2そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
You should remove the last BEEP, otherwise you will have 2 BEEPs sounding at the same time.
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Assuming you are using THE ray-casting engine... The ray-casting library includes complete documentation for use within the library's file. Just load it up and read all the comments.
3そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Use the TOUCH command. It will return three values... TS - Time the screen has been touched, 0 otherwise. Increments each 1/100 second. TX and TY - The coordinates of the last point touched. As all other coordinates in SmileBASIC, the Y axis is reversed. You can use the TOUCH command with this syntax... TOUCH OUT TS,TX,TY After that, you can simply use the values of TS, TX and TY.
2そうだね
プレイ済み
返信[2]
親投稿
Oscar PwnageBlock
Isn't that a bit too much to ask for? I think we have about 50 or less people in the community as a whole.
3そうだね
プレイ済み