An open API service indexing awesome lists of open source software.

https://github.com/eleev/skcomponents-kit

⚗️ Collection of SpriteKit components for intermediate/advanced use cases.
https://github.com/eleev/skcomponents-kit

chain components destruction ios joystick macos physics rope sknode skspritenode spritekit swift

Last synced: about 1 year ago
JSON representation

⚗️ Collection of SpriteKit components for intermediate/advanced use cases.

Awesome Lists containing this project

README

          

# skcomponents-kit [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)

[![Language](https://img.shields.io/badge/language-Swift_5.0-orange.svg)]()
[![Framework](https://img.shields.io/badge/framework-SpriteKit-red.svg)]()
[![License](https://img.shields.io/badge/license-MIT-blue.svg)]()

**Last Update: 04/July/2021.**

![](logo-skcomponents_kit.png)

### If you like the project, please give it a star ⭐ It will show the creator your appreciation and help others to discover the repo.

# ✍️ About

This repository contains a collection of various `SpriteKit` nodes and components for intermediate/advanced use cases.

# ⚠️ Caution
- 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](https://icons8.com). However **I strongly recommend to double check it**.

# 🏗 Installation

## Cocoapods
Will be added in the next update.

## Manual
You can always handpick the component from the sources and manually add it to your project.

# 🕹 Joystick Node
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`.

## Demo

# ⛓ Rope Node
Rope/Chain node component. Can also be used to simulate bridges, platforms and gameplay elemnts.

## ToDo
- [ ] Ability to slice the rope into pieces

## Demo

# 💣 Destructible Node
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.

## ToDo
- [ ] 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

## Demo

# 👨‍💻 Author
[Astemir Eleev](https://github.com/jVirus)

# 🔖 Licence
The project is availabe under [GNU GENERAL PUBLIC LICENSE](https://github.com/jVirus/skcomponents-kit/blob/master/LICENSE)