forgive me master

This commit is contained in:
127-Z3R0 2020-04-22 16:25:06 +02:00
parent b7128f8c03
commit 6712398f6a
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,10 @@ class Base : SKSpriteNode{
var defaultColor = SKColor.green var defaultColor = SKColor.green
init(color: UIColor, position: CGPoint, name: String) { 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 defaultColor = color
self.colorBlendFactor = 1 self.colorBlendFactor = 1

View File

@ -120,7 +120,6 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
} }
base = Base(color: color, position: position, name: "Base\(i)") base = Base(color: color, position: position, name: "Base\(i)")
print(base.position)
bases.append(base) bases.append(base)
self.addChild(base) self.addChild(base)
} }