billywm / flixeljs Goto Github PK
View Code? Open in Web Editor NEWFlixel in Javascript (HTML5/Canvas)
License: Other
Flixel in Javascript (HTML5/Canvas)
License: Other
FlxGroups are busted. They apparently destroy the clearRect ;)
The automatic conversion script is almost, but not entirely complete. As I recall, it should be functional once it handles statics + constants; at that point it should be able to automatically convert all of Flixel's .as files to a .js file full of classes.
It won't, however, be guaranteed to correctly convert users' games, as it takes a lot of shortcuts.
Consider writing a proper parser with Jison to allow people to convert games in-browser, and even unzip them with a JS unzip library
In the example game, the tilemap shows a weird notch: The second tile in the map is an empty space
Unimplemented because it's a method of Sprite. Try using Canvas drawing methods to recreates this functionality. If Canvas won't do it without anti-aliasing, stick in a line-drawing algorithm that does it manually.
The following are not yet implemented but are planned, roughly in order of importance:
The following are not planned:
Collision doesn't work. collide() and overlap() checks never detect any collisions.
Haven't tracked down the location of the issue yet. Probably a small error in the arithmetic of FlxU's collision-related functions: solveXCollision or solveYCollision. Also possible there's an error in FlxQuadTree or the use of it
Text handling has not yet been addressed, in part because the asset system is not finished (Text in Flixel needs to use a developer-specified font)
The asset handling system will eventually handle pre-loading all images, sounds, etc, and providing a convenient reference to them.
A single Assets object will hold references to all assets, for example: Assets.images.playerImg
This loader should provide preloading information. At the very least, it should periodically report the number of files loaded / total so developers can build a preloading screen with this information. Getting the bytes loaded / bytes total is problematic (cross-browser issues) but will be considered for future inclusion.
Because asset handling isn't added yet, sound has not been addressed. We'll attempt to dynamically create HTML5 objects.
The game background is transparent instead of a color, and other objects such as tilemaps set transparency vs colors incorrectly too. This is probably because of the way I handle drawing BitmapData objects on Canvas
If you attempt to rotate any FlxObject, its angle will become NaN. I've so far been unable to determine why or where this happens. Because Flixel determines which drawing method to use based on rotation and scaling, I've put in a hack to force angle to 0 all the time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.