Shop OBEX P1 Docs P2 Docs Learn Events
Hydra Logo 1.4 ready for download! — Parallax Forums

Hydra Logo 1.4 ready for download!

DreamwriterDreamwriter Posts: 22
edited 2013-02-04 13:06 in Propeller 1
Hydra Logo is now ready for human consumption! If you have a Hydra, you can download it and start Logoizing away. With this programming language you can draw neat things and stuff without using any sort of compiler/editor, just type commands and watch them happen. Here's a fun program you can type to get you started:

to spiral :ln
fd :ln
rt 92
fd :ln+1
rt 92
spiral :ln+2
end

Then just enter
spiral 4

and watch the fun!

JMM_logo_03-30-07.zip

Post Edited (Dreamwriter) : 3/31/2007 7:50:47 AM GMT

Comments

  • DreamwriterDreamwriter Posts: 22
    edited 2007-03-26 10:39
    Alright, here's Hydra Logo 1.2 (first message in the thread)! Took a little longer than I estimated, but the couple days was worth it. First off I fixed a TON of bugs - ones with Repeat, ones with just basic running of commands, ones with error messages. Second, if you call a new function from the last line of the previous function (usually tail-end recursion), no new stack space is needed - this means there is no limit to recursion if the last line is where it happens (that spiral demo up above can now get a whole lot bigger). The "end" command no longer counts as one of the 15 lines a function can use. I added the ability to "cancel" a function while you are creating it (in case you make a nasty typo). I added a "stop" command, which stops the current function from running (and returns to the caller if there is one). And I added "turbo mode" - streaming functions off of EEPROM, while cool, is dog-slow. So now, one function at a time can be set to "turbo mode", where it automatically comes from system RAM instead. By default, everytime you add a new function, that one automatically gets Turbo Mode, but you can set it yourself with the "setturbo" command (after you use that the system stops automatically setting new things to turbo).

    Here's a fun new command to demo Hydra Logo, that couldn't run in 1.0 (for many reasons), a classic: a fractal tree

    to tree :size
    if :size < 5
    {
    stop
    }
    forward :size
    right 30
    tree :size-5
    left 60
    tree :size-5
    right 30
    backward :size
  • DreamwriterDreamwriter Posts: 22
    edited 2007-03-31 07:48
    Version 1.4 on deck! This one's a lot more stable, will look good on more people's TV's (sorry, my TV has no overscan, didn't even think about it before), and has more features, like NES gamepad support. And it includes a special build with a couple built-in demos if you want to see what it can do without a lot of typing.

    Hydra14Demo.jpg

    Full list of changes from 1.2:

    1.4 Turtle can go off edges of screen without causing bugs
    Other miscellaneous bug fixes
    Added support for NES gamepads (ifpad1, ifpad2)
    If commands can now run commands on same line as if statement
    If command brackets are now the nomal [noparse][[/noparse] ]
    EEPROM is now autoloaded upon restart, removed load command
    Moved text area up to avoid overscan (added commands to go back)
    Added "_demo" version with demo autoloader
    Optimized/organized code for user-created commands

    JMM_logo_03-30-07.zip
  • GarethGareth Posts: 278
    edited 2013-02-04 01:53
    Nice work with your Hydra Logo system :-)
    I am trying to set up a simple cheap Logo based robot and looking for alternatives to input data and commands...
    ...and interested in checking out your Logo Code, however i am unable to download the .zip file above. (maybe zips are blocked on forum !!)
  • RaymanRayman Posts: 14,665
    edited 2013-02-04 08:55
    I'd be interested in seeing this LOGO code too...

    But, I think the zip attachement got lost when Parallax transitioned to forum to new forum software...
    I thought that they fixed it so all the old attachements worked, but this one clearly has a problem...
  • GerryKeelyGerryKeely Posts: 12
    edited 2013-02-04 12:23
    Source code is available here: http://forums.parallax.com/showthread.php/93780-Hydra-Logo-1.4-ported

    regards

    Gerry
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2013-02-04 13:06
    Here's a copy of it that has been modified to run in VGA as well.

    https://www.dropbox.com/s/2jfkbivhrhtd5im/MEEDS_LOGO.zip

    Jeff
Sign In or Register to comment.