-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlasma.swift
48 lines (36 loc) · 1.48 KB
/
Plasma.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// ---------------------------------------
// Sprite definitions for 'Plasma'
// Generated with TexturePacker 4.2.0
//
// http://www.codeandweb.com/texturepacker
// ---------------------------------------
import SpriteKit
class Plasma {
// sprite names
let PLASMA_BULLET_1 = "plasma_bullet_1"
let PLASMA_BULLET_2 = "plasma_bullet_2"
let PLASMA_BULLET_3 = "plasma_bullet_3"
let PLASMA_BULLET_4 = "plasma_bullet_4"
let PLASMA_BULLET_5 = "plasma_bullet_5"
let PLASMA_BULLET_6 = "plasma_bullet_6"
// load texture atlas
let textureAtlas = SKTextureAtlas(named: "Plasma")
// individual texture objects
func plasma_bullet_1() -> SKTexture { return textureAtlas.textureNamed(PLASMA_BULLET_1) }
func plasma_bullet_2() -> SKTexture { return textureAtlas.textureNamed(PLASMA_BULLET_2) }
func plasma_bullet_3() -> SKTexture { return textureAtlas.textureNamed(PLASMA_BULLET_3) }
func plasma_bullet_4() -> SKTexture { return textureAtlas.textureNamed(PLASMA_BULLET_4) }
func plasma_bullet_5() -> SKTexture { return textureAtlas.textureNamed(PLASMA_BULLET_5) }
func plasma_bullet_6() -> SKTexture { return textureAtlas.textureNamed(PLASMA_BULLET_6) }
// texture arrays for animations
func plasma_bullet_() -> [SKTexture] {
return [
plasma_bullet_1(),
plasma_bullet_2(),
plasma_bullet_3(),
plasma_bullet_4(),
plasma_bullet_5(),
plasma_bullet_6()
]
}
}