Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

Bilka2 commented Jan 3, 2019

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

Lights are implemented using sprites.

@riking

This comment has been minimized.

Copy link

riking commented Jan 4, 2019

Extra idea: being able to specify drawings as relative to drawing.local_player, a special token which is reinterpreted for every player that can see the object

@Leowbattle

This comment has been minimized.

Copy link

Leowbattle commented Jan 4, 2019

Will we be able use draw splines? (al_draw_spline)

@Bilka2

This comment has been minimized.

Copy link
Owner Author

Bilka2 commented Jan 4, 2019

@Leowbattle sorry but that is not supported by our internal rendering system that this is based on.

@kumpuu

This comment has been minimized.

Copy link

kumpuu commented Jan 4, 2019

Can you add this for guis? How about a canvas element?

@AlexandrPavlovski

This comment has been minimized.

Copy link

AlexandrPavlovski commented Jan 8, 2019

@Bilka2, Sorry will we be able to alter rendering of existing sprites? For example disable bots rendering when there are to many of them, or render only one out of ten bots to have visual clue and not get lost under them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.