Releases: icela/FriceEngine
Releases · icela/FriceEngine
Add new APIs, moved FLog
Change log:
org.frice.game.utils.message.log.FLog
->org.frice.game.utils.message.FLog
- Add text size rendering, use
text.setTextSize(Int)
- Fix bug of logging
- Add
greenify
,redify
,bluify
for bothBufferedImage
(inColorUtils
) andFriceImage
(as methods)
New way to download:
Bug fixes and new features
Fixed the anti-aliasing bug, added a memory-friendly boolean array.
New way of starting game, new APIs, removed some APIs
The new way of starting game:
class MyGame extends Game {
public static void main(String[] args) {
launch(MyGame.class);
}
}
The new APIs:
FLog.setLevel(FLog.VERBOSE);
FLog.setLevel(FLog.DEBUG);
FLog.setLevel(FLog.INFO);
FLog.setLevel(FLog.WARN);
FLog.setLevel(FLog.ERROR);
getMouse().getX() / setX()
getMouse().getY() / setY()
Yes, you can change the position of the mouse now.
Add generics for Database query, removed some bad code
It's actually some refactoring, only one api added.
Some optimization.
Change design: the concept of `layers`
Now we have
addObject(layer, ...objects)
to control the layers
Old APIs are still working, and not marked deprecated yet, they're defaultly added to the first layer.
You can specify how many layers you want in the constructor.
An example is also provided. Part of the new apis are shown.
Modifications and improvements
Changed one API:
- The constructor of ShapeObject, the
id
parameter, is moved to the last one. - The second parameter of FObject.addCollider() is now
() -> Unit
. For Java users, please returnUnit.INSTANCE
.
APIs added, refactor code
- Use @jvmoverloads instead of hand written constructors
- Add two new apis for collide and animations
- Add apis to check collisions
The standalone jar and a Demo file is included
Add gradle support
Add gradle support
v0.5.4 add gradle support
修复历史遗留问题 (fix bugs
fix bugs for DSL (mutable variables)