开发者

Is JavaFx suitable for creating online multiplayer board/card games?

开发者 https://www.devze.com 2022-12-23 23:27 出处:网络
In JavaFx i can easy create animations, moving pieces etc., but as far as i see there is better to write program logic and communication in java. Worst i see at the moment is calling javafx part as a

In JavaFx i can easy create animations, moving pieces etc., but as far as i see there is better to write program logic and communication in java. Worst i see at the moment is calling javafx part as a result of data incoming from server. Is there any convenient way to do it or its better to change to other technology (flex, qt?) assuming it is not important if program will run in browser or outside as a standalone application?

I just started to learn javafx but can drop it and move to other technology and consider c++ + wxWidgets o开发者_JAVA技巧r Qt which im more comforatable with.


JavaFx is certainly appropriate for that, but for the programming logic, the idea is to do it in Java (JavaFx is designed to work well calling java methods and classes). If you are not comfortable with Java, then it might not be the best choice - it depends on what you are trying to accomplish.

JavaFx is really Sun's (now Oracle's) last best hope of getting some traction on Java on the desktop (I say that because if this fails, I don't see them trying again, but who knows?). It isn't going that well, but if you like JavaFx, and want the distribution improvements that come having executable that doesn't need to be compiled separately for each platform, then it is certainly a viable option.


The underlying technology is probably less important than just being able to make the game. If you're going to distribute it there might be some question, but at the end of the day no one framework (if you will) is definitively better than any other for the general task of "making games."

Using what you know, you'll be that much more likely to finish the project. The pattern I see far too frequently is that people spend too much time deciding between languages and APIs and all of that when any number of them are Good Enough. Once you finish, porting to another technology should be straight forward, if you even need to in the first place.

Good luck.


I don't actually see why this should be that hard. It's pretty easy to use Java classes and JavaFX, and if performance really doesn't matter, you probably could write even the application logic in JavaFX (remember, it's a full-blown programming language). Maybe posting this question in the official Su... err, Oracle forums will help you further, as there are always some people involved in developing JavaFX around.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号