TheOpenSpaceProgram / new-ospgl

A space exploration game in OpenGL. Devblog: https://tatjam.github.io/index.html
MIT License
42 stars 6 forks source link

Make machines have an editor location #27

Open tatjam opened 3 years ago

tatjam commented 3 years ago

This will improve editor usability as machines will have a logical position within the piece. We may leave the standard centered "polygon" mode for machines which have no position.

Implementation: Add a new entry to the Machine class which indicates a marker assigned to said machine. This may not be present. The editor then must properly position the piece. Visibility could be implemented piece-wise or machine-wise, this requires some testing to find the most comfortable solution.

tatjam commented 3 years ago

Something to keep in mind too is that the machine must still be clearly linked to the part it's on. Maybe an highlighting effect will be enough, otherwise some kind of indicator may be needed

tatjam commented 3 years ago

After adding this it has become evident that the editor needs some kind of click masking. I believe the most efficient way would be to simply let the machine closest to the camera get the click.