func NewShip() *Ship { self := &Ship{} self.Entity = entity.NewEntity() //self.Entity.Diff.Ignore["p"] = true self.Entity.Width = 75 self.Entity.Height = 112 return self }
func NewItem() *Item { self := &Item{} self.Entity = entity.NewEntity() self.Width = 34.0 self.Height = 33.0 self.SetDirection(1.0, 0.0) self.Life = 1 return self }
func NewBullet() *Bullet { self := &Bullet{} self.Entity = entity.NewEntity() self.Entity.Width = 37 self.Entity.Height = 9 self.Entity.Diff.Ignore["p"] = true self.Life = 30 return self }