Collisions and Masks Part 2
Add to favorites
Generating an unpredictable event
In the last section, we made our player die by touching a trap. With practice, anyone can skip static traps and make a perfect run. For this reason, most games play around random events. In our game, we are going to make Elon’s life a lot harder by shooting at him some meteors.
Purchase includes access to 50+ courses, 320+ premium tutorials, 300+ hours of videos, source files and certificates.
Templates and source code
Download source files
Download the videos and assets to refer and learn offline without interuption.
Design template
Source code for all sections
Video files, ePub and subtitles
Browse all downloads
1
Introduction to SpriteKit
Creating your first iPhone platformer game
10:26
2
Joystick Controls
Working with controls to move your player
21:03
3
Player State Machine
Using GameplayKit to manage the different statuses and animations
21:35
4
Camera Work
Following the player and adding a background parallax
19:28
5
Collisions and Masks
Applying physics properties to an object
12:19
6
Collisions and Masks Part 2
Generating an unpredictable event
21:00
7
Scoring System
Being able to count an abstract quantity in a game
12:32
8
Life System
Getting injured multiple times before dying
29:53
9
Leveling Up and Game Sounds
How to switch between scenes and sounds effects
28:22
Meet the instructor
We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.
Willie Yam
Front-end/UI developer at Design+Code
I do UI coding. HTML/CSS/JS/SWIFTUI dev.
10 courses - 37 hours
Design and Prototype an App with Play
Build a completely functional prototype without writing a single line of code from your phone
3 hrs
Create a 3D site with game controls in Spline
Build an interactive 3D scene implemented on a ReactJS site using Figma and Spline
2 hrs
Build a Movie Booking App in SwiftUI
Learn how to create an iOS app based on a beautiful UI design from Figma with interesting animations and interactions, create a custom tab bar and use navigation views to build a whole flow
1 hrs
Build Quick Apps with SwiftUI
Apply your Swift and SwiftUI knowledge by building real, quick and various applications from scratch
11 hrs
CSS Handbook
A comprehensive series of tutorials that encompass styled-components, CSS, and all layout and UI developments
1 hrs
Advanced React Hooks
Learn how to build a website with Typescript, Hooks, Contentful and Gatsby Cloud
5 hrs
Unity for Designers
If you want to make a game and don't know where to start, you are in the right place. I will teach you how to use Unity, code in C# and share essential tips and tricks to make your first game.
5 hrs
Create a Javascript Game
Learn how to create a web game using Phaser 3, a popular javascript game engine. Draw a map using an editor, implement the player, make the player move, apply physics, collisions, and implement the enemies.
2 hrs
Build an ARKit 2 App
Introduction to ARKit and learn how to make your own playground. You will be able to add models or even your own designs into the app and play with them
4 hrs
Create a SpriteKit Game
Overview of SpriteKit a powerful 2D sprite-based framework for games development from Apple and learn how to create your very own platform
3 hrs