Dragon Fire
by ASIF KHAN😎
Check out "Dragon Fire" by ASIF KHAN😎 - featuring Canvas API, Sprite Store, Sprite Manager and more. Try this Snapchat Lens on Easy Lens.
Features
- Canvas API: Creates a colorful fantasy sky and distant mountains as a procedural texture displayed behind the game sprites.
- Sprite Store: Core gameplay sprite textures. The dragon and fireball face right; both enemy sprites face left; spellburst is centered.
- Sprite Manager: Runs the dragon, enemies, fireballs, collision detection, and animated spellbursts in screen space.
- Touch Events: Captures finger or mouse drags to steer the dragon vertically without Snapchat swipe interference.
- UI Progress Bar: Dragon health bar at [0.35, 0.105], width 0.55 and height 0.04; paired with the HP label to its left.
- UI Button: Primary Fire control at [0.80, 0.84] with scale 0.8, intentionally clear of the play field and HUD.
- UI Button: Centered Play Again control at [0.50, 0.62], scale 0.8; it appears only after Game Over.
- Text On Screen: Dynamic score counter in the top-right.
- Text On Screen: Static HP label aligned with the health bar in the top-left.
- Text On Screen: Brief on-screen instruction for vertical dragging and shooting.
- Text On Screen: Centered Game Over and final-score display, shown only after health runs out.
- Sound: Short magical fireball cast effect, played on successful shots.
- Sound: Punchy magical burst effect, played when a fireball defeats an enemy.
- Sound: Short descending arcade cue, played once when the run ends.