有没有人知道一个很好的2D引擎的Java与精灵,动画和碰撞处理?
JGame is probably what you're looking for.
You might also want to check out this question ( https://stackoverflow.com/questions/293079/java-2d-game-frameworks ) that has a list of Engines out there and a bit of feedback on some of them. Hope it's helpful.
Greenfoot , from the makers of BlueJ , would be a good choice if it is your first time with game-development in Java. It is not even an easy-to-learn API, but also comes with a development-environment with fully integrated Greenfoot surface.
The game-environment is the greenfoot.World
while every element in the game is a greenfoot.Actor
instance. The Actor class provides a method for true bitmap-intersection ( greeenfoot.Actor.intersects()
).
Tangent: You'd be better off branching away from Java. The game development industry is C++/Python heavy, with C# in third.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.