forgive me master
This commit is contained in:
parent
b7128f8c03
commit
6712398f6a
@ -15,7 +15,10 @@ class Base : SKSpriteNode{
|
||||
var defaultColor = SKColor.green
|
||||
|
||||
init(color: UIColor, position: CGPoint, name: String) {
|
||||
super.init(texture: SKTexture(imageNamed: "Base"), color: color, size: CGSize(width: 50.0, height: 50.0))
|
||||
super.init(texture: SKTexture(imageNamed: "Base"),
|
||||
color: color,
|
||||
size: CGSize(width: 50.0, height: 50.0)
|
||||
)
|
||||
|
||||
defaultColor = color
|
||||
self.colorBlendFactor = 1
|
||||
|
@ -120,7 +120,6 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
|
||||
}
|
||||
|
||||
base = Base(color: color, position: position, name: "Base\(i)")
|
||||
print(base.position)
|
||||
bases.append(base)
|
||||
self.addChild(base)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user