https://github.com/edtechre/flixel-top-down-shooter
Flixel Top Down Shooter
https://github.com/edtechre/flixel-top-down-shooter
Last synced: 6 months ago
JSON representation
Flixel Top Down Shooter
- Host: GitHub
- URL: https://github.com/edtechre/flixel-top-down-shooter
- Owner: edtechre
- Created: 2010-07-24T07:28:12.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-24T08:53:52.000Z (almost 16 years ago)
- Last Synced: 2025-01-20T14:37:01.151Z (over 1 year ago)
- Language: ActionScript
- Homepage:
- Size: 99.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
The start of an engine for a top down shooter using Flixel, a 2D game framework written for Flash:
http://flixel.org/
Enemies are defined in an XML file along with the time they are to be created at-- the time is defined as the number of seconds after the start of the game. The XML file is compiled into the SWF. The enemy XML nodes are placed into a min-heap, and are ordered by their time attribute. The min-heap is queried using a timer that runs every 100ms. Enemy instances are spawned based upon the results returned by the min-heap.
The SpaceBackground class is used to create a scrolling background bitmap with stars drawn on it dynamically. Two scrolling backgrounds are used in the game.
Pressing "A" shoots a bullet. "S" toggles the player ship between red and blue states. "D" fires a laser canon which uses flash.filters.GlowFilter to create a lightning effect. The effect creates some slowdown and needs to be optimized or converted to a static animation.