A five-screen game with a clear loop
The kit contains Arcade home, Play Snake, How to play, Game settings and Your run. The home screen gives the game an identity and an obvious start action. The play screen contains the real game board. Rules explain the controls; settings select the pace; results show the score and offer another run.
The game uses original vector artwork and native Flutter rendering. No remote game engine, image service or account is required to try the local loop. The same game rules are included in exported source, so the kit is useful beyond a static game interface demonstration.
Play with keyboard or touch
- Open the Moss Snake Arcade template.
- Switch from Design to Preview.
- Choose Play Snake, then Start run.
- Turn with arrow keys or WASD on desktop.
- On touch screens, swipe the board or use the direction buttons.
- Pause with the control or the space bar.
The snake moves automatically after a run starts. Collect coral dots to increase its length and score. Avoid the board boundary and your own body. A direct reversal is rejected, so tapping left while moving right does not turn the snake into itself in one step.
Understand scoring, collision and pause
Each collected dot adds 10 points. Food is placed in an unoccupied cell. Moving into a wall or an occupied body cell ends the run; moving into a tail cell that is being vacated is handled by the game rules. A paused game does not continue stepping until resumed.
The result screen receives the completed score and updates the session best. These values belong to the running app session. There is no online leaderboard or account synchronization. Leaving the active application pauses a running game so that an unseen board does not keep advancing.
Choose a pace and customize the presentation
Open Game settings to choose Relaxed, Normal or Fast before starting a new run. Relaxed gives more time for a turn, Normal is the standard interval, and Fast increases the challenge. The game widget reads the selected difficulty from text state.
In Design, replace the arcade name, rules copy and supporting artwork. Use Inspector to check scoreState, bestState, difficultyState and the completion action. Keep these compatible bindings when asking the copilot to restyle the game. A beautiful result screen is not useful if the completed score no longer reaches it.
Export the complete Flutter game
Choose Export ZIP to download the project. Along with the screen source, the archive includes the shared game engine and renderer used by the generated application. It also includes the setup README, tests, pubspec, routes and editable project JSON backup.
Unzip it into a new directory and follow the Flutter export steps. Install your target platform toolchain before building an installable package. The browser downloads source; it does not compile an APK or IPA. Test keyboard, touch, pause and collision behavior again after changing the engine or board layout.
Useful extensions after the basic game works
Good next projects include a locally persisted best score, a sound toggle, an accessible high-contrast board, selectable color themes or additional difficulty settings. Implement persistence and platform-specific features in your exported source, with tests for their behavior.
An online leaderboard needs a backend, validation and abuse protection; it is not supplied by a local score label. Keep the first extension small enough to verify. The AI app agent guide explains how to ask for a bounded interface change, while the workspace documentation covers manual state and action editing.