示例#1
0
func pc(icon gfx.ImageSpec, health int) spawnFunc {
	return spawnFunc(func(w *world.World) entity.Entity {
		return mob.NewPC(w, mob.Spec{Icon: icon, MaxHealth: health})
	})
}
示例#2
0
func genPC(w *world.World) entity.Entity {
	return mob.NewPC(w, mob.Spec{Icon: util.SmallIcon(util.Chars, 16), MaxHealth: 6})
}