Skills Plugins MCP Prompt Model 博客 我的中心
コンテンツ制作 #javascript #web #game

game-engine

Expert skill for building web-based game engines and games using HTML5, Canvas, WebGL, and JavaScript. Use when asked to create games, build game engines, implement game physics, handle collision detection, set up game loops, manage sprites, add game controls, or work with 2D/3D rendering. Covers techniques for platformers, breakout-style games, maze games, tilemaps, audio, multiplayer via WebRTC, and publishing games.

DeepseekModel キュレーション済みスキル 品質 優秀 · 90 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=github-awesome-copilot-skills-game-engine-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name game-engine description Expert skill for building web-based game engines and games using HTML5, Canvas, WebGL, and JavaScript. Use when asked to create games, build game engines, implement game physics, handle collision detection, set up game loops, manage sprites, add game controls, or work with 2D/3D rendering. Covers techniques for platformers, breakout-style games, maze games, tilemaps, audio, multiplayer via WebRTC, and publishing games. Game Engine Skill Build web-based games and game engines using HTML5 Canvas, WebGL, and JavaScript. This skill includes starter templates, reference documentation, and step-by-step workflows for 2D and 3D game development with frameworks such as Phaser, Three.js, Babylon.js, and A-Frame. When to Use This Skill Building a game engine or game from scratch using web technologies Implementing game loops, physics, collision detection, or rendering Working with HTML5 Canvas, WebGL, or SVG for game graphics Adding game controls (keyboard, mouse, touch, gamepad) Creating 2D platformers, breakout-style games, maze games, or 3D experiences Working with tilemaps, sprites, or animations Adding audio to web games Implementing multiplayer features with WebRTC or WebSockets Optimizing game performance Publishing and distributing web games Prerequisites Basic knowledge of HTML, CSS, and JavaScript A modern web browser with Canvas/WebGL support A text editor or IDE Optional: Node.js for build tooling and local development servers Core Concepts The following concepts form the foundation of every web-based game engine. Game Loop Every game engine revolves around the game loop -- a continuous cycle of: Process Input - Read keyboard, mouse, touch, or gamepad input Update State - Update game object positions, physics, AI, and logic Render - Draw the current game state to the screen Use requestAnimationFrame for smooth, browser-optimized rendering. Rendering Canvas 2D - Best for 2D games, sprite-based rendering, and tilemaps WebGL - Hardware-accelerated 3D and advanced 2D rendering SVG - Vector-based graphics, good for UI elements CSS - Useful for DOM-based game elements and transitions Physics and Collision Detection 2D Collision Detection - AABB, circle, and SAT-based collision 3D Collision Detection - Bounding box, bounding sphere, and raycasting Velocity and Acceleration - Basic Newtonian physics for movement Gravity - Constant downward acceleration for platformers Controls Keyboard - Arrow keys, WASD, and custom key bindings Mouse - Click, move, and pointer lock for FPS-style controls Touch - Mobile touch events and virtual joysticks Gamepad - Gamepad API for controller support Audio Web Audio API - Programmatic sound generation and spatial audio HTML5 Audio - Simple audio playback for music and sound effects Step-by-Step Workflows Creating a Basic 2D Game Set up an HTML file with a <canvas> element Get the 2D rendering context Implement the game loop using requestAnimationFrame Create game objects with position, velocity, and size properties Handle keyboard/mouse input for player control Implement collision detection between game objects Add scoring, lives, and win/lose conditions Add sound effects and music Building a 3D Game Choose a framework (Three.js, Babylon.js, A-Frame, or PlayCanvas) Set up the scene, camera, and renderer Load or create 3D models and textures Implement lighting and shaders Add physics and collision detection Implement player controls and camera movement Add audio and visual effects Publishing a Game Optimize assets (compress images, minify code) Test across browsers and devices Choose distribution platform (web, app stores, game portals) Implement monetization if needed Promote through game communities and social media Game Templates Starter templates are available in the assets/ folder. Each template provides a complete, working example that can be used as a starting point for a new project. Template Description paddle-game-template.md 2D Breakout-style game with pure JavaScript 2d-maze-game.md Maze game with device orientation controls 2d-platform-game.md Platformer game using Phaser framework gameBase-template-repo.md Game base template repository structure simple-2d-engine.md Simple 2D platformer engine with collisions Reference Documentation Detailed reference material is available in the references/ folder. Consult these files for in-depth coverage of specific topics. Reference Topics Covered basics.md Game development introduction and anatomy web-apis.md Canvas, WebGL, Web Audio, Gamepad, and other web APIs techniques.md Collision detection, tilemaps, async scripts, audio 3d-web-games.md 3D theory, frameworks, shaders, WebXR game-control-mechanisms.md Touch, keyboard, mouse, and gamepad controls game-publishing.md Distribution, promotion, and monetization algorithms.md Raycasting, collision, physics, vector math terminology.md Game development glossary game-engine-core-principles.md Core design principles for game engines Troubleshooting Issue Solution Canvas is blank Check that you are calling drawing methods after getting the context and inside the game loop Game runs at different speeds Use delta time in update calculations instead of fixed values Collision detection is inconsistent Use continuous collision detection or reduce time steps for fast-moving objects Audio does not play Browsers require user interaction before playing audio; trigger playback from a click handler Performance is poor Profile with browser dev tools, reduce draw calls, use object pooling, and optimize asset sizes Touch controls are unresponsive Prevent default touch behavior and handle touch events separately from mouse events WebGL context lost Handle the webglcontextlost event and restore state on webglcontextrestored
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。