Why you should name types?

Blitz3D Forums/Blitz3D Beginners Area/Why you should name types?

I rather prefer the idea of using one loop myself. It can be much tidier and faster. A perfect example of this was when I was running collision checks on conveyor belts for 'Trouble'. I had previously used 2 loops and the slowdown was horrendous (and this is a 2D game on a 3Ghz PC!). Squashing it into one loop solved all my woes.

Besides, if you use one loop you can call functions within that loop to run anything you need to...
For m.mytype = Each mytype
	collision_type = MoveBullet( m )
	If collision_type > 0
		DoCollision( m, collision_type )
		Destroy( m )
	EndIf
Next