Skip to content

Instantly share code, notes, and snippets.

@Bilka2
Last active March 19, 2020 18:53
Show Gist options
  • Save Bilka2/134de9c373616c09f2bf386ec0fd3cd2 to your computer and use it in GitHub Desktop.
Save Bilka2/134de9c373616c09f2bf386ec0fd3cd2 to your computer and use it in GitHub Desktop.
overall
- everything can either be drawn at position (to position/entity) or at entity (to position/entity)
- everything can have the color changed / be tinted
- everything can be visible to everyone or only to specifc players or forces
- what is drawn on top? "Best" would be to draw the new stuff on top of the old stuff, so if you draw thing1 and then thing2, thing2 is on top of thing1
things that can be drawn
- line, dashed line
* thickness
* dash length
- arc ("bent line" / part of circle) FILLED and UNFILLED
* thickness
* properties to specify shape
- circle FILLED and UNFILLED
* thickness
* properties to specify shape
- polygon FILLED and UNFILLED
-- with shortcuts for rectangle, for triangle?
* thickness
* properties to specify shape
- image / sprite / animation (already partially solved through simple entities)
* scale / size
* file path
* sprite path (in-game icons)
* allow to draw entity sprites? - basically a way to draw for example an assembler without placing one - sounds really complicated and not so useful
- pixel (will be abused?)
- text (already partially solved through flying-text)
* scale with zoom level -> bool
* font size
* font
* allow localized strings
- light
-- some kind of way to "place" a light source - perhaps make it possible to make every shape act like a light
@Bilka2
Copy link
Author

Bilka2 commented Jan 3, 2019

Not implemented: pixel, unfilled polygon, animations and the ability to draw entity sprites.

Lights are implemented using sprites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment