velvetorg / velvet.js Goto Github PK
View Code? Open in Web Editor NEWAn HTML5 game engine that allows for fast creation of web based games.
License: Apache License 2.0
An HTML5 game engine that allows for fast creation of web based games.
License: Apache License 2.0
The .clone() function for anything that inherits from Base does not work as expected on the scenegraph. Although is will work for the most part it will not clone children of children.
In order to use the addComponent function, that function need to chack that the parameter passed is a valid component (not just a random type like string).
Someone figure out how to do this:
this.addComponent = function(componentInstance)
{
//Check that it is a valid componenet
//e.g. renderer
//--> How would I do this <--
//Add to list
this.components.push(componentInstance);
}
When modifying transform.position, transform.scale, transform.localPosition and transform.localScale then the scenegraph will not update.
Read more about the specifics here: http://stackoverflow.com/questions/40991821/typescript-setter-is-not-called-on-a-sub-property-of-a-class-instance/40992866?noredirect=1#comment69207842_40992866
Example that may cause the problem:
player.transform.position = new Vector2(10, 10); //Okay
player.transform.position.x = 10; //This will not update the scene graph and may cause problems
A warning has been added to the vector class - but this is a temporary solution
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.