The counter continues even after a player removes all tiles—you need to add a game over check and display a game over scene.
- [Instructor] Hi there; welcome back to the video.…In the last video, we have made the game…display nicely in a mobile device.…In this video, we will add the core game logic.…We implement a new class…to handle the number counting logic.…We also check if the player has clicked the correct number.…We want the player clicks from one to the last number.…According to the game logic, we only allow the player…to click on the current number.…
We need a place to describe this relationship.…That's why the game data class exists.…Let's create the game data class.…This class handles all the data-related logic for the game.…It defines the amount of box for the game.…It stores the current number that players need to click.…We define a method to increase the number to the next one.…Then we define a method to determine…if a given number matches the correct number.…
We need a method to determine if the game wins.…We define the method to mark it…as to do for later implementation.…We finish defining the game data class.…Let's use it in our game class.…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Planning your first game
- Setting up your file structure
- Setting up HTML and JS
- Drawing basic shapes with EaselJS
- Implementing your first game object
- Creating the core game logic
- Adding graphics to your game
- Planning your second game
- Handling obstacle and hero collisions
- Making the hero run and jump
- Adding graphics and animations
- Polishing your final game
Skill Level Beginner
Q: Should the exercise files be run from a server or locally?
A: Please run the exercise files from a server as directed. The files will not work properly if run locally.
iOS Game Development with Swift 3 and SpriteKitwith Todd Perkins2h 52m Intermediate
1. Planning Your First Game
2. Creating the Core Game Logic
3. Adding Graphics to Your Game
4. Planning Your Second Game
Planning the rush game4m 7s
5. Game Objects and Collisions
6. Character Movement and Input Handling
7. Adding Graphics and Animations
8. Polishing Your Final Game
- 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.