Giter Club home page Giter Club logo

dino-rush's Introduction

🦖 Dino-Rush

使用 Python 复刻的 Google Chrome 小游戏。

✨ 主要特点

  • 使用简单的操作(空格键或向上键跳跃,向下键下蹲)控制恐龙的动作
  • 随机生成云朵、仙人掌和翼龙作为障碍物
  • 实时更新得分和最高分,并提供相应的音效提示
  • 使用开源像素绘画软件 Asprite 重新绘制了恐龙等界面元素
  • 使用经典的像素风格街机游戏字体 Joystix Monospace 渲染字符元素
  • 使用 Python 集成的 SQLite 来存储每次游玩结束时的 UNIX 时间戳及分数信息

🖼️ 游戏截图

在游戏运行过程中,玩家可以看到恐龙、障碍物、云朵以及当前得分和最高分。

screenshot-1

screenshot-2

screenshot-3

❓ 如何运行游戏

  1. 确保已安装 PythonPygame

  2. 克隆或下载本仓库的代码文件

  3. 在终端或命令行界面中,进入代码文件所在的目录

  4. 运行以下命令启动游戏:

    python Game.py

🎮 游戏操作说明

  • 按下空格键或向上键:恐龙跳跃
  • 按住向下键:恐龙下蹲
  • 松开向下键:恐龙恢复站立状态

⌨️ 开发环境

📄 使用许可

MIT © SlenderData

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.