This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-04-20 05:22:40

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Scrolling Sail Boat Simulation

For those of you who enjoyed my Sailing Course Challenge project but wanted a bigger world to explore, I have posted Privateer.  This is a sail boat simulation and mini-adventure that uses scrolling in both X and Y to let you explore several islands. 

I used the classic Capital project by jmgibson as the model for my scrolling engine as I really admired the "roving camera" look.

The code is a bit of a mess I'm afraid as this was one of those "let's stick on one more feature" type projects that just grew and grew without any real structure.  But, hopefully you will enjoy it and if there is enough interest I will rewrite it in a cleaner fashion.

http://scratch.mit.edu/projects/Paddle2See/145151

Bon Voyage!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#2 2008-04-20 10:39:18

logan996
Scratcher
Registered: 2008-01-19
Posts: 11

Re: Scrolling Sail Boat Simulation

I tried it and i love it!... it's an awsome scroller with killer graphics and instruments, it has a nice help screen and is just an AWSOME!!! project (as usual), another great Paddle2see classic!!!  smile


Give a man a fire and he'll be warm for a day. Light a man on fire and he'll be warm for the rest of his life.                           
*"thanks a fire."   *AHHHH!!!! THE PAIN!!!! HOT HOT HOT!!! ahhh ahh ah..."*  smile

Offline

 

#3 2008-04-20 12:59:16

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Scrolling Sail Boat Simulation

I think "Capital" was written before trig functions were available, so it may not be the best basis for a game such as this.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#4 2008-04-20 16:11:33

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scrolling Sail Boat Simulation

Mayhem wrote:

I think "Capital" was written before trig functions were available, so it may not be the best basis for a game such as this.

I should have been clearer...I used the same wrapping scrolling techniques as Capital with the moving viewport that tries to catch up to the main character.  I updated the motion scripts to use Trig functions.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2008-04-20 16:15:50

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scrolling Sail Boat Simulation

logan996 wrote:

I tried it and i love it!... it's an awsome scroller with killer graphics and instruments, it has a nice help screen and is just an AWSOME!!! project (as usual), another great Paddle2see classic!!!  smile

Thanks, logan996 - I appreciate the enthusiasm!  I personally feel there is room for improvement on the graphics, particularly on the message screens.  I will try to update those as soon as I locate good nautical public domain graphics.  If people have any suggestions, please let me know.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2008-04-23 10:48:54

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scrolling Sail Boat Simulation

Thanks to the Scratch community for all the kind and helpful comments on my sailing game "Privateer".  To those of you who have enjoyed playing the previous version, I've made an update and added two new beaches with surprises.  Happy exploring!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#7 2009-01-22 14:23:57

smandoli
Scratcher
Registered: 2009-01-22
Posts: 11

Re: Scrolling Sail Boat Simulation

I admire what you've done very much.  Finding http://home.wxs.nl/~pdavis/Screen.htm a few years ago was exciting.  Privateer has a boat model with magnitudes less complexity ... but I can understand the code as rendered, which is INCREDIBLE.  (Davis' work is in VB I think.)  So, how's your autopilot routine coming?  And, for a beginning game developer, what's the next step up from Scratch?  (For example, instantiate multiple boats ...)

Offline

 

#8 2009-01-22 16:58:20

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scrolling Sail Boat Simulation

smandoli wrote:

I admire what you've done very much.  Finding http://home.wxs.nl/~pdavis/Screen.htm a few years ago was exciting.  Privateer has a boat model with magnitudes less complexity ... but I can understand the code as rendered, which is INCREDIBLE.  (Davis' work is in VB I think.)  So, how's your autopilot routine coming?  And, for a beginning game developer, what's the next step up from Scratch?  (For example, instantiate multiple boats ...)

Wow, that simulation by Davis is incredible!  Looks like he is actually modeling the physics of each sail - plus the hull, etc.  Originally, I was thinking of doing my sailboat simulations that way as well....but the complexity quickly overwhelmed me and I realized that I didn't really want an accurate simulation...just something that "felt right".  So I elected to go with a "black box" model with a built-in speed versus wind angle curve.  Still, I admire people with the patience to do an accurate physics-based model!

As far as what's next...I haven't done anything new with Privateer in a while.  For a day or two, it looked like my son was going to dust it off and turn it into a game based around the Odessey - but he elected to do a different type of project.    If you want to do something with it, please feel free.

The question of what makes a good "next step" up from Scratch comes up quite a bit.   I'm fond of Visual Basic and you can do quite a lot with it.  There are others that will take the position that a true object-oriented language would make a better choice, such as Java or Greenfoot.  It may depend on the goals of the individual programmer.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#9 2009-01-26 10:14:06

smandoli
Scratcher
Registered: 2009-01-22
Posts: 11

Re: Scrolling Sail Boat Simulation

The Greenfoot gallery is very impressive.  My Python-fixated friend suggested PyGame (though he hasn't used it).  I checked it out and the gallery didn't grab me, but the Python language looked appealing.   

I am bowled over by Privateer -- the overall completeness, the polish, and the richness and complexity of the code.  I have no insight at all on how many Scratch games could compare.  I haven't looked at any.  But it's hard to imagine a more ambitious application, given the environment. 

I am almost ready to post "Buzzard Beak Harbor."  It's the doughty sloop Privateer versus a big turreted gun on an island.  Subdue the gun, and you can enter the island's harbor to win.  The sloop is rearmed with a gun on each side. 

My goals are to bring out the sailing dynamics and allow a bit more of an arcade experience:
smile    Remove the scrolling map (so I can cope with the code!). 
smile    Remove all island Sprites.  Paint an island. 
smile    Remove the adventure storyline. 
smile    Add varying wind force.  I could see where you built for that. 

Biggest To Do Items at this time:
smile    When striking land, vessel stops and damage accrues.  I want to reuse your "hit rock" code, but not so simple it seems. 
smile    Make the island gun able to train incrementally -- not just a "point to" command.  But haven't worked out the "which way do I turn" function.  This feature is important as the boat can plan charges that catch the turret out of position. 
smile    Damage indicator for boat. 
smile    Damage level indicator for big gun.  (A smoke smudge) 
smile    Polish up the scenario.  Cheers for victory ... and a sunken ship costume for the other possibility. 

Future release goals:
smile    Boat leeway.  I imagine leeway is complex; I  want just some fraction of wind direction.  Requires the boat sprite to shift XY, unrelated to the sprite's basic direction. 
smile    Instead of mere max speed, allow an emergency speed that accrues some damage (and a warning flag of course). 
smile    Setting for half-sail, allowing more speed control.
smile    Squall winds on occasion.  Half-sail then becomes important to avoid ship damage. 
smile    Variations on boat damage (reduced sail, stuck rudder, balky rudder, slower gun reload, increased leeway)

Things I won't do, and medication will help me to remember avoiding them:
roll    Lee side of island has reduced wind; handling is affected by waves, by currents; bosun has scurvy; kraken has hydrophobia; etc.

Making this a 2-person game starts to look very attractive.  Either island versus sloop, or a boat duel.

Last edited by smandoli (2009-01-26 10:14:43)

Offline

 

#10 2009-01-26 14:17:13

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scrolling Sail Boat Simulation

Well, I'm looking forward to the further adventures of the little ship!  Your ship-vs-fort scenario sounds very exciting.  If you get stuck, I'd be happy to assist.

Now you've got me thinking of sailing ships again...maybe I'll see if I can come up with a boat with leeway!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#11 2009-02-02 12:10:07

smandoli
Scratcher
Registered: 2009-01-22
Posts: 11

Re: Scrolling Sail Boat Simulation

I'll make my own Show-N-Tell post, but to close here, my edition is at
http://scratch.mit.edu/projects/smandoli/398737.

Offline

 

#12 2009-02-02 12:30:29

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scrolling Sail Boat Simulation

It's awesome!  I love it  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer