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

https://github.com/maxvol/spritekitdsl

Swift DSL for SpriteKit
https://github.com/maxvol/spritekitdsl

dsl spritekit swift

Last synced: over 1 year ago
JSON representation

Swift DSL for SpriteKit

Awesome Lists containing this project

README

          

# SpriteKitDSL
Swift DSL for SpriteKit

```swift
let node = SKNode.shapeNode(rectOf: size, cornerRadius: radius) {
$0.lineWidth = 2.5
$0.run(SKAction.repeatForever(SKAction.rotate(byAngle: CGFloat(Double.pi), duration: 1)))
$0.physicsBody(SKPhysicsBody(rectangleOf: size)) {
$0.mass = 5.0
$0.isDynamic = true
$0.affectedByGravity = true
$0.usesPreciseCollisionDetection = true
}
}
```

Carthage setup -
```
github "maxvol/SpriteKitDSL" ~> 0.1.0
```