Exemple #1
0
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
}
Exemple #2
0
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
}
Exemple #3
0
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
}