Saturday, May 25, 2013
InfinityBomber76
[ UPDATE: 2013.07.28: SWF FILE REMOVED. Have decided to keep game off internet until it is finished and copyrighted. ]
Tuesday, May 14, 2013
Static Initializers In Haxe
http://haxe.org/doc/snip/initialization_of_statics
Unlike in AS3, it doesn't look like you can have unlabeled brackets in the beginning of a class to put static initialization code.
Here is a way to statically initialize something:
public static var NUMBERS = { var a = new List(); for (i in 0...10) a.add(i); a; // result of last block expression is saved in NUMBERS }
Monday, May 13, 2013
Function Types In Haxe
http://stackoverflow.com/questions/14025739/passing-a-function-as-a-parameter-in-haxe
// fType : T -> Void // argument means that it takes a function "fType" // that takes one argument of type "T" and returns Void. public function applyFuncToAll( fType : T -> Void ):Void { cur = first; while (true) { //Call bound function on current object in list. fType( cur.obj ); if (cur.hasNext) { cur = cur.next; } else { break; } } }
Sunday, May 5, 2013
CS5 crashes on startup or new file creation
Looks like the solution to getting my CS5 programs working again is the removal of bad network printers.
Saturday, May 4, 2013
Packages and Imports in Haxe
Unlike in Actionscript, it looks like you must conform to the "Constant-Class" rule when naming packages. --Notes------------------ The class path: import com.JMIM.TestClass; Gave me an error "Unexpected com" or something like that. I thought it might be namespace collision since the NME library also has a com folder so I tried: import dotCom.JMIM.TestClass; And changed the folder structure accordingly only to end up with the same error. During this whole time I did make sure to add my personal library by putting another source path tag into the .nmml file. Then I started getting errors something along the lines: "Unexpected class JMIM" or something. I changed it to: import dotCom.jmim.TestClass; Getting closer to a compile. :) Also, it looks like restarting my computer after messing extensively with the package structure MIGHT be the way to go once you've done everything you can think of. --------------------------
Thursday, May 2, 2013
AppTopia
Market Plan:
1. Make source code.
2. Re-skin game over and over till it stops making money.
3. MAYBE sell source code on internet.
Make at least 3 skins of each game.
Do NOT take advantage of artists.
Offer artists a FLAT commission rate and 50% of whatever the profit is from the game.
Pitch to artists:
1. Guaranteed Cash. Half now, half when you finish.
2. 50% on whatever the game makes.
3. There WILL be a credits section. You may use it as a portfolio piece.
This could help you with a full time job, or just to brush up on your skills.
Wednesday, May 1, 2013
How to add library in Haxe / NME / NMML
Adding library in Flash Develop Haxe:
<!-- Paths to libraries. Must be declared here. Not in the project properties. -->
<source path="Source" />
<source path="C:\Users\JMIM\Desktop\HAXELIB" />
<!-- Paths to libraries. Must be declared here. Not in the project properties. -->
<source path="Source" />
<source path="C:\Users\JMIM\Desktop\HAXELIB" />
Subscribe to:
Posts (Atom)