Skip to content

Demo project demonstrating how to implement a lightning effect for Sprite Kit game

Notifications You must be signed in to change notification settings

agordeev/SpriteKitLightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sprite Kit Lightning

This demo project demonstrates how to create a lightning effect for your Sprite Kit game.

The project contains three ways to create a lightning:

  • by using SKShapeNode
  • by using CAShapeLayer
  • by using SKSpriteNode (best way IMHO, enabled by default)

If you want to try another approach, such as SKShapeNode or CAShapeLayer do the following:

  • open SpriteKitLightning\ViewController.m file
  • replace Scene3 by Scene1 or Scene2 respectively

Please refer to http://andreygordeev.blogspot.com/2014/11/sprite-kit-lightning.html blog post for more info.

I realize that these approaches may be not ideal, so pull requests are welcome!

Swift version: https://github.com/andrew8712/SpriteKitLightning-Swift

The code is under IDC (I don't care) license, so go ahead and create something amazing with using this effect!

About

Demo project demonstrating how to implement a lightning effect for Sprite Kit game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published