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

#1 2007-09-02 14:18:44

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Jet Fighter Game

This project (1st Scratch attempt for me) started simple and evolved as I learned what Scratch could do.  My apologies for the code that resulted; It isn't consistent in how things are done and probably contains some variables that it could do without, but you may find some interesting ideas, and it actually is pretty fun to play.  I have some work to do to improve efficiency, but it plays like I wanted, so I decided the time had come to "Share".

Original Concept: Two Person "Jet Fighter", similar to the old Atari coffee table style video game (I'm showing my age, that was mid-seventies).  Then I thought that it would be cool to make one jet a "Stealth Fighter" that wouldn't go quite as fast as the opponent, but would have guided missiles.  (Guided missiles don't work for the opponent plane, because the Stealth fighter is invisible to the missile's radar!)

Then, once I had the guided missile worked out,  I reasoned that it would be pretty easy to make one of the planes fly itself in a one player game.  As I got into this, I quickly realized that "easy" was a bad assumption;  A missile just "unerringly" tries to turn (thru some radius) toward its target, this wouldn't be interesting for the pilot "AI", cause it would just always turn toward its intended victim.  Since the other plane is faster, this wouldn't be a good strategy either.  So, after a lot of head scratching I have an AI plane that will go straight in some conditions, but is "smart" enough to take evasive action.

The planes "wrap" to the opposite side if they fly off the edge, which is a neat effect.  Hope you enjoy it!  The AI pilot will follow you across the edge, as will the missiles, so don't think you'll get away by using that trick.

http://scratch.mit.edu/projects/EdnaC/33613.

-Mr Ed

Offline

 

#2 2007-09-03 22:31:43

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Jet Fighter Game

V1.1 posted with a few things fixed:
*1 player "AI" improved
*Capabilities "balanced" more evenly

Please have a play and let me know how you do against the 1 player version, or try with a friend to see if one plane or the other has a significant advantage.  I think it's actually a pretty good game and would love to have some feedback from the "community".

Stealth fighter: a bit slower, but turns sharper and has guided missiles.

Conventional fighter: faster, but suffers from wider turns.

Offline

 

Board footer