跳到正文
TakoAPI
返回技能列表

game-engine

由 jhauga 提供

Web & Frontend Development
409下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Expert skill for building web-based game engines and games using HTML5, Canvas, WebGL, and JavaScript.

描述

该技能的功能

Covers building web-based games and game engines using HTML5 Canvas, WebGL, and JavaScript. Includes starter templates and workflows for 2D and 3D game types, from platformers to maze games. Supports physics, collision detection, audio, multiplayer, and game publishing.

Combines engine architecture, ready-to-use templates, and framework-specific guidance (Phaser, Three.js, Babylon.js) in one place instead of requiring separate references for each concern.

何时使用

  • Building a browser-based platformer from scratch
  • Adding collision detection to an existing canvas game
  • Setting up multiplayer with WebRTC
  • Publishing and distributing a web game
  • Implementing touch and gamepad controls for mobile

示例工作流

输入

User asks: Build a basic 2D breakout-style game in the browser

智能体
  1. 1

    Creates an HTML file with a canvas element and gets the 2D rendering context

  2. 2

    Sets up a requestAnimationFrame game loop with delta time

  3. 3

    Defines paddle, ball, and brick objects with position and velocity properties

  4. 4

    Implements AABB collision detection between the ball and bricks/paddle

  5. 5

    Adds keyboard controls, scoring, and win/lose conditions

输出

A self-contained HTML file with a working breakout game running in the browser

安装

clawhub install jhauga/game-engine

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接