简单的Java游戏图形界面

发布于 2024-12-23 23:12:55 字数 159 浏览 2 评论 0原文

我正在开发一个java游戏项目,想知道是否有人对如何处理它的图形部分有任何好的建议。我的游戏将是一款棋盘游戏(类似于大富翁),我希望至少在屏幕上显示类似大富翁的棋盘。之后,我希望能够动态调整游戏块的棋盘位置(我不需要移动动画,但这会很酷)

任何人都知道对简单图形界面有用的库,例如像这样?

I am working on a game project in java and was wondering if anyone had any good advice for how to go about the graphical portion of it. My game will be a board game (similar to monopoly) and I would like to at least display a Monopoly-like board to the screen. After this, I would like the ability to dynamically adjust the board location of the game pieces (I don't need to have animations for the movement, but that would be cool)

Anyone know of any libraries that are useful for simple graphical interfaces such as this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一杯敬自由 2024-12-30 23:12:55

有人知道对这样的简单图形界面有用的库吗?

请参阅 AWTSwing。虽然 AWT 是“上个千年”的 GUI 工具包,所以我会使用 Swing,它增加了额外的功能。

Anyone know of any libraries that are useful for simple graphical interfaces such as this?

See AWT & Swing. Though AWT is the 'last millennium' GUI tool-kit, so I'd use Swing which adds extra abilities.

酒浓于脸红 2024-12-30 23:12:55

如果您刚接触 Java 图形,那么 swing 将是您最好的选择之一,并且如果您想了解有关 swing 和图形的更多信息,请访问此处:Swing Graphics 另外,我建议远离 Java2D,直到您觉得自己已经准备好从事该工作。哦,这是 AWT 图形的链接,这就是我现在正在使用的: 图形 (Java SE 7) 如果您想查看示例,请告诉我,我也可以添加该示例。
编辑
Swing 与 AWT 相对相似,除了 Swing 具有更多功能之外,AWT 可能是最简单的开始形式,并且拥有大多数(如果不是全部)完成项目的工具,希望这会有所帮助。

swing would be one of your best options if your new to graphics in java, and if you would like to know more about swing and graphics go here: Swing Graphics Also I would recommend staying away from Java2D until you feel you are ready to work on that. Oh, here is a link for AWT graphics, which is what i'm using right now: Graphics (Java SE 7) Let me know if you would like to see an example and I can add that in too.
EDIT
Swing is relatively similar to AWT, apart from the fact that swing has more capabilities, AWT is probably the simplest form to start out with, and has most if not all of the tools to complete your project, hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文