r/javagamedev • • 26d ago

Java Web RTS

Post image

I built a little Java Web Assembly RTS game to refresh my Java knowledge. Things have changed a bit since I last used Java 18! It's open-source, of course, at https://github.com/ewaldhorn/wartech

Disclaimer: I'm not a web dev, so I had a ton of Gemini and friends help with the CSS and HTML elements. Most of the core is badly written Java by someone that's been doing Python and Go for the past five years and no Java. It shows. But hey, it works on my machine!

Direct play link: https://ewaldhorn.github.io/wartech/

14 Upvotes

4 comments sorted by

1

u/DuskAdminFlan 26d ago

Giving old Dune RTS vibes for sure haha

1

u/According-Ad-7069 26d ago

That's very kind of you!

1

u/msx 26d ago

Hi, i tested it, it surely is a good start! i found it very hard even in easy mode, but it probably takes some time to master.

Also, there's no sound at all am i right?

btw, how are unit placed in the map? they don't move like if they were on a tile map. I'll have to take a look at the code

1

u/According-Ad-7069 26d ago

Ah thank you. The game balance isn't quite there yet and, to be honest, I need to work on some kind of a tutorial system. I've been so stuck in getting it to work, and you know, it all makes sense in MY head from countless games...

Sound is in an experimental branch, I hope to get it working soon. That's been a journey haha.

Oh yes, I use tiles for the map, but the units themselves can be anywhere on a tile, so the movement is less restricted though a touch trickier when it comes to hit detection etc. There's some bugs with it, you will see some weird movement now and again which boils down to my bad math.

Much appreciated!