Using love for a battle demonstrator
Posted: Sun Apr 18, 2021 1:51 pm
Hello,
I have to build a demonstrator which is something very much like a 2d battle game consisting in two players,
one attacking with fighters, helicopters, missiles, and another defending its area with some radars and
missile launchers.
The purpose of the defender is to allocate its missiles to each targets it detects so as to neutralize completely
the attack.
I wonder if love2d could act as an interface for this demonstrator, that is to say show the fight run with
targets moving, missiles from launchers allocated to targets and destroying them. The object movements
and allocations are computed by another program so, instead of human interaction, the love2d game
would have to read events (target moving, destroyed, ...) from that other program.
Is it possible to make love2d update the graphic by reading periodically events issued by another program ?
Also, I am interested in love2d because of lua and the potential graphical possibilities.
- can I display some tooltips on mouse hovering/clicking on objects ? e.g. display position and speed of a target
- is it possible to use svg for objects ?
- is it possible to zoom in and out ?
- is it possible to change the background while zooming ? This is essential as the background would be a map
with less or more details depending on the zoom level
- is it possible to draw semi-transparent surfaces ? When hovering on a radar, I would like its range appear as
a semi-transparent surface.
- can I display a table in a graphical way ? as opposed to text only
Thanks in advance for your attention
Regards
deb75
I have to build a demonstrator which is something very much like a 2d battle game consisting in two players,
one attacking with fighters, helicopters, missiles, and another defending its area with some radars and
missile launchers.
The purpose of the defender is to allocate its missiles to each targets it detects so as to neutralize completely
the attack.
I wonder if love2d could act as an interface for this demonstrator, that is to say show the fight run with
targets moving, missiles from launchers allocated to targets and destroying them. The object movements
and allocations are computed by another program so, instead of human interaction, the love2d game
would have to read events (target moving, destroyed, ...) from that other program.
Is it possible to make love2d update the graphic by reading periodically events issued by another program ?
Also, I am interested in love2d because of lua and the potential graphical possibilities.
- can I display some tooltips on mouse hovering/clicking on objects ? e.g. display position and speed of a target
- is it possible to use svg for objects ?
- is it possible to zoom in and out ?
- is it possible to change the background while zooming ? This is essential as the background would be a map
with less or more details depending on the zoom level
- is it possible to draw semi-transparent surfaces ? When hovering on a radar, I would like its range appear as
a semi-transparent surface.
- can I display a table in a graphical way ? as opposed to text only
Thanks in advance for your attention
Regards
deb75