Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8
次のページ(過去)
返信[8]
親投稿
Stewart segludian
In the text editor type in PRINT "HELLO WORLD" Now click on the Direct button in the lower left to go back to the command prompt looking screen. Here, type RUN and the carriage return. This will run your program, and should write the text HELLO WORLD to the screen. From the code, print is the command for writing text to the screen, and you need the quotes to make the message a string.
3そうだね
プレイ済み
返信[7]
親投稿
Stewart segludian
As for making your own games, I agree you should start small and begin with a Hello World program. Here is what to do. First on SmileBasic's front page click the "Create Programs with SmileBasic" button. This will bring you to a new screen that looks like a command prompt on Windows. In thre lower left are two buttons Direct, and Edit. Click the Edit button to bring up the text editor.
2そうだね
プレイ済み
返信[6]
親投稿
Stewart segludian
If you click on Download using public key you can enter a secret code to download other peoples programs. Try the code for bug squish in the attached image to see if you can make it work. After that you may want to head over to smile basic source the have a bunch of codes to try. There is also a few codes sprinkled around the smilebasic website. I rather enjoy solid gunner myself.
2そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
One more question do you have to do find me and all those infernal puzzles again if you do a system transfer?
1そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
My 3DSXL hinge is broken, I tried supergluing it back together but messed up the right shoulder button. So I was thinking of getting a new 3ds. Is the new style 3ds worth it over a regular one, how do you like it so far? Oh, and what was the old name?
1そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
I can help. You are running into an assignment vs. comparison problem. If you say f=1 you are assigning the value 1 to the variable f. If you say something like f==1, you are checking is the variable f equal to 1 and returning a true/false depending on if it is or not. So on line 71 the first = should be ==, but your second = should remain just =. The >= is fine as is too.
3そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
Will the attached help. The extra parameter to button() checks for button pressed instead of held down. Vsync makes you not go too fast. Finally millisec keeps track of elapsed time. Hope that helps.
1そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Looks nice, it should make a fun game.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
I think the author was on just the other day, you could ask him. However, I am guessing it isn't any sort of generic engine, but instead something especially coded just for that game.
2そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
I see some pixel gaps on the outside circle. I assume that is from using gline calls. Switching to triangle primitives might help fill those in. Otherwise, I think it looks mighty good. For speed, you may want to switch the outside circle for a pre-rendered image (assuming you don't need it to resize). Keep up the cool code.
2そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
Well if you don't want to read it from file you could always embed the data in your code like the attached. Unfortunately you can't use the nice built in editor that way. You could also map characters to tile numbers and iterate over the characters in a string too, which may be easier to edit than screens full of numbers.
0そうだね
プレイ済み
返信[8]
親投稿
Stewart segludian
As mentioned above, ACLS clears EVERYTHING and is probably not what you want. CLS clears just the text and will be better. Still, I think we can do better still with the dirty rectangles technique. With that you only update what changed on screen. I rewrote your code (see attached) to use it and it seems plenty fast. Give it a try let me know if you find bugs.
1そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Nice. Looking good so far.
1そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
I typed in your code, and the culprit seems to be the xscreen call. I am thinking it gives each screen two bg layers each unless you specify otherwise. So if you don't need any bglayers on the bottom screen you can do something like the attached. Otherwise you will have to skip out on some layers.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Which line number is it failing on? I am guessing you either allocated one or more layers to the bottom screen, or don't have enough space for four layers of 100x25
0そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
Looks really nice. Great work.
0そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian
Thanks, I am glad you enjoy it.
1そうだね
プレイ済み
返信[6]
親投稿
Stewart segludian
Attached is a small function to print centered text on the screen. It takes into account top and bottom screen widths. 400 is pixel width of the top screen. 320 is the width of the bottom screen, and characters are 8 pixels wide. If the text is too long to fit on screen it is left justified. Give it a try and let me know if you find any bugs.
2そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
Due to Smile Boom's outrageously small upload limit, I do change the code whenever I add a new sample, so get it while the download code is good. I attached a runtime picture this time. Let me know if you have questions about how the code works.
1そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Platform games are fairly difficult, so don't worry if it seems harder than expected. Attached is a screen shot with the code for my samples folder. There is a lot of good stuff in there, but you will want to open the file "PLATFORM". That has a very basic mario style game loop. No enemies slopes, or moving platforms, and sometimes you can get jump stuck in a wall. But, I think it should help.
0そうだね
プレイ済み