2D game from Java to C++?

Hi, I've been working on a 2D RPG with Java for a few months now…I'm pretty familiar with Java by now, but I keep having problems drawing graphical things like JPanel, JButton, etc. over the main JPanel and I just can't get it to work…my question is, should I go to the trouble of redoing everything in C++ or learning C++…is that a good idea?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
6 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
FaTech
1 year ago

Good idea? No. Unless you really want it.

Java offers enough possibilities, you just have to use it. But if you want a 2D game, it might be more recommended to use a game engine. For example, Unity. But here you should learn C# because Unity cannot be Java. There are also other game engines, so you can inform yourself.

DubskyAnswers
1 year ago

The way to you C++ not only “can” but also correct is much longer than simply to solve the problem.

It sounds to me like you only work with the standard libraries.
If yes -> By intention?

Otherwise look at libGDX on. You will find a better framework for games hard in Java.

DubskyAnswers
1 year ago
Reply to  januszautist

I’d just dock with the official documentation.
Aka. -> What is the lifecycle of components? In what order?

Tutorials can be useful, but can also send you in the completely wrong direction if they do not come from people who really understand something about it.

Something for you:

libGDX Framework FULL Course. Learn How to create Professional Java Games – YouTube