Astrobattle

 Astrobattle.air

 

 


 

Adobe, with its AS3, allows you to develop apps that can be compiled for several operating systems, running on different devices. In our case Android and IOS. You can develop with Flash AS3 and compile for eitehr IOS or Android:

https://forums.adobe.com/message/5837305

Astrobattle is a little cross-platform game. It has been written with Adobe Flash and AS3; it has a teaching purpose, it hasn't absolutely the pretension to appear as a true full game.

It has been written with Adobe Flash CS5 IDE.
AstroBattle.fla is the main project file (double click on it to load the project).

The scenography is assimilable to an 80s arcade game, that is:
a courageous spaceship must survive fifhting against aliens.

air-ios

The key points of the game are(from developer point of view):

- background image changing among levels
- parallax effect to emulate the stars
- background sound
- a finite number of spaceships
- a finite number of alien nacelles
- infinite number of bullets
- different sounds for our fire, enemy fire, blasts
- incrementally difficulty with the game increment
- score
- game over splash
- winner splash

The Action Script classes:adobe-flash-google-android-

- Main.as:
it makes an instance of AstroBattle.

- AstroBattle.as:
it contains all constants, timers setting, touch setting,
instances of graphic and sound objects,
listener settings, the function enterFrameListener
and the function initGame().

- Enemy.as:
it's responsible for making a new enemy.

- ParallaxField.as:
it makes the animated parallax backgroud.

- PixelPerfectCollisionDetection.as:
not used.

- Shot.as:
it makes the first type of bullet.

- Shot2.as:
it makes the second type of bullet.

For all that concernig IOS and Android compilation see the Adobe documentation:

http://labs.adobe.com/downloads/air.html

 

Download section.

download source

 

No Comments Yet.

Leave a comment