Author Topic: Flixel 2.50 Flashdevelop Template  (Read 7014 times)

Deviantgeek

  • Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Youngest flixel dev ever. Srsly.
    • View Profile
    • Devianix
Flixel 2.50 Flashdevelop Template
« on: Wed, Apr 27, 2011 »

GitHub Repo

Template!

Yeah, I made one. It works great! Auto creates preloader, main class, MenuState, PlayState, and an empty data folder. You use it from the New project menu, just like making a normal flixel project. I made it for LD48, but can be used for other things as well.

GitHub repo done, and all errors fixed!


Install Instructions



  • Unzip the downloaded file.
  • If you want the easy way, just Double Click the FlxTemplate.fdz file
  • If you want the template at the top, copy the 115 ActionScript 3 - Flixel 2.5 Project folder(it's in $(BaseDir)/Projects), and paste it in:
Code: [Select]
C:\Program Files (x86)\FlashDevelop\Projects
    (if using a 32 bit OS, exclude the (x86).

« Last Edit: Thu, Apr 28, 2011 by Deviantgeek »

cai

  • Contributor
  • ****
  • Posts: 465
  • Karma: +0/-0
  • the illest of villains
    • View Profile
    • Brandon Cash
Re: Flixel 2.50 Flashdevelop Template
« Reply #1 on: Wed, Apr 27, 2011 »
I said it in IRC, but I'll say it here, too: great work!  I usually just copy over an old project (beats using flx.py), but a built-in template is a lot better!
Follow me on Twitter | Come join us at #flixel on irc.freenode.net!

Rybar

  • Contributor
  • ****
  • Posts: 279
  • Karma: +0/-0
    • View Profile
Re: Flixel 2.50 Flashdevelop Template
« Reply #2 on: Wed, Apr 27, 2011 »
This is fantastic! Thanks a ton for sharing. :D

Deviantgeek

  • Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Youngest flixel dev ever. Srsly.
    • View Profile
    • Devianix
Re: Flixel 2.50 Flashdevelop Template
« Reply #3 on: Wed, Apr 27, 2011 »
I said it in IRC, but I'll say it here, too: great work!  I usually just copy over an old project (beats using flx.py), but a built-in template is a lot better!

This is fantastic! Thanks a ton for sharing. :D

Thanks Guys! Does it install correctly?

Noid.EXE

  • Member
  • **
  • Posts: 11
  • Karma: +0/-0
    • View Profile
    • NoidEXE on deviantART
Re: Flixel 2.50 Flashdevelop Template
« Reply #4 on: Wed, Apr 27, 2011 »

Thanks Guys! Does it install correctly?

Double clicking the .fdz supposedly installs it, but it didn't work for me.
Extracting 115 ActionScript 3 - Flixel 2.5 Project to %programfiles%\FlashDevelop\Projects\ did work, however. using FlashDevelop v 3.3.4

furas

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Flixel 2.50 Flashdevelop Template
« Reply #5 on: Thu, Apr 28, 2011 »
Small issues:

1. I name project "myProject" not "myProject.as" so $(ProjectName).template create main file without extension ".as". It should be $(ProjectName).as.template

2. Path to Flixel Power Tools starts with "..\New Project\" ;)

3. There is (almost) empty file "src\Default.css". What for ?



« Last Edit: Thu, Apr 28, 2011 by furas »

Philippe

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Flixel 2.50 Flashdevelop Template
« Reply #6 on: Thu, Apr 28, 2011 »
The FDZ isn't correct.

To install a project template automatically, the ZIP should be organized this way:

$(BaseDir)/
   Projects/
      115 ActionScript 3 - Flixel 2.5 Project/

Noid.EXE

  • Member
  • **
  • Posts: 11
  • Karma: +0/-0
    • View Profile
    • NoidEXE on deviantART
Re: Flixel 2.50 Flashdevelop Template
« Reply #7 on: Thu, Apr 28, 2011 »
Also the .swf output wasn't set to $(ProjectName).swf

So I aplied all the fixes listed by furas and Philippe, check it now.

http://www.mediafire.com/?77oj8zndjvjqimz
« Last Edit: Thu, Apr 28, 2011 by Noid.EXE »

Philippe

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Flixel 2.50 Flashdevelop Template
« Reply #8 on: Thu, Apr 28, 2011 »
Still not quite good ;)

First for a template you should use $(ProjectID) for file & class names instead of $(ProjectName).

Second the compile target isn't correct - should be without ".template":
<compile path="src\$(ProjectID).as" />

Finally you should remove 'Flixel Power Toys' from the classpath (as it's not included) and I'd suggest to tidy a bit the code (especially in the main class).

Great idea to make this template BTW

Noid.EXE

  • Member
  • **
  • Posts: 11
  • Karma: +0/-0
    • View Profile
    • NoidEXE on deviantART
Re: Flixel 2.50 Flashdevelop Template
« Reply #9 on: Thu, Apr 28, 2011 »
Done. http://www.mediafire.com/?77oj8zndjvjqimz

Maybe Deviantgeek should create a gitrepo so everyone can fork it and customize things like fps, width, height, etc.

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
Re: Flixel 2.50 Flashdevelop Template
« Reply #10 on: Thu, Apr 28, 2011 »
public github repo for the template sounds like a pretty great idea to me!  i could link that from the downloads page or something even

furas

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Flixel 2.50 Flashdevelop Template
« Reply #11 on: Thu, Apr 28, 2011 »
installation works. it puts files in %USERPROFILE%\AppData\Local\FlashDevelop\Projects\ (Window 7) and I see it as last on list in "New Project" window.

previous "notworking" installation I run directly from firefox and I found it installed in firefox folder ;D

you could add $(BaseDir)/Projects/Project.png with fixel logo to see it in "New Project" window.

Deviantgeek

  • Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Youngest flixel dev ever. Srsly.
    • View Profile
    • Devianix
Re: Flixel 2.50 Flashdevelop Template
« Reply #12 on: Thu, Apr 28, 2011 »
public github repo for the template sounds like a pretty great idea to me!  i could link that from the downloads page or something even

Done + all errors fixed!
« Last Edit: Thu, Apr 28, 2011 by Deviantgeek »

Philippe

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Flixel 2.50 Flashdevelop Template
« Reply #13 on: Fri, Apr 29, 2011 »
You need to put a dummy file (like a readme.txt) in empty directories (data, lib) or they won't be included in git.

Deviantgeek

  • Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Youngest flixel dev ever. Srsly.
    • View Profile
    • Devianix
Re: Flixel 2.50 Flashdevelop Template
« Reply #14 on: Fri, Apr 29, 2011 »
You need to put a dummy file (like a readme.txt) in empty directories (data, lib) or they won't be included in git.

Thanks for the heads up, Its fixed now.

Deviantgeek

  • Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Youngest flixel dev ever. Srsly.
    • View Profile
    • Devianix
Re: Flixel 2.50 Flashdevelop Template
« Reply #15 on: Wed, May 4, 2011 »
Don't want this to get buried, since it's so useful.

Hate to be a bother, but I think this thread should be stickied.

cai

  • Contributor
  • ****
  • Posts: 465
  • Karma: +0/-0
  • the illest of villains
    • View Profile
    • Brandon Cash
Re: Flixel 2.50 Flashdevelop Template
« Reply #16 on: Wed, May 4, 2011 »
Well it's already linked on the download page, so it should be easy to find.
Follow me on Twitter | Come join us at #flixel on irc.freenode.net!

Deviantgeek

  • Member
  • **
  • Posts: 63
  • Karma: +0/-0
  • Youngest flixel dev ever. Srsly.
    • View Profile
    • Devianix
Re: Flixel 2.50 Flashdevelop Template
« Reply #17 on: Wed, May 4, 2011 »
Well it's already linked on the download page, so it should be easy to find.

True, but what if someone ignores that page, and gets their downloads from the GitHub repo? And only comes to the Forums for help...

GrimPanda

  • Member
  • **
  • Posts: 46
  • Karma: +1/-0
    • View Profile
    • Grim Panda Games
Re: Flixel 2.50 Flashdevelop Template
« Reply #18 on: Thu, Jul 7, 2011 »
Great template! 

I jumped right in and double clicked the .fdz file which in the master GIT is actually still referencing the 2.50 template and not the 2.55 one.  Afterwards I manually dragged the project folder into the correct location.  I was having a tough time finding the location of the .fdz project entry, until I re-read the post by furas:

Quote
installation works. it puts files in %USERPROFILE%\AppData\Local\FlashDevelop\Projects\ (Window 7) and I see it as last on list in "New Project" window.

Is that intentional?  I'm guessing that has something to do with Windows release best practices, but man that's not a very obvious jump (at least to me).  Is it terrible to place the project files in with the rest of the ones in the \Program Files\ directory?

Initial thoughts might be to include a .fdz file for each Flixel release.  2.50, 2.55 and so on, so users can still choose that action appropriate to their flixel build in the future.

« Last Edit: Thu, Jul 7, 2011 by GrimPanda »
"Mortis Ailuropoda"