rust-macroquad-lode-runner:基于 Macroquad 引擎的 Lode Runner 游戏复刻项目

可用于体验经典 2D puzzle-platformer 游戏玩法。复刻 FC/NES 版 Lode Runner 核心机制,包括角色移动、挖掘陷阱、敌人AI、黄金收集等,支持多关卡和分数系统,无外部资源依赖。【此简介由AI生成】

Branch1Tags0
FilesLast commitLast update
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago

rust-macroquad-lode-runner

A faithful Rust recreation of Lode Runner (FC/NES), built with the Macroquad game engine.

Overview

Lode Runner is a classic 2D puzzle-platformer originally released by Brøderbund in 1983. This project recreates the core gameplay mechanics of the Famicom/NES version published by Hudson Soft.

Features

  • Player Movement - Run, climb ladders, hang on bars/pipes
  • Digging Mechanic - Dig through brick floors to trap enemies (Z / Space)
  • Enemy AI - Greedy pathfinding enemies that chase the player, climb ladders, and collect gold
  • Hole Regeneration - Dug holes regenerate after 6 seconds, crushing anything trapped inside
  • Gold Collection - Collect all gold to open the exit ladder
  • Multiple Levels - 3 handcrafted levels with increasing difficulty
  • Score System - Earn points for collecting gold and completing levels

Controls

Key Action
← → Move left / right
↑ ↓ Climb up / down ladders; release from bar
Z / Space Dig in facing direction
N Next level (after winning)
R Restart (after game over)

Screenshots

The game renders a 28x16 tile grid with pixel-art style graphics drawn entirely via Macroquad primitives (no external assets required).

Building & Running

Prerequisites

  • Rust (edition 2021)

Run

git clone https://gitcode.com/k4m7v2pz/rust-macroquad-lode-runner.git
cd rust-macroquad-lode-runner
cargo run

Build Release

cargo build --release

Project Structure

rust-macroquad-lode-runner/
├── Cargo.toml          # Dependencies (macroquad)
├── UNLICENSE           # The Unlicense license
├── AGENTS.md           # AI agent development guidelines
├── README.md           # This file
└── src/
    └── main.rs         # All game logic in a single file

Game Mechanics Reference

Tile Description
Brick Diggable floor, regenerates after being dug
Steel Indestructible wall/floor
Ladder Climbable, allows vertical movement
Bar Hangable, allows horizontal movement while suspended
Gold Collectible; all must be collected to open the exit
Exit Appears after all gold is collected; reach it to win
Hole Temporary opening from digging; regenerates after 6s

License

This project is released under The Unlicense, placing it in the public domain. See UNLICENSE for details.

Introduction

可用于体验经典 2D puzzle-platformer 游戏玩法。复刻 FC/NES 版 Lode Runner 核心机制,包括角色移动、挖掘陷阱、敌人AI、黄金收集等,支持多关卡和分数系统,无外部资源依赖。【此简介由AI生成】

Customize your domain