Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
次のページ(過去)
返信[1]
親投稿
OlOOlOOl pi_r_round
It already has functions built in that can be used to do that. Have a look at the code in this screenshot.
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Might I suggest that if you're going to display "AM" & "PM", there's no need for the leading zero in the hours digits.
0そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
Why are you clearing the screen and redrawing it every loop? Try: ACLS {commands related to drawing your menu} @LOOP {commands related to checking for button press} GOTO @LOOP
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
SmileBASIC is similar to standard BASIC, but not exact. There's a list of the major difference in the user guide. The one that always trips me up is that arrays in SmileBASIC use [square brackets] to hold the index, vs standard BASIC's use of (rounded brackets)
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Ok. You guys have fun together. Princess Peach and I are gonna go catch a movie. :p
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
I think that interface isn't exposed within SmileBASIC.
2そうだね
プレイ済み
返信[6]
親投稿
OlOOlOOl pi_r_round
What kind of command do you want the user to be able to execute? Unless it's a built-in command such as "FILES" you're going to have to interpret the user's input and supply some code to perform the required action.
0そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
Read through the section in the help file about source code manipulation. Specifically the following commands: PRGEDIT, PRGSET, USE, EXEC
2そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
For some simple ones it wouldn't be very hard to create a program to do it automatically, but for the more complex it would be almost impossible. It would have to parse each MML command to determine which are musical notes and which are commands - like those that adjust pitch & octave, then determine how to rearrange them. Very complex... good luck. Let us know when you're done with it.
1そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
Yes you can. There's a sprite editor bundled with SmileBASIC. Use the Smile tool's paint function.
2そうだね
プレイ済み
返信[8]
親投稿
OlOOlOOl pi_r_round
That line of code is never reached because of the GOTO statement in the line above it.
0そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
The code in this screenshot will record from the microphone and play it back.
3そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Honestly, it's just my idea of how a battle could work. Others will have different ideas. The key for Random_Battle is in the screenshot. The code seems to work for me, but there could be mistakes or bugs in it. Modify the player & weapon data and attack & defense formulas and observe the results.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Define a chance of the attack hitting the target. This can be modified by the attacker's & defender's fighting skill levels. Define the minimum and maximum damage the attacker's weapon can inflict. This can be modified by the attacker's strength and the defender's armour. Then use the SmileBASIC random number function to pick numbers within those ranges.
2そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
basements golf carts basketball stadiums
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Recording 4 seconds isn't a problem. Playing it back is the tricky part. It has to be played back in slices no thicker than 2 seconds each. Anyway, the code in this screenshot works. Note: recording starts when the button is released.
1そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
Once you figure out how the enemy should behave. You have to define the rules he must play by. A really simple example is the "house rules" for the card game "blackjack": "The dealer must hit until the cards total 17 or more points."
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Just imagine you're standing over the shoulder of someone controlling the enemy, but who has never played the game before. You have to tell him what he should do. ... Ok. Look, he's over there. Rotate your ship towards that direction. Now apply your thrusters. When you get within range, fire. Oh. He moved. Ok. Reverse thrusters. We have to avoid the gravitation field of that star. ... etc.
1そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
Can you delete one of the blank lines at line 24 or 25, so we can see the DEF for PCHECK?
0そうだね
プレイ済み
返信[6]
親投稿
OlOOlOOl pi_r_round
To delete all the code currently in the editor, use the command NEW This won't delete code that's been saved to files.
0そうだね
プレイ済み