Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

game-engine

bởi jhauga

Web & Frontend Development
409Lượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install jhauga/game-engine

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết