Monday, May 23, 2011

Flixel Hello World

This steps to make Hello World using Flixel
  • Run Flash Develop
  • Start a new project by going to: Projects -> new Project...
  • When a window appear choose  AS3 Project. Give it name Testing Flex Compiles
  • it will create 3 folders bin (this the swf will be compiled), lib (external compiled library files here, such as SWCs, don’t put AS3 source code here), src (source folder).
  • Copy org folder from flixel to src
  • Expand src and open Main.as
  • Change with 
    package
    {
     import org.flixel.*;
     //To set swf width, height, and backgroundColor
     [SWF(width="400", height="300", backgroundColor="#000000")]
     //To Make Preloader
     [Frame(factoryClass="Preloader")]
    
     public class Main extends FlxGame
     {
      public function Main()
      {
       //To set flixel width, height, state, and zoom
       super(320, 240, PlayState, 2);
      }
     }
    }
    
  • Make new AS3 Document by going to: File ->New->AS3 Document
  • Fill with 
    package
    {
     import org.flixel.system.FlxPreloader;
    
     public class Preloader extends FlxPreloader
     {
      public function Preloader()
      {
       //To set FlxGame
       className = "Main";
       super();
      }
     }
    }
    
    
    save as Preloader.as
  • Make new AS3 Document
  • Fill with 
    package
    {
     import org.flixel*;
    
     public class PlayState extends FlxState
     {
      override public function create():void 
      {
       add(new FlxText(0, 0, 100, "Hello World"));
      }
     }
    }
    
    
    save as PlayState.as

Monday, April 25, 2011

What is Flixel?

Flixel is open source game making library created by Adam Saltman. Flixel can help you make your games without flash professional because Flixel designed to be used with free tools
Features:

Tuesday, April 19, 2011

Setting Flash Develop and Flex SDK

This article show you how to setting Flash Develop
  • Download Flash Develop
  • Download Adobe Flex SDK 
  • This can be skip if you want Flash Develop to download it. Flex SDK need Java 1.6 runtime (JRE)
  • Install Flash Develop
  • Extract Flex SDK to a folder and rename folder to flexsdk
  • Move flexsdk to path in Flash Develop\Tools
  • In my case C:\Program Files\FlashDevelop\Tools. This will make Flash Develop setting Flex SDK and Flash Player auto

To setting manually Flex SDK and Flash Player:
  • Open Flash Develop
  • Go to tab Tools->Program Settings (or press F10)
  • In AS3Context tab set Flex SDK Location
  • In FlashViewer tab set External Player Path

Monday, April 18, 2011

Free tools for game development

In game development we need tools to make develop easier. Good tools that can useful for us not always came with high price. Below is free tools that usually i used in development:
1. Tiled Map Editor
    general purpose tile map editor
2. Audacity
    audio editor for cutting, editing, combine, etc
3. sfxr
    open source sound effect generator
4. bfxr
    elaboration of sfxr
5. LMMS
    for produce music with your computer
6. MilkyTracker
    open source music application for creating .MOD and .XM modules files
7. mp3loops
    make gapless mp3 loop from wav
8. Graphic Gale
    pixel image editor
9. GIMP
    image editor
10. Dropbox
    file sharing

Sunday, April 17, 2011

Make free flash swf file

Software Needed:
1. Flash Develop
    source code editor
2. Adobe Flex SDK
    included to download in flash develop installer but i prefer download manual