Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: EngineService
Wraps FXGL's AchievementService, the engine service that watches registered achievements and unlocks them when their bound world property crosses the trigger value. Reached at runtime via fxgl.getAchievementService; obtain a wrapper via adopt. Achievements are registered through GameSettings before launch (see GameSettings.getAchievements) -- the service exposes only read-only inspection.
AchievementService (Ajo = null)
Creates an AchievementService wrapper. Empty by default; the (Ajo) form wraps an existing instance from fxgl.getAchievementService.
Ajo is an optional AussomJavaObject around an AchievementService.adopt (object Ajo)
Wraps an existing AchievementService AussomJavaObject.
Ajo is an AussomJavaObject around an AchievementService.A new wrapper.getAchievementByName (string Name)
Returns the registered achievement with the given name. Throws if no such achievement exists.
Name is the achievement name.An Achievement wrapper.getAchievementsCopy ()
Returns the entire registered-achievement list as a list of Achievement wrappers. Useful for building achievement UI that enumerates every achievement (locked + unlocked).
A list of Achievement wrappers.onInit ()
EngineService onInit lifecycle hook.
onMainLoopStarting ()
EngineService onMainLoopStarting lifecycle hook.
onGameReady (object PropertyMapObj)
EngineService onGameReady lifecycle hook with the world PropertyMap.
write (object BundleObj)
Persists achievement state into a Bundle.
read (object BundleObj)
Restores achievement state from a Bundle.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.