if (left) return 1; if (right) return 2; if (up) return 3; if (down) return 4; else return 0;
Your booleans show whether one point is already pass another.
Jump to content
Creative Computing Graduate, Goldsmiths University of London
Software Engineer in the Aerospace and Defence industry.
Interested in Maths, Graphics and Physics (mainly graphics).
Experience with OpenGL, C/C++, Objective C and Java. Primarily use to development on Mac.
Getting into Windows dev: C#/XNA, Direct3D.
Mainly into RPGs, Action Games and Platformers.