nadako / Ash-Haxe

Port of Ash entity framework to Haxe
Other
131 stars 37 forks source link

MacOS target fails to compile asteroids #4

Closed pixels4nickels closed 11 years ago

pixels4nickels commented 11 years ago

Hey Nadako! First, let me say thanks for your work here! I am very excited to implement this in my haxe game. I have HTML and Flash targets working right away, but the MacOS target was giving me some trouble. Here was my initial error:

FrameTickProvider.cpp:39: error: integer constant is too large for 'long' type

I noticed someone else having trouble with this type of error and Nicolas said to add ".0" on the end of the number. So for line 27:

public function new(displayObject:DisplayObject, maximumFrameTime:Float = 9999999999999999)

I changed it to :

public function new(displayObject:DisplayObject, maximumFrameTime:Float = 9999999999999999.0)

And everything compiled perfectly!

I thought I would pass this change along for anyone else who might be having troubles.

Best, Ken Rogers

nadako commented 11 years ago

Hey thanks for the tip! I just pushed the update to the master branch.

pixels4nickels commented 11 years ago

Anytime! thanks again