1 / 21

90 minutes + Flixel 1 game

90 minutes + Flixel 1 game. Will Emigh Studio Cypher www.studiocypher.com. Flixel. Actionscript library/engine Main page http://flixel.org General help http://flixel.org/forums/index.php?topic=6 Docs http://www.ivansafrin.com/nanodoc/flixel/. Flixel. created by Adam Atomic

conner
Download Presentation

90 minutes + Flixel 1 game

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 90 minutes+ Flixel1 game Will Emigh Studio Cypher www.studiocypher.com

  2. Flixel Actionscript library/engine Main page http://flixel.org General help http://flixel.org/forums/index.php?topic=6 Docs http://www.ivansafrin.com/nanodoc/flixel/

  3. Flixel • created by Adam Atomic • demo game (“Mode”) included • platformer physics

  4. Totally original game concept

  5. TOTALLY ORIGINAL game concept

  6. Dirt Attackers

  7. Flixel Classes • FlxArray • FlxBlock • FlxButton • FlxCore • FlxEmitter • FlxG • FlxGame • FlxLayer • FlxSprite • FlxState • FlxText • FlxTilemap

  8. Flixel Classes • FlxArray • FlxBlock • FlxButton • FlxCore • FlxEmitter • FlxG • FlxGame • FlxLayer • FlxSprite • FlxState • FlxText • FlxTilemap

  9. Our Classes • DirtAttackers • MenuState • PlayState • Player • Enemy • Shot • DirtBlock

  10. DirtAttackers package { import com.adamatomic.flixel.*; import com.sc.dirtattackers.*; public class DirtAttackers extends FlxGame{ public function DirtAttackers(){ super(420, 420, MenuState, 1, 0xff000000, false, 0xffffffff); } } }

  11. MenuState • extends FlxState • public function MenuState • override public function update • private function onFade

  12. MenuState() public function MenuState(): void { super(); vartitle:FlxText = new FlxText(0, 30, FlxG.width, 30, "Dirt Attackers", 0xffffffff, null, 16,"center"); this.add(title) as FlxText; }

  13. MenuState – update() public function update(): void { if (FlxG.kA) { FlxG.flash(0xffffffff, 0.75); FlxG.quake(0.05); FlxG.fade(0xff000000, 0.75, onFade); } super.update(); }

  14. MenuState – onFade() private function onFade(): void { FlxG.switchState(PlayState); }

  15. Player • extends FlxSprite • public function Player • override public function update

  16. Enemy • extends FlxSprite • public function Enemy • override public function update • public function reverse

  17. Shot • extends FlxSprite • public function Shot • override public function update • override public function hitWall • override public function hitCeiling • override public function hitFloor

  18. DirtBlock • extends FlxSprite • public function DirtBlock • override public function update • public function destroy

  19. PlayState • extends FlxState • public function PlayState • override public function update • private function onFade • private function reverseEnemy • private function spawnEnemies • private function killEnemy • private function killDirt • private function stopDirt • private function shotHitPlayer • private function endGame

  20. Tasks • get Player to move • add boundaries • add player shooting • add enemy • add enemy shooting • add enemy death/scoring • add dirt • add end game • add high score • add dirt emitter

  21. The Future • Download my version: • www.studiocypher.com/dirt_attackers • slides too • Make Dirt Attackers your own • Contact me with questions/comments/links to your Dirt Attackers • Will Emigh • will@studiocypher.com

More Related