Any open-source RTS game?

Hello!

I’ve been looking forever for a good, well written, simple and open-source RTS (real-time strategy) game developed in Java. I’m not looking for anything advanced as Supreme Commander or Command and Conquer, but something with basic 2D pixel graphics that functions well. Now I’ve came across a lot of very subpar ones, whether they be an abandoned project on GitHub or SourceForge or a simple test; none of them have been what I’m looking for.

I have a good knowledge in programming with Java, but haven’t really took on game development with the language. I’ve had an interest an RTS games since I was a kid and I want to hopefully find one (as described above) and privately add-on and learn from it. I know of the Java game libraries out there, and if I can’t find any luck on this forum, I’ll probably resort to those and learn myself.

Anyway, if you know of any, drop a link below and I’ll check it out!

Thank you. :slight_smile:

This should fit the bill… Uses libgdx.

Pax Britannica

Yeah I actually just came across Pax last night. And I also setup libgdx last night! Haha

Are you trying to learn by example?

Not entirely, I’ll consult the documentation of whatever engine the RTS uses (if it uses one, which most of them do from what I’ve seen). But for the most part I guess you could say that.

http://www.puppygames.net/downloads/RevengeOfTheTitansSource.zip

Cas :slight_smile:

Zero-K is more advanced than Supreme Commander, and is open source (https://github.com/ZeroK-RTS/Zero-K)

However, it uses the (also open-source) Spring Engine (https://springrts.com/), which may not be very helpful if you’re looking for something ‘from scratch’.

There’s also 0 A.D. (https://play0ad.com/) if you’re looking for a more medieval-themed RTS that doesn’t use a streaming economy.

I’d like to stick to Java, I appreciate the links though. I’ve actually played 0 A.D, fun game!

Will check it out. Thanks.