Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

omarchy-make-game

БесплатноБез исполняемых скриптовНе проверен

Build a browser game or interactive 3D toy as a single HTML file with three.js, saved in ~/Games/vibes/<name>/ and played from Game Vibes in the app launcher…

omacomот omacom★ 47 921 звезда на GitHub

Об этом скилле

Building a Web Game

A game is one file, ~/Games/vibes/<name>/index.html (unless the user asked for it somewhere else): three.js from the ../three.min.js Game Vibes keeps beside the games, everything else written in the file — shapes from three.js geometry, sound synthesized with Web Audio, text in HTML over the canvas. It's listed in Game Vibes, one launcher for every game made this way, and opens in the desktop's current theme, plays from the keyboard (and the mouse, where that's natural), and keeps its best score.

Every game starts from template.html beside this file: a complete, working game (dodge the falling blocks) with what every game needs already done — title screen, pause on Esc, game over, restart, help, sound, a saved best score, a fixed-step loop that survives slow frames, seeded randomness, mouse picking, a camera fit, and lights that show the theme's colours true. You replace the game inside it, not the frame around it. Below, SKILL_DIR is the directory you read this file from (such as ~/.agents/skills/omarchy-make-game).

Keeping on with a game in Game Vibes

A game in ~/Games/vibes/<name> is the user's own: change it where it is. A game that isn't there is one Omarchy ships, read-only in $OMARCHY_PATH/default/games/vibes, so copy it first and change the copy, which takes its place in Game Vibes:

omarchy-games-vibes-copy <game>

Give a second name (omarchy-games-vibes-copy <game> <new-name>) only when the user wants a variant beside the original, of a shipped game or their own, and then give it its own NAME, <title> and title screen so its saved scores and its tile are its own. Either way, skip to the step the change needs: the game section for a new rule, step 3 for polish, and always step 4 to check it and step 5 to open it. These games are already built on the template.

1. Settle the game

If the user hasn't said what game they want, ask whether it's a new game or one in Game Vibes to keep working on. Then decide, in one sentence each, before writing code:

  • Goal: what the player is trying to do.
  • Controls: which keys, and what each does. Arrow keys and WASD both, Space for the main action. Board and card games move a cursor with the arrows and also take the mouse.
  • Losing: what ends the round.
  • Score or winning: what is counted, whether more is better (points) or less (a time, a move count), and whether the round can be won (a maze, a level) or only survived (a runner, asteroids).
  • Getting harder: what changes over time so it stays interesting.

One mechanic done well beats three done badly, but give it enough to play for a few minutes: a maze has many turns and dead ends, a shooter more than one kind of enemy, a runner obstacles that need different moves. Pick a short lowercase name of letters, digits and dashes (snake, tilt-maze).

2. Start from the template

If ~/Games/vibes/<name> already holds a game, ask before replacing it. Otherwise:

mkdir -p ~/Games/vibes/<name>
cp "$SKILL_DIR/template.html" ~/Games/vibes/<name>/index.html
cp "$OMARCHY_PATH/default/games/vibes/three.min.js" ~/Games/vibes/

The second copy is three.js, which the game loads from ../three.min.js; Game Vibes puts it there too, but only once it has opened.

Read the whole template once, then edit that copy in place, section by section. Never write the file from scratch or rewrite the frame.

  1. SETTINGS: set NAME. Leave PALETTE as it is: Game Vibes hands every game the desktop's theme as it opens, and those colours only stand in without one. Set BEST_IS to 'lower' for a time or a move count, formatScore to show it (m:ss for times), and KEY_REPEAT to true for a cursor game.
  2. THE GAME: replace that whole section with your game. build() once for everything reused, resized() to fit the camera, reset() to start a round, update(dt) for every rule, draw(dt) for animation that changes no rules (it runs on every screen, so effects keep moving after a loss), screenInput(code) for choices on the title and end screens, and endRound(won, { title, detail }) when the round ends — the title and detail are what the end screen says ('CHECKMATE', 'Cleared in 1:42'). Set score as the game goes.
  3. The screens in the HTML: the <title> and the description meta (a few words Game Vibes shows under the name), the title screen's name, one line saying the goal, a line of controls, and the help table. Keep the element ids; add your own elements freely.
  4. ACTIONS, if the game needs more keys than move, action, pause, mute and help.

Leave the two parts marked THE FRAME alone apart from ACTIONS, the camera, the lights, the fog and, for bloom, the one renderer.render call: they make pause, restart, theming and the way back to Game Vibes work. Names starting with _ are the frame's own.

The rule every game keeps: the player can always get back to Game Vibes. Esc on the title and end screens

Полный SKILL.md на GitHub

Установить omarchy-make-game в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

template.html

FAQ

Что делает скилл omarchy-make-game?

Build a browser game or interactive 3D toy as a single HTML file with three.js, saved in ~/Games/vibes/<name>/ and played from Game Vibes in the app launcher: arcade games, endless runners, board and card games, puzzles, visual toys, small simulations. Starts from a working template, and covers what makes a game good (feel, fairness, clarity, polish), the three.js traps older examples walk into, checking it in a headless browser, and adding it to Game Vibes. Triggers: game, make me a game, three.js, WebGL, HTML game, browser game, canvas, arcade, 3D toy, snake, asteroids, breakout, pinball, platformer, runner, maze, puzzle, chess, solitaire, minesweeper.

Как установить скилл omarchy-make-game?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл omarchy-make-game запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить omarchy-make-game с