プレイ日記
ĦHarry Ramstrong
Finally implemented that Bezier curve drawing function! I've been wanting to do that. I also made some more modification to the Turtle Graphic program. It's faster, has button/timer function, and text drawing capability. Ah, feature creep. What can I say? Anyway, it's ready for GrabBag upload. I'll throw in Maze and Room Generator, as well. Anything else you want in there also? Just ask!
7そうだね
プレイ済み
返信[1]
親投稿
Gad Iknowitall
make the turtle graphic with the bezier drawing function
0そうだね
プレイ済み
返信[2]
親投稿
ĦHarry Ramstrong
Yes. That screen is from the Turtle Graphic program. Command is B followed by 2 digits denoting Forward point and Left/Right bias.
0そうだね
プレイ済み
返信[3]
親投稿
ĦHarry Ramstrong
Here is the code that generates that image.
0そうだね
プレイ済み
返信[4]
親投稿
Gad Iknowitall
so that makes it so its hard to edit the code?
0そうだね
プレイ済み
返信[5]
親投稿
ĦHarry Ramstrong
I don't have problem editing the code. :p It certainly is rather cumbersome to do. I think a good GUI for this is a good project to do. But that can wait until later. ;)
1そうだね
プレイ済み
返信[6]
親投稿
Cris cmart592
Please a gui, but first what's the syntax?
0そうだね
プレイ済み
返信[7]
親投稿
ĦHarry Ramstrong
Here's the help screen. The effective resolution is 100 pixels Height and Width, although the JUMP command can multiply it for higher resolution. 16 pallette colors including 0 (transparent). No error checking, so make sure the string is correct: a command character followed by 2 digits.
0そうだね
プレイ済み
返信[8]
親投稿
Cris cmart592
Ok then, release a key?
0そうだね
プレイ済み
返信[9]
親投稿
ĦHarry Ramstrong
Added Scaling Factor and Expand(Relative scaling) commands. I guess I keep adding features on it. I'd better stop here or else there'd be a full featured macro and data loading implemented!
0そうだね
プレイ済み
返信[10]
親投稿
ĦHarry Ramstrong
Spoke too soon. Macro (I)mplementation done. It took just four lines. Testing took longer than coding! Use "I" command+macro#, followed by the contents of the macro.
0そうだね
プレイ済み
返信[11]
親投稿
ĦHarry Ramstrong
Oh, gosh. Let's just add a few more lines and implement BGM MML and BEEP SFX to boot. It only takes 6 minutes. Features creep, I tell you!
0そうだね
プレイ済み
返信[12]
親投稿
Cris cmart592
Gui man, its all simple with a gui...
0そうだね
プレイ済み
返信[13]
親投稿
Cris cmart592
Sooo cool though!
1そうだね
プレイ済み
返信[14]
親投稿
ĦHarry Ramstrong
You know, I have all these macros. If I can read color index on touch screen and call the corresponding macro, it can be an interactive thing! Who wouldn't want that? \(^u^)/
0そうだね
プレイ済み
返信[15]
親投稿
Cris cmart592
Not me, I suck and it sounds confusing.
0そうだね
プレイ済み
返信[16]
親投稿
ĦHarry Ramstrong
Cancel that Touchscreen option. Because I forgot. All the graphics are in the top screen, where no touch point takes place! I changed it to ABXY button, instead. Look for TURTLE6.PRG in my GRABBAG! I put in some extras as well. Enjoy!
1そうだね
プレイ済み
返信[17]
親投稿
ĦHarry Ramstrong
Come to think of it, if it's really interactive, then it should have an option for goto macro, instead of the default gosub macro. Oh, dear. I'm running out of letters as it is. 360 lines! That's a record for me. Usually mine is only one screen long. ;)
0そうだね
プレイ済み
返信[18]
親投稿
Gad Iknowitall
Divide by 0 in Line 0:217?
0そうだね
プレイ済み
返信[19]
親投稿
ĦHarry Ramstrong
Did you try to draw a point? It's not really set up for that. Try adding "+2" on line 212, and see if that helps. What's the command that brought this on?
0そうだね
プレイ済み
返信[20]
親投稿
ĦHarry Ramstrong
Try adding Lines 251-257 for Interactive Turtle Shell. BTW, the lines are different because I added a new command already. Just put it in before macro definition array so you can start fresh. Version 0.7 in progress.
0そうだね
プレイ済み
返信[21]
親投稿
ĦHarry Ramstrong
You can tell, I'm enjoying myself. PS: Hour of Code is December 7-13. Try using this Macro enabled Turtle Graphic for something fun!
0そうだね
プレイ済み
返信[22]
親投稿
ĦHarry Ramstrong
Another example. This time, I'm laying down rail tracks. This is why Loop and Macro is such a big deal. You can do a lot with them, with Macro acting as Subroutine. Current version adds Kommand, which is equivalent to GOTO.
0そうだね
プレイ済み
返信[23]
親投稿
ĦHarry Ramstrong
One last example. This time, I'm highlighting the interactivity aspect. Once I put in the correct codes, I can steer the turtle using buttons: A-turn right. B-backward. X-forward. Y-turn left. I am so glad I put this capability in. Notice I use K00 instead of M00. This new command does not use stack. I used the wrong T command earlier. Oops.
0そうだね
プレイ済み