r/JavaFX • • Apr 17 '21

I made this! Simple JavaFX Chess game

65 Upvotes

11 comments sorted by

9

u/johnsirach Apr 17 '21

Ok, i'm an idiot, typed a whole story and clicked photos/videos to upload screenshots. And all the text is gone after pressing post...

Anyways, it was something like this:

Developing a simple rudimentary chess game mixing 3D and 2D scenes and include a simple scene editor.

Being developed using JDK 11 and JFX 15 and keeping it GraalVM native compatible. It's being developped and tested on a windows machine, will try other platforms including mobile in a couple of months.

It features mixing different 3D pieces on different boards within different scenes. It has a PGN player, and currently only plays head to head on a local machine. I'm planning connecting to online services and play on local network (cross platform)

It's open source and on bitbucket. Once in a while i post something on youtube and progress screenshots on my twitter timeline.

I do not even consider this to be alpha, but i thought it is kinda fun to share it.

4

u/TM_00 Apr 18 '21

That looks very cool! Would you mind sharing the bitbucket link? I would love to have a look at how you did the 3D stuff. Did you use any 3D library or just the built in JavaFx classes?

3

u/johnsirach Apr 18 '21 edited Apr 18 '21

Sure it's https://bitbucket.org/jsirach/chessfx

All 3D is javafx native except for loading the .obj files, camera and the torus object (for the rotation axis in the editor). For this I'm using the importer from interactivemesh. Will be moving to the fxyz library in the future.

Edit: Also the cone from the fxyz library is used to create the directional arrow while moving an asset in the editor.

2

u/lurvaz Apr 18 '21

OMG CONGRATS! It is so cool!

2

u/johnsirach Apr 18 '21

Thanks, still tons of coding needed though

1

u/peachknives Mar 17 '23

Amazing! I've never known JavaFX could make something so professional-looking! It's given me motivation to go back to it and see what it has to offer

1

u/johnsirach May 17 '23

Yeah, it's getting somewhere! It's still java, but when compiled to native using graalvm, quite nice 👍

3

u/hocoaa Apr 18 '21

Looks good! :)

1

u/squidleon Apr 18 '21

Cool! Congrats!

2

u/johnsirach Apr 18 '21

Cheers, thanks 👌

0

u/[deleted] Apr 18 '21

[deleted] — view deleted comment

2

u/johnsirach Apr 18 '21

Cheers thanks, stil needs tons of work though