Grow your YouTube channel like a PRO with a free tool
Get Free YouTube Subscribers, Views and Likes

Isometric game using SpriteKit - EP13: Control other units

Follow
thedreamweb

This episode we’ll make sure we can control more than one unit by introducing a ViewModel. Next episode we’ll prepare the ViewModel for SwiftUI integration.

For more about the Command Pattern, see: http://gameprogrammingpatterns.com/co...

The goals of this project are to:

Show how to create an isometric map using Swift and SpriteKit
The map should include elevation, panning, zooming and rotating
Show how to use animations in SpriteKit
And how to generate them from 3D models (requires additional software)
Resolve effects over time based on animations
Use Dijkstramaps for movement and ability ranges and path finding

Code on GitHub: https://github.com/maartene/IsoTutorial

Used assets:
This project uses the following assets:

[Isometric Tiles Template for 32x32 pixel art by @javikolog](https://route1rodent.itch.io/isometri...)
[KayKit Character Pack : Adventurers](https://kaylousberg.itch.io/kaykitad...)

00:00 First Marker
00:47 1. Adding a ViewModel
17:43 2. Integrating the ViewModel with GameScene
23:20 3. Controlling other units
26:27 4. Displaying every units path
28:27 5. Highlighting selected tile
29:42 6. Playing animation when MoveAction finishes

posted by Kemahi9