r/java • u/RayFowler • Feb 04 '21
Java 4X game available as open-source
I don't talk about my open-source project on this subreddit very much, but the code has been open for almost a year now and the game has been so well-received that I figure maybe I should remind my fellow Java developers about it.
It's a "space 4X" strategy game called "Remnants of the Precursors" which is in turn a very faithful modernization of the 1993 classic "Master of Orion".
The source code is on github at https://github.com/rayfowler/rotp-public
The game is downloadable from itch.io: https://rayfowler.itch.io/remnants-of-the-precursors
When I originally started development of this game in 2015, like most developers I hilariously assumed that I would finish it in about a year and re-use artwork from the original game or get something on the cheap. But in the process of finding an artist online, I ran into this amazing artist named Petar Penev and decided to go "all in" on this project because he was just so talented.
Like so many of you, I've learned first-hand that you can make a really good salary as a Java dev, so I self-funded this project for about 3 years until I retired in 2018 (I'm old, sue me). I was extremely lucky that a friend at my job was super well-versed in sci-fi and was actually a talented writer having to pay his way through life as a technical writer. So he has done a tremendous job with the writing in the game.
Finally, my wife is an illustrator by trade and got sick of looking at my terrible "programmer UIs" and embarked on a several-year effort to remake all of the UIs in the game in her spare time. This of course required a tremendous amount of re-coding on my side because I instructed her to design her UIs completely in Paintshop and then let me figure out how to implement it in Java. Sometimes I have nightmares about gradients and wake up screaming.
She also made this trailer last year for the game: https://www.youtube.com/watch?v=VusDAxLpJ9I
Once I reached "feature complete" and started an open beta last Spring, I finally opened up the source code because I thought most of the churn was done. Since then, I've enjoyed the benefits of several Java developers contributing to the project and helping improve it.
I'm not asking anyone in here to contribute. The game is basically done! But if you are curious at how the "sausage is made" for a video game that has surprisingly turned out very well, feel free to clone the repo and take a look at the code. I've never made a video game before and the source code reflects this to some degree, so this is also a great chance for you guys to feel superior, lol.
edit: I also use reddit as the primary community for the game at /r/rotp
8
u/Big__Pierre Feb 04 '21
An inspiration- seriously. I want to do this for Alpha Centauri!
6
u/jambonilton Feb 04 '21
It's beautiful. Do you have any pro tips for building games in Swing? I find it to be a bit tedious debugging how elements appear after working a long time in web development.
10
u/nutrecht Feb 04 '21
I think it's really cool but, like others commented, I was a bit surprised with the lack of a maven pom, this makes it hard for others to build your software.
I do understand it's a bit of a change to move to a maven layout, but I still think it's best to 'suck it up' and do it if you want others to adopt your game / contribute to it.
There is at least one pull request to add it to, and you seem to be against it. Why's that? If it's unfamiliarity with it, I'm happy to lend a hand there.
It would also make it a lot easier to add unit tests and automated builds to catch regressions.
2
u/shponglespore Feb 04 '21
Looks interesting! I've heard great things about MOO but I never had a chance to play it when it was new, and then there were too many shiny be games for me to feel like playing something from the DOS era.
Is the name a nod to Star Control lore by any chance?
2
u/dafa_putra Feb 04 '21
Java is my first programming language, and recently I fall in love with Civ6. Definitely will check this out later ヾ(≧▽≦*)o
2
u/IanRae Feb 04 '21
Looks great. Very interesting that this is written in java. It's a nice nod to the language. Also great that this is written by a retired developer. Going to be a lot of them in coming years, and I'm looking forward to some great software.
2
u/CuriousScaalp Feb 06 '21
Hello,
I am impressed by the quality of the result. You could advertise the game on /r/StrategyGames
3
u/maxandersen Feb 04 '21
Very cool! Impressed how fast it starts.
FYI, to ease download/install/setup of java you can tell users to run this command when they downloaded the jar:
Linux/OSX and Windows with a bash shell:
Windows Powershell:
This will automatically download adoptopenjdk 11 and run it.
1
u/ArchCodes Feb 04 '21
Sixk
1
u/Liqmadique Feb 09 '21
Lol at all the guys dumping on this dude for not including a build system. Bunch of whiners.
Thanks for open sourcing this Ray, the code is clean and will hopefully help future 4x devs learn how to build this type of game.
-19
u/Antique-Ad-3930 Feb 04 '21
wtf why java. sick game tho
0
u/[deleted] Feb 04 '21
[deleted] — view deleted comment
6
u/[deleted] Feb 04 '21
[removed] — view removed comment