Galaga Inspired Game or Scrolling Shooter Game Template
Flash version: 8, ActionScript 2.0.
The idea is that one can use the game as is, or use it as a template to make their own scrolling shooter type game. Instructions are included which explain how to swap out the following graphics with your graphics: main ship, enemy ships, projectiles.
In Depth Description:
Infinite star background:
Stars are created at run time on three different layers and move at three different speeds. You will never see the same pattern of stars twice.
Rapid fire shots (stackable)
Speed Increase (stackable)
Earn extra lives
Second ship on screen (drops at level 6 and 11).
Choose Difficulty Settings
Different enemy behavior for different stages:
All enemies fly in at once stages1-4
Different enemy stage 5
Staggered fly in stage 6
Different enemy stage 10
Repeat of different enemy from stage 5 on stage 13
Difficulty changes based on stage:
As the game progresses the behavior of the enemy ships is automatically updated by the action script to be more aggressive.
If the programmer chooses the number of levels can be infinite, default stages are created automatically and do not require input from the programmer.
Random Enemy Patterns:
The patterns of the enemy are different each game (at least for the stages where the bugs fly in and land in a random pattern) so each game is unique. The attack times are also based on random numbers so they will never be exactly the same.
Background Music is an option.
Coding and Customization
Here are some of the main features which are easily changed using the actionscript:
bugSource = "beeLoopFromLeft"; //enemy graphic
bugNumber = 10; //number of enemies to start
xStartLocation = 0; //enemy start location
xSpread=200; //beginning horizontal spread of enemies
yStartLocation = 45;
ySpread = 150;
aggressiveness = 1500; //this number affects how likely enemy to attack
bugAggressivnessIncreaseIncrement = 50; //increase in bug aggressiveness per stage
newStageBugIncrement = 2; //number of extra bugs per stage
endGameLevel = 15;
maxBullets = 4;
extraShips = 2;
extraLife1Score = 200000;
extraLife2Score = 400000;
extraLife3Score = 800000;
powerUpSpeed = true;
powerUpQuickShot = true;
powerUpBazooka = true;
twoShipsAllowed = true;
backgroundMusic = false;
playerShip = "ship";
bulletSpeed = -12;
bulletSource = "projectile"
shipLeftSpeed = 1.65;
shipRightSpeed = 1.65;
Script Table of Contents
Default Values: Line 25
Changeable main defaults
Static default values
Player Default Values
Reset button 161
Game function 254
Stage dependent 425
Attaching bugs 671
Bullet Animation 720
Ship Movement 921
Power Ups 952
There are comments in the source file, and added notes in the help file included with this file which explain in more depth how to change things.