Use litiengine for a demonstrator #747
Replies: 2 comments
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). // initialize your game first ...
JFrame frame;
JPanel panel;
frame = new JFrame();
frame.setTitle("My JFrame");
frame.setSize(800, 600);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
panel = new JPanel();
panel.add(Game.window().getRenderComponent());
frame.add(panel);
frame.setVisible(true); For all your sub-questions, it's a clear yes, you can!. The only thing that would need custom logic would be the zooming behaviour that switches the tiles of your map depending on the current zoom level, but that is a manageable task. |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
Posted: 2021-05-01 13:38:21
User: deb75 [] (age: 548 days 🙌; posts: 1)
Hello,
In a java project, I am asked to develop some illustrations for a demonstrator which is quite close to a game,
so I am interested in liiengine. The difference with a game is that there would not have interactions with a player.
Events would be read from a file which is a result from a simulation.
The only constraint I was given is that I have to put the illustration within a jpanel. Is it possible
to make the 2d game engine litiengine work inside a jpanel ?
Also, I would like to
I would be grateful to you if you could indicate me to what extent litiengine can answer to my needs
In addition, I retrieved tiles (*png) from openstreetmap for a whole european country at every level zoom.
I would like to use these one as the background of the illustration and be able to zoom in/out just like on google maps. Do you know if it is handable with litiengine ?
Best regards
Beta Was this translation helpful? Give feedback.
All reactions