What is this Course About?
This course gets you up to speed basic features of the CreateJS library to create HTML5 canvas animations, graphic drawing and user mouse interactions.
CreateJS is a popular well supported Javascript library used for web advertising, education, gaming and cartooning. It does not require complicated HTML or CSS to implement. What you create is easily added to other web pages without changes.
What is Covered?
This is a basic course where you can get a grounding on the CreateJS resources available and the software API architecture. You use a simple learning framework so you can try the API with examples that are easy to follow and grasp.
You will learn about the hierarchical display list architecture built into the EaselJS library component of CreateJS.
And you will apply the EaselJS mouse interaction model so you can get up and running quickly to control animations with user input.
You also work with the HTML5 graphics drawing library found in EaselJS.
You will learn how simple and easy to create HTML5 animations with the CreateJS tweening library component called TweenJS.
Who Can Take this Course?
This course is for those who know Javascript basics and are beginning to learn about the CreateJS suite of libraries. This course does not require advanced programming skills. Any programming is explained and supported so you can succeed.
If you have Actionscript 3 background, you will find comfort in seeing that API finding a new home in these libraries. But Actionscript experience is not necessary for the course.
What Materials Are Included?
The course includes step by step video presentations along with starting and completed practice files used in the videos.
Getting Help
I enjoy helping so make use of the Udemy question area.
"The instructor does not assume you know or understand everything. On the contrary, he explains the reasons behind every single step." -- Alonso Ramos
I am behind you succeeding so use me. No question too simple. No question too complicated. Challenge me!
Often questions result in new examples and demos which are posted in the Additional Examples Lesson for everyone to see.
Hope you enjoy the course and please let me know anything I can help you do.
Who is the target audience?Resource links:
Bonus: The practice files completed folder contains all the examples used in the video.
This lesson gives you an overview of using strokes in the EaselJS Graphics class predefined shape drawing methods.
These are the drawCircle, drawEllipse, drawRect, drawRoundedRect, drawRoundRectComplex and drawPolyStar.
You survey all the stroke drawing methods and divide the learning process between those that apply to predefined graphic shape drawing methods and those more useful for custom graphic drawing.
The concept of the drawing path is introduced and you see how to include a path when drawing predefined shapes.
You look examine the arguments for the beginStroke and setStrokeStyle methods for drawing strokes for the predefined graphic shape drawing methods.
You are also investigate the order of using the beginStroke, setStrokeStyle, beginFill, endFill and endStroke methods when used with the predefined graphic shape drawing methods.
This lesson prepares you for the other lessons in this section and future sections focused on strokes and fills.
Introducing Strokes In Shape Drawing Methods Preview 04:33In this lesson you work with strokes using the EaselJS Graphics class shape drawing methods drawCircle and drawRect.
You use the Graphics class beginStroke, setStrokeStyle and endStroke methods to define when and how strokes are drawn.
You learn how to make the distinction between a stroke and a path when using the shape drawing methods.
You also see the impact that stroke thickness has on positioning EaselJS Shape objects when drawing methods are used to define their perimeter.
Finally we will establish some best practices for our course when using the beginStroke, setStrokeSyle and endStroke methods.
Adding Strokes to Shape Drawing Methods 12:59In this lesson you will learn how strokes and fills work together when drawing and positioning EaselJS Shape objects that have stroke perimeters.
We will use the EaselJS Graphics shape drawing methods drawCircle and drawRect along with the beginStroke, setStrokeStyle and endStroke methods.
And the fill methods beginFill and endFill.
Finally we will add course best practices for using stroke and fill methods on adjacent lines.
Adding Fills to Stroke Perimeter Shapes 14:16 + – Stage Mouse Event Handling 4 Lectures 42:06In this lesson you focus on using the stage object's stagemousedown, stagemouseup and stagemousemove events.
You investigate using the MouseEvent class properties type, stageX and stageY.
Using the addEventListener method you will build the stage mouse event handlers to display the event's
MouseEvent object data on stage and in the web browser console window.
And you will compare the generated MouseEvent data as the stage mouse events are fired.
How to Handle Stage Mouse Events Preview 08:16In this lesson you experiment with stage mouse events to control a TweenJS rotation animation.
You will start and stop the rotation tween.
Reverse the rotation direction and change its speed in response to the Stage object's stagemousedown and stagemouseup events.
You use the addEventListener method along with the MouseEvent class's type and stageX properties.
You also work with the Tween get method's paused and override configuration properties.
Controlling a Rotation Tween Using Stage Mouse Events 12:36CreateJS 12/12/2013 Release CDN issue has a bug in CreateJS for the stage.getObjectUnderPoint method is returning null. That is fixed in the 5/21/15 release. This files for this lecture are also updated to use the new release.
In this lesson you work with the stage mouse to drag and drop an EaselJS shape object.
You use the Stage object's stagemousedown, stagemouseup, and stagemousemove events along with addEventListener method and the MouseEvent class's type, stageX and stageY properties.
And you will use the Stage class's mouseMoveOutside property to track the mouse movements outside the stage boundaries.
You also use the getObjectUnderPoint method for detecting the top layer object under the mouse.
Drag and Drop Using Stage Mouse Events 11:01 CreateJS 12/12/2013 Release CDN issue has a bug in CreateJS for the stage.getObjectUnderPoint method is returning null. That is fixed in the 5/21/15 release. This files for this lecture are also updated to use the new release.
In this lesson we will extend the "Drag and Drop Using Stage Mouse Events" lesson to include a tween.
The tween will run when the circle is dropped.
You will add some logic to control when the tween can be started.
This will involve using the Tween class "call" method.
And you will add logic to create a variable speed based on mouse position.
We also look at a mouse trap that results in multiple versions of the same tween running undetected.
Drag and Drop Tween Using Stage Mouse Events 10:13 + – Using Ticker For Animation 3 Lectures 17:58This lesson introduces you to building animations without the TweenJS library.
Instead you learn how to use the Ticker class tick event handler.
The example you build in this lesson animates a Shape's x property across the stage.
And you will use the Ticker class's getTicks and getTime static methods.
These methods give you useful timing information while your animation is playing.
Basics of Using Ticker For Animation Preview 07:45This lesson expands the basic Ticker animation.
You will create a continuous animation loop like the TweenJS loop configuration property.
And during the loop the animation repeatedly reverses direction.
In this lesson you work through how to animate property changes computed based on a given duration.
You will compute the velocity needed to move a distance for a given duration.
This is similar to the duration property you use in the TweenJS "to" method.
Only we are emulating it in pure Javascript for our basic Ticker animation.
In this lesson you work on the relative positioning of EaselJS Shape objects that have stroke perimeters.
We build the stroke perimeters using the EaselJS Graphics shape drawing methods drawCircle and drawRect along with the beginStoke, setStrokeStyle and endStroke methods.
You learn how to use offsets for perimeter stroke thicknesses to relatively position multiple shape objects on stage.
You also are challenged to think about how variables can be used to describe shape object relative positioning expressions.
Relative Shape Positions and Stroke Perimeters 12:04This lesson focuses on tweening EaselJS Shape objects that have stroke perimeters drawn by the EaselJS Graphics class shape drawing methods.
You learn how stroke perimeters and shape drawing method arguments impact tweening.
We use the drawCircle and drawRect shape drawing methods for building the stroke perimeters in combination with the beginStoke, setStrokeStyle and endStroke methods.
Then you will tween using the EaselJS Shape object alpha, rotation, x and y properties.
The tweens will emphasize the relative position offsets between shape objects as well as the stage container boundaries.
And you utilize the Pythagorean Theorem for handling rotated square rectangle positions.
Pythagoras' Theorem Additional Resources
This section is for uploading additional examples that are helpful to answering your questions.
Additional Examples 00:04 A full summary of the topics we covered in the course.
I have produced a new course for web beginners if you want to also do some server side coding.
Learn Stripe PHP: Make Checkout Webpages
Start to accept credit cards on your PHP web site for single item orders and get introduced to the Stripe platform.
Here is a coupon link to the course if you are interested.
http://bit.ly/1WcJwBB
I have another in the works for release end of August 2015 Create a Subscription Service with Stripe and PHP
Зарегистрируйтесь, чтобы оставить отзыв