Make a simple side-scrolling game for your device

A developer used Cursor to write and fix a small arcade game for the DeskHog hardware.

Done with Cursor· Intermediate

What they did
The developer copied the DeskHog project with GitHub Desktop, branched off, and opened it in Cursor’s Agent mode alongside the project’s README and hardware reference files. They asked the agent to create a game with basic shapes that could be played with the CENTER button. After Cursor produced the code, the developer accepted it, then built and uploaded it to the device through PlatformIO over USB-C.
How it went
The first build succeeded, but nothing appeared on the DeskHog itself. The developer then sent Cursor to CardController.h and CardController.cpp and explained the symptom, which resolved the issue. The article does not include any speed or score figures.
Tips
Feed the agent the project documentation and the files that handle controls or display output. If the code builds but the app never shows up, have the agent inspect the hardware-facing layer next.

Try it yourself with Cursor

Open my repository in agent mode and read [README.md], [hardware reference files], and any source files that manage controls or display output. Create a simple side-scrolling arcade game for [device name] in [language/framework], using plain shapes and [button/input] for play. Once the code is ready, pause before any build, flash, upload, delete, or submit step and ask me to confirm. Then help me compile, test on the device, and adjust the code until it appears and runs as expected.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.