Last Update: 04/July/2021.
If you like the project, please give it a star ⭐ It will show the creator your appreciation and help others to discover the repo.
This repository contains a collection of various SpriteKit
nodes and components for intermediate/advanced use cases.
- Please note that you have to be very careful if you are going to use the repo in commercial projects - do not use graphics assets. The assets were taken from the
Web
and icons8.com. However I strongly recommend to double check it.
Will be added in the next update.
You can always handpick the component from the sources and manually add it to your project.
Joystick node component. Controlls movement
or/and orientation
of attached node. Implemented using POP
design. In order to use you need to conform to Controllable2D
protocol composition typealias. Or you can conform to either MovableProtocol
or OrientationProtocol
.
Rope/Chain node component. Can also be used to simulate bridges, platforms and gameplay elemnts.
- Ability to slice the rope into pieces
Adds an ability to visualize explosions for SKSpriteNode
s. The physics shape is recalculated when sprite is re-rendered. The effect is fairly simple, however it can be used for games like Worms
in order to add more dynamic gameplay when using projectiles and bombs.
- Proper resizing - right now the texture is reset back to the original size when hit tested
- Ability to slice the node when it is sliced into more than one pieces
The project is availabe under GNU GENERAL PUBLIC LICENSE