Using SpriteKit Particle Emitters to Make Shapes Explode | Learning Xcode GameDev

Опубликовано: 01 Июль 2022
на канале: JohnDav
2,591
43

Now that I've got my Swift Playgrounds game converted over into Xcode and working fully on SpriteKit it's time to start adding some of the polish and features that aren't possible on the iPad with Swift Playgrounds.

Link to Shapes&Numbers Playlist:    • Using Swift Playgrounds To Prototype ...  

One of the best ways to build a more immersive and interesting game play experience is to add visual effects to the game. Shapes & Numbers is really lacking these effects, but a simple and easy particle effect that I can add is to create a small explosion when you tap the right shape.

To do this I've basically just had to create an SKEmitter and place that into the scene using an SKAction. This action takes care of placing the emitter node, waiting for some time for it to run, then removing the node when it's done.

Overall it's a pretty simple solution, that can be extended to offer a lot of powerful capabilities.

Chapters
0:00 - The Plan For Today (Particle Effects in SpriteKit!)
0:40 - Setting Up SpriteKit Particle File In Xcode
2:45 - Adding the code to make it work
7:02 - The First Test - Does it work?
8:27 - Tweaking of the SpriteKit Particle File
11:38 - The Final Result -- For now :)

#xcode #spritekit #swift

Hopefully this was helpful if it was consider giving the video a like so others can find it. And thanks for watching!

//Things I've Made
ZER0ED: https://apps.apple.com/us/app/zer0ed/...
Shapes&Numbers: https://apps.apple.com/us/app/shapes-...
My Website: https://www.johndav.com


Смотрите видео Using SpriteKit Particle Emitters to Make Shapes Explode | Learning Xcode GameDev онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь JohnDav 01 Июль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,591 раз и оно понравилось 43 людям.