gaelbeltran Posted March 9, 2014 Share Posted March 9, 2014 Hi, I'm about to start creating a little game and I'm considering using createJS. I see that there are Haxe externs files and Typescript definitions files for these libraries. https://github.com/nickalie/CreateJS-Haxe What would be the advantages of choosing one above the other? Both Haxe and Typescriot are easier languages to work with than Javascript.What would you choose? Pure javascript, haxe or typescript? Are there other things to be concerned about? I currently use Phaser, Construct 2 and PandaJS for my client work but I'm trying to use createjs for little projects. Quote Link to comment Share on other sites More sharing options...
Antriel Posted March 10, 2014 Share Posted March 10, 2014 I personally didn't like createJS too much. It tries to mimic flash API (quite successfully tbh), but there were some weird bugs and things I didnt like as no AABB hittests.Now I'm trying Flambe and so far it looks better for a dev like me who doesn't want to hassle around with lower level stuff. From what I said above, it's apparent I would choose Haxe. Especially if you don't have much experience with javascript. My first project was Haxe + createjs and I didn't have any problems with that. gaelbeltran 1 Quote Link to comment Share on other sites More sharing options...
kuuuurija Posted March 10, 2014 Share Posted March 10, 2014 I personally like TypeScript. It feels like home for me as AS3 developer. And as for createJS, I made this game for learning https://github.com/goldenratio/shape-shooter it was a nice experience. And again it felt like home because of Flash like APIs I had to move to pixi.js just becasue of webGL support (loving it), but it seems createJS now supports webGL too. gaelbeltran 1 Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted March 11, 2014 Author Share Posted March 11, 2014 Well, I think Typescript has a real advantage as it produces readable javascript, you could even work over the javascript it produces. But that's just with createJS, because haxe has haxeflixel, an excellent engine. I think I'll go with typescript+createJS Quote Link to comment Share on other sites More sharing options...
Antriel Posted March 11, 2014 Share Posted March 11, 2014 Not sure what exactly means readable javascript, but it's not like you can't read what Haxe outputs. gaelbeltran 1 Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted March 11, 2014 Author Share Posted March 11, 2014 I've never seen what haxe outputs, but if it outputs good javascript I'll give it a try.By readable javascript I mean that it compiles to "good javascript". For example, the javascript that coffeescript produces is really bad.I'm by no means saying that haxe is bad. Quote Link to comment Share on other sites More sharing options...
Antriel Posted March 11, 2014 Share Posted March 11, 2014 Right, well since I know very little javascript I can't judge that, but I could read the haxe output just fine. Of course it wasn't pretty but I could find my way around pretty easily. You can quickly test it here http://try.haxe.org/. Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted March 13, 2014 Author Share Posted March 13, 2014 I tried it and it actually produces good javascript, I'm now leaning more towards haxe as a platform to develop on Quote Link to comment Share on other sites More sharing options...
harrywatson Posted March 14, 2014 Share Posted March 14, 2014 Ah now I'm new to javascript ( 5 months part time self taught).I held off any framework as I wanted to learn the basics first off.I've done attendance register report systems using php mysql etc.And javascript to start with, did my head in, compared to php. Createjs got me started straight away with stuff I'd been struggling with for ages. I'm still 'new' so open to any framework - not promoting. But Tweenjs (part of createjs). is soooo easy and independent of the other libraries. I'd never 'tweened' anything in mylife, neither with AS nor js - then with Tweenjs I got carried away with this example inone day . Sorry bit over the top - it's all chained ie. getTween.example {(go here . at this speed . relaxing into this place .then . bounce . overhere . thenoverthere. in a rubberysortofway)} You get the picture. http://harrywatson.altervista.org/momo/index2.html Tweenjs = http://www.createjs.com/#!/TweenJS Js ain't that bad I've decided - but the raw variety is best left to the whizkids who create the frameworks. I tried without a framework and my brain looked like one of those unpleasant things you see firstthing in the morning with a hangover. Quote Link to comment Share on other sites More sharing options...
dheart88 Posted March 16, 2014 Share Posted March 16, 2014 after seeing the result here : http://nickalie.com/posts/67/ I think createJS is another solution for html5 openfl target, but I don't want to change the codebase a lot just for one target platform (html5)@Antriel: nice link man.. I never touch js. thing, i was about to hardcoded with js the thing I need to manually do on index,html Quote Link to comment Share on other sites More sharing options...
enriqueto Posted March 17, 2014 Share Posted March 17, 2014 I've done some simple games with createJS and is ok. Wouldn't do anything more complicated like a match 3 game since isn't a game engine just a simple framework to manage a display list in an actionscript way Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted March 18, 2014 Author Share Posted March 18, 2014 Yeah, I'm not planning on doing anyhting fancy, just some demos and personal projects with it. For complete games I'd go with Phaser or Pandajs Quote Link to comment Share on other sites More sharing options...
Stunt Pixels Posted March 18, 2014 Share Posted March 18, 2014 We primarily use CreateJS and Coffeescript at work. CreateJS was chosen because we had a LOT of simple little Flash games to move over to HTML, and the API was pretty consistent. For my personal projects, I'm moving over to PIXI.js and my own game logic. I find that CreateJS carries too much baggage with it, unless you're porting Flash content over, or want to use Flash to create content... Quote Link to comment Share on other sites More sharing options...
adgard Posted April 1, 2014 Share Posted April 1, 2014 I tried js and type script and I did not like it. Now I am using Haxe +openfl + nape and this combination I like a lot more) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.