Thorvg.janitor
An Asteroids-style arcade demo game showcasing the power of ThorVG.
Install / Use
/learn @thorvg/Thorvg.janitorREADME
Thor Janitor
<p align="center"> <img width="600" height="auto" src="https://github.com/thorvg/thorvg.janitor/blob/main/title.png"> </p>“Clean the Galaxy, One Sweep at a Time!"
By 2080, Earth's orbit has become a cosmic graveyard, a massive junkyard of space debris threatening the survival of humanity's spacefaring future. This is where you come in: the brave (if slightly underpaid) space janitor. Your enemies aren't fearsome alien warriors—they're just mountains of cosmic trash!<br /> <br /> You pilot a Thor Cleaning Ship, sweeping the orbit clean by blasting away these junk invaders. The more you clean, the safer and shinier Earth becomes. With your trusty ship, you'll blast through debris, protect humanity's future, and prove that even trash duty can make you a hero.<br />
<p align="center"> <img width="800" height="auto" src="https://github.com/user-attachments/assets/8a4bd16a-bb72-4b41-b007-eadc2220d1eb"/> </p> <p align="center"> <strong><a href="https://youtu.be/jdnnzmtHy9k">Watch the full video!</a></strong> </p>Build & Run
This program is built on the ThorVG engine. Please refer to the ThorVG repo to install it first. The recommended build option is
-Dloaders="svg,ttf,jpg"
Afer that, try build and execute the ThorVG Janitor!
$ make
$ tvggame
Key Instruction
- Arrow Key: Movement
- A : Shoot
- Esc : Exit
Combo System
You earn cleaning points for every piece of space junk you clear away. Sweep away the same type of trash consecutively to trigger combo bonuses, multiplying your score for an even shinier cleanup!
Features
- Designed as a demo app to showcase the performance of the ThorVG engine.
- Each enemy is composed of 86 particles, with up to ~300 enemies appearing on screen simultaneously.
- Includes a full-size background image (subtle halo glow effect, not distracting) and 4 layers of 100 star objects.
- At peak load, around 25,000 paint objects are rendered together.
- The player’s ship, missiles, and GUI texts feature real-time DropShadow effects, while zone outlines include real-time BlurEffects.
- Runs fully stable at 120+ FPS with the Software Renderer on 2K resolution.
Authors
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
