Jay McGavren's Journal

2007-07-02

Zyps - Environment.interact with object vectors

environment = Environment.new
i = 0
while i < 1 do
	environment.objects << Creature.new(
		i,
		Location.new(WIDTH * i, HEIGHT * i),
		Color.new(i, 1 - i, i / 2 + 0.5),
		Vector.new(100 * i, i * 360)
	)
	i += 0.01
end
comments powered by Disqus