For the game to be engaging and visually attractive, you need to add a few animations to liven it up.
- [Instructor] Hello, and welcome to video 2.2.…In this video we're going to discuss about creating…basic animations in the game.…The previous video we've created a basic layout of the stage…which look like this.…Now, we're gonna focus on creating an animation…for one of the elements.…In this case, the element will be the brick.…We wish to create a destruction animation…for the brick so that when the ball will hit the brick,…the brick will have a destruction animation…which will play to give the player an illusion…that the brick disappeared from the stage.…
So, we'll create a new function…called destructBrick…which receives as a parameter a brick element…and we'll use twinJS…which we've talked about in a previous video,…and we'll change properties of the brick,…the scale X and scale Y properties of the brick…to zero giving the illusion…that the brick is shrinking in size…until it completely disappears.…We'll set the time for this animation…for half a second.…So, let's try to run this animation…after we create the brick.…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Playing sounds in various browsers using SoundJS
- Tweening objects using TweenJS
- Creating graphic assets and basic animations
- Game stage creation and object positioning
- Adding the basic game logic
- Add the game physics
- Adding mouse and keyboard controls
- Debugging with breakpoints in Chrome
- Debugging on Android and iOS
- Character movement and input handling
Skill Level Advanced
iOS Game Development with Swift 3 and SpriteKitwith Todd Perkins2h 52m Intermediate
2. Game Outline
3. Game Logic
4. Planning Your Second Game
5. Testing and Debugging the Game
6. Character Movement and Input Handling
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.