tutsplus / gaming-with-easeljs Goto Github PK
View Code? Open in Web Editor NEWSource Files for the Tuts+ Course: Gaming With EaselJS
Source Files for the Tuts+ Course: Gaming With EaselJS
It seems that Easel.js have changed their api slightly, since I am sure this worked when I was using version 0.7.1. The offending line of code can be found in line 21
of app/lib/main.js
. It seems they have moved the delta
to the top level of the event.
var delta = event.delta;
this.rotation -= delta/1000*100;
I should have locked down the version of easel in the package.json file. At the moment the version is "*"
but it should have been a specific number. For now, you can fix the problem by pointing grunt copy
to the right version number.
Goto Gruntfile.js
and change line 16
to 'bower_components/easeljs/lib/easeljs-0.8.0.combined.js'
(or which ever version is being loaded into bower_components
.
Then goto app/index.html
and change line 11
to <script src="scripts/easeljs-0.8.0.combined.js"></script>
When i was using the Easel.js for the version is 0.8.0 , there are some error at this code " Shape.prototype.initialize.call(this, null);".
Getting an error on
Shape.prototype.initialize.call(this, null);
Error being :
Uncaught TypeError: Cannot read property 'call' of undefined
at Tile$initialize [as initialize] (app.bundle.js:80)
at Tile (eval at createSubclass (app.bundle.js:171), <anonymous>:1:45)
at createSubclass (app.bundle.js:173)
at Object.4../Tile (app.bundle.js:55)
at s (app.bundle.js:1)
at app.bundle.js:1
at Object.7../Block (app.bundle.js:112)
at s (app.bundle.js:1)
at e (app.bundle.js:1)
at app.bundle.js:1
Using EaselJS Version 0.8.0
I am experiencing some problems while configuring the project.
Whenever I run the grunt command on the command line, Windows asks 'How to open this file?'. When I choose my browser it just opens and show me the Grunt.js file.
I would be really thankful if you would help me resolve this issue. Thanks
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.