# 微信小游戏开发 **Repository Path**: coding005/weixinxiaochengxukaifa ## Basic Information - **Project Name**: 微信小游戏开发 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-15 - **Last Updated**: 2026-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Agile Descent (极速下潜) 本项目是一款基于微信小游戏的**垂直卷轴敏捷躲避类游戏**。玩家控制角色在一个不断向下卷动的深渊中跳跃下潜,躲避上方的死亡尖刺,利用各种特性的平台尽可能深入地下 100 层乃至更深。 ## 项目结构 - `game.js`: Entry point. - `game.json`: Global configuration. - `project.config.json`: Project settings. - `js/`: Source code. - `main.js`: Game loop and state management. - `player.js`: Player physics and control. - `level.js`: Platform generation and management. - `platform.js`: Platform types and behaviors. - `input.js`: Touch input handling. - `ui.js`: Canvas-based UI rendering. ## How to Run 1. Open **WeChat Developer Tools**. 2. Select **Import Project**. 3. Choose the directory `d:\weixinxiaochengxukaifa`. 4. Select **AppID**: Use a Test AppID or your own. 5. Click **Compile** to run the game in the simulator. ## Features Implemented - **Core Gameplay**: - Vertical scrolling (platforms move up). - Touch control (Left/Right side of screen). - Physics (Gravity, Collision, Jumping). - **Platforms**: - Normal (Gray) - Bounce (Green, High Jump) - Conveyor (Blue, Horizontal Push) - Breakable (Brown, Cracks and disappears) - Spike (Red, Damage) - **Progression**: - Infinite depth with difficulty increasing over time. - Score tracking (Depth). - High score saved locally. - **Visuals**: - Code-generated graphics (Canvas 2D). - Dynamic background grid. - Player trail and particle effects (simulated). ## Controls - **Left Side Tap**: Move Left. - **Right Side Tap**: Move Right. - **Release**: Stop. ## Development Notes - The game uses the Native WeChat Mini Game Adapter (no external engines like Cocos or Laya) for maximum performance and small package size. - Rendering is done via pure Canvas 2D API.