Skip to content

Releases

v0.2.0-rc.1

v0.2.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Oct 03:12
d93b966

Added

  • About. Settings has an About button. It shows the version, the licence (GPL-3.0-or-later), where the source is and which tag or commit the game was built from, and has a button for the text of the game's licence, the third-party notices and the font licence, which scroll with the finger, the wheel or the arrow and page keys.

  • The board has its art. The board is a framed teal checkerboard with a hard shadow. The snake is striped coral and cream, the head has eyes that look ahead and a tongue, the food is a blueberry with a leaf that bobs up and down, and the bonus item is gold. It follows the Toybox Pixel design. The window scales the board in whole-pixel cells, so the edges stay sharp.

  • The board is drawn. The window now shows the game: the snake with its head, the food and the bonus item on a square board that fits the window. Together with the previous change, the game can be played with the keyboard. It is plain rectangles in placeholder colours, and the art follows.

  • Title, pause and game over screens. The game now opens on a title screen where you choose Easy or Classic and press Play. Portals and Hot potato are listed with the score that unlocks them in Classic (2,000 and 3,000) and cannot be started yet. Pausing shows a dialog with Resume, Restart and Quit to menu. When a game ends, a screen shows the final board, your score against your best for that mode and how many points short you were, and offers Play again or Menu. The arrow keys move between the buttons and Enter presses them. The best scores last until the game is closed; saving them comes with the leaderboard.

  • The window uses the Toybox Pixel colours and the Pixelify Sans font. The background, the score and the messages follow the design tokens, and the font is bundled with the program, so it looks the same on every system. The board keeps its placeholder colours until the board art follows.

  • The game can open the sound device. The game now links miniaudio and has an audio output that plays the synthesiser's samples on the default device, or stays silent on a machine without one. Nothing asks it to play yet; the effects and music, and their toggles, come next.

  • The game has a sound library. A new portable library, libs/audio, makes sound effects (eat, bonus, crash, button, start, new best) and two looping tunes from square, triangle and noise voices, with no sample files. It does not play anything yet: the game will ask it for samples in the next step.

  • The core library holds the game state, frame timing and logging of the old code. TimingLoop keeps the 60 Hz frame time, Logger and StreamLogger replace the debug-output logger with a prefix for each level, and Game holds the state and frame counter. The main window size and multisampling are constants in WindowSettings.

  • On a phone the game buzzes, and goes quiet when you put it away. Eating gives a light tap and a crash a harder knock on Android and iOS (the package asks for the vibrate permission, which Android grants at install and never asks you about). The music and the sounds stop when the game is put away and come back with it. The game can read the accelerometer through Qt Sensors, which the tilt controls use. A computer feels and changes nothing.

  • The window counts frames at 60 Hz and is translated. A view-model ticks the game while it runs and QML shows the frame count. The user interface is available in English and Simplified Chinese, with a test that every language has every string, none is unfinished and the placeholders match.

  • The game has an input library, starting with keys, gamepads and a shared steering rule. A new portable library, libs/input, maps the arrow keys, W A S D and the gamepad d-pad to directions, and Space or Start, Esc or Select or B, and Enter or A to pause, menu and confirm. A direction selector turns two axis values into at most one direction, with a dead band and a hold against flicker. The left stick uses it, and tilt will use it next.

  • A swipe anywhere on the screen can steer, in the input library. The swipe recogniser turns a finger's travel into a direction as soon as it has gone far enough, without waiting for the finger to lift, and one stroke can turn the snake more than once. A tap gives nothing.

  • Tilting the device can steer, in the input library. The tilt processor smooths accelerometer readings, treats the pose the player holds as neutral, and sets a direction when the device is tipped 18 degrees (it lets go below 12, and on a diagonal the axis in control keeps priority until the other is 5 degrees larger). Sensor readings come through a small interface, and a fake source plays back recordings, so tilt is tested without a device.

  • The project starts as snake. The repository is created from the C++23 template and renamed, with the library, application, build presets and CI of the template in place.

  • The title plays itself, and the snake looks for food. The title screen now shows a game playing itself in a frame above the modes. In any game, the snake opens its mouth when food is a few cells straight ahead.

  • The snake dies with a show. When the snake crashes it flashes white twice, then its pieces pop off one by one from the tail with a puff each, leaving the head with crossed-out eyes; the end of the game shows when that is over, and a key or a tap skips it. With reduced motion on there is no flashing and no shake, and the pieces still pop.

  • Eating and crashing have more life. Eating throws a small burst of specks from the food (a bigger one in gold for the bonus item) and the points rise from where it was, and a crash gives the board a short shake. With reduced motion on, the board does not shake.

  • The game speaks French, Spanish and German. Every screen is translated, and the game shows the language of the computer or phone, or the one named with --language (for example snake --language de). The translations are made by machine and have not been read by someone who speaks the language. Long words no longer run out of buttons and cards: labels and headings are set smaller to fit, and the detail under a mode wraps to two lines.

  • The game speaks Hebrew and Yiddish, and reads from right to left. In these languages the screens are mirrored: the back button, the title's buttons, the switches, the score and the best, and the leaderboard lines swap sides, and text starts on the right. The board, the arrow keys and the letters of the name stay as they are. The translations are made by machine and have not been read by someone who speaks the language; Yiddish especially needs a reader.

  • The game speaks Japanese. Every screen is translated, mostly in hiragana and katakana so that a child can read it, and the Chinese and Japanese text is drawn in Noto Sans fonts that the game carries, cut down to the characters it uses. The translation is made by machine and has not been read by a Japanese speaker.

  • The game can be built for Android and iOS. There are presets for an Android package (android-arm64-debuggable, android-arm64-release) and an unsigned iOS bundle (ios-release), an icon, a manifest that asks for no permission, and two workflows that build both and look inside what they make. The phone controls (tilt, swipe and a d-pad), the buzz and pausing when the phone is put away are separate changes below. Nothing has run on a device.

  • Name entry and the leaderboard. A game that makes the top 10 now offers Save score on the game over screen. Name entry shows the place the score will take, twelve name slots, your last three names as one-tap shortcuts and a letter grid; the keyboard types the name directly (Backspace takes a letter off, Enter saves). Saving opens the leaderboard on that mode with your line in coral. The title has a Leaderboard button, and the leaderboard has a tab for Easy and Classic, medal tiles for the first three places and a Play button. Menu on the game over screen lets an unsaved score go.

  • The product requirements and the Toybox Pixel design are in the repository. docs/prd.md holds the rules, controls, modes, scoring and acceptance criteria for version 1, and docs/design/ holds the design tokens, screenshots, clickable screen mock-ups and the Pixelify Sans font files with their licence.

  • The game can hold player names and leaderboards. A new portable library, libs/profile, checks leaderboard names (up to 12 letters A to Z and spaces, kept in capitals), ranks scores in a top 10 for each mode where the earlier entry wins a tie, and remembers the three most recent names. Saving the lists to disk follows in later changes.

  • Scores are saved. The game now keeps its leaderboards, recent names and unlocked modes in a file in your data folder, so they last between runs and updates. A damaged file is set aside as save.snk.damaged and the game starts afresh; a file written by a newer version is left alone. A game that makes the top 10 now waits for a name; the name entry and leaderboard screens come next.

  • Leaderboards, names, settings and unlocks have a save format. The profile library turns them into a small, versioned block of bytes (the same on every platform, with a checksum) and reads it back. A file that is cut short, damaged or written by a newer version of the game is reported instead of being half read, and later versions of the game will still be able to open this one.

  • The game has a settings model and mode unlocks. The profile library holds the settings the player can change (controls, inverted axes, sound, music, reduced motion) and the modes that open at a score: Portals at 2,000 points in Classic and Hot potato at 3,000. An unlock stays open for good, even if the leaderboard is cleared.

  • Release packages contain the Qt libraries. The install step copies the Qt libraries, plugins and QML modules next to the executable (a ...

Read more

v0.1.0-rc.2

v0.1.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Oct 08:19
f3102ae

Added

  • The core library holds the game state, frame timing and logging of the old code. TimingLoop keeps the 60 Hz frame time, Logger and StreamLogger replace the debug-output logger with a prefix for each level, and Game holds the state and frame counter. The main window size and multisampling are constants in WindowSettings.

  • The window counts frames at 60 Hz and is translated. A view-model ticks the game while it runs and QML shows the frame count. The user interface is available in English and Simplified Chinese, with a test that every language has every string, none is unfinished and the placeholders match.

  • The project starts as snake. The repository is created from the C++23 template and renamed, with the library, application, build presets and CI of the template in place.

  • Release packages contain the Qt libraries. The install step copies the Qt libraries, plugins and QML modules next to the executable (a snake.app bundle on macOS), so a package runs on a machine without Qt, and installs the licence. A dry run of the packaging can be started from a branch.

  • A Qt Quick window opens. The application starts a Qt Quick window of 1024 by 768 pixels with 4x multisampling, and --smoke-test makes it exit after the first frame so CI can start it without a display. Qt 6.12 is installed in CI from the version in .github/toolchain-versions.json, and a TSan suppressions file covers the uninstrumented Qt libraries.

Changed

  • The project builds with the floor compilers. CI installs GCC 16 and Clang 23 on Ubuntu 26.04, builds with MSVC 14.51 or newer and with Apple Clang from Xcode 26.6, and tries Xcode 27 in a leg that cannot fail the run. The versions are pins in .github/toolchain-versions.json.

  • Log level enumerators carry a LEVEL_ prefix. LogLevel::ERROR and LogLevel::DEBUG clash with macros in the Windows headers and in many build setups, so code that included windows.h before snake/logger.hpp would not have compiled.

  • The macOS bundle has an identifier. snake.app now identifies itself as io.github.iainchesworthlabs.snake and is named Snake in its property list.

Fixed

  • A release cannot go out with placeholder notes. The Release workflow now checks the notes in its first job. A final release needs a section for its version in CHANGELOG.md, and a pre-release uses the fragments in changelog.d/ when there is no section. The shared workflows are pinned to icl-common-infra v0.1.7.

v0.1.0-rc.1

v0.1.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Oct 05:35
51e0f24

Added

  • The core library holds the game state, frame timing and logging of the old code. TimingLoop keeps the 60 Hz frame time, Logger and StreamLogger replace the debug-output logger with a prefix for each level, and Game holds the state and frame counter. The main window size and multisampling are constants in WindowSettings.

  • The window counts frames at 60 Hz and is translated. A view-model ticks the game while it runs and QML shows the frame count. The user interface is available in English and Simplified Chinese, with a test that every language has every string, none is unfinished and the placeholders match.

  • The project starts as snake. The repository is created from the C++23 template and renamed, with the library, application, build presets and CI of the template in place.

  • Release packages contain the Qt libraries. The install step copies the Qt libraries, plugins and QML modules next to the executable (a snake.app bundle on macOS), so a package runs on a machine without Qt, and installs the licence. A dry run of the packaging can be started from a branch.

  • A Qt Quick window opens. The application starts a Qt Quick window of 1024 by 768 pixels with 4x multisampling, and --smoke-test makes it exit after the first frame so CI can start it without a display. Qt 6.12 is installed in CI from the version in .github/toolchain-versions.json, and a TSan suppressions file covers the uninstrumented Qt libraries.

Changed

  • The project builds with the floor compilers. CI installs GCC 16 and Clang 23 on Ubuntu 26.04, builds with MSVC 14.51 or newer and with Apple Clang from Xcode 26.6, and tries Xcode 27 in a leg that cannot fail the run. The versions are pins in .github/toolchain-versions.json.