gpt4 book ai didi

java - 库或框架的建议?

转载 作者:太空宇宙 更新时间:2023-11-04 08:44:20 25 4
gpt4 key购买 nike

我计划将车辆交通模拟作为我的本科项目。我的计划是模拟一个区域内车辆的移动。在开始任何编码之前,我想知道我可以使用的任何 java 2d 库或框架(例如:游戏库),提前致谢。

最佳答案

您可以检查这些链接,看看它们是否可以帮助您:

Java2d

JGame :

JGame is an open source 2D game engine that runs on any Java 1.2+ JRE platform (with optional OpenGL enhancements through JOGL), as well as the mobile J2ME (CLDC1.1/MIDP2.0) platform. It provides a very high-level framework for developing "classic" type arcade games. It is based on sprites with automatic animation and collision detection, a tile-based background with easy sprite-tile interaction facilities, and high-level game state and game sequence facilities. JGame games can be run in a variety of ways without requiring any changes in the code: regular applications, webstart, applets, or MIDlets. Graphics are scaled automatically to fit any screen size, from the smallest mobile device to full-screen desktop PC. JGame uses 2D graphics acceleration where available, but using OpenGL enables better graphical quality.

LWJGL

The Lightweight Java Game Library (LWJGL) is a solution aimed directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. LWJGL provides developers access to high performance crossplatform libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D sound. Additionally LWJGL provides access to controllers such as Gamepads, Steering wheel and Joysticks. All in a simple and straight forward API.

Slick

Slick2D is a simple set of tools wrapped around the LWJGL OpenGL binding for Java. It's aims are as follows:

  • Provide a simple 2D API
  • Make transition from Java2D to OpenGL easier
  • Enable distribution via WebStart without the complexity
  • Provide the tools required for most simple games out of the box
  • Extensible framework for flexibility
  • Mix and Match - you use what you want, nothing is enforced.
  • Help with rendering, sound, input, collision and anything else we can think of.

以及来自维基百科的游戏引擎列表: http://en.wikipedia.org/wiki/List_of_game_engines

关于java - 库或框架的建议?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4644064/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com