-
You can add
-watch
as an arg when running/testing a Lime based project (openfl, haxeflixel, etc.), and it will auto-recompile anytime there's a file change in any of your source directories. -
Snippet for pixel perfect HTML5 rendering for HaxeFlixel.
#if web // pixel perfect render fix! Application.current.window.element.style.setProperty("image-rendering", "pixelated"); #end
-
You can use
@:depricated()
for functions no longer in use and put some text in the ()'s to tell yourself its depricated
-
You can use
@:haxe.warning("WDeprecated")
to disable deprication warnings or in the terminal use the compiler conditional
-w WDeprecated
-
You can use
haxe.PosInfos
for things related to position in code, for example
class Main { static function assert(cond:Bool, ?pos:haxe.PosInfos) { if (!cond) haxe.Log.trace("Assert in " + pos.className + "::" + pos.methodName, pos); } static function main() { assert(1 == 1); // nothing assert(0 == 3); // trace "Assert in Test::main" } }
-
You can use
@type();
to get the type of something
-
Notifications
You must be signed in to change notification settings - Fork 0
inspired by ninjamuffin99 doing it also helps me remember stuff
License
sphis-Sinco/learnings.plan
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
inspired by ninjamuffin99 doing it also helps me remember stuff
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published