Code Monkey home page Code Monkey logo

udisk-dinosaur's Introduction

udisk-dinosaur

udisk-dinosaur static pic


项目简介

本项目通过一个只有6个引脚的MCU(ATtiny10)以及一块128x32的OLED(SSD1306)屏幕实现了一个小游戏机。

udisk-dinosaur gif


功能描述

由于MCU内部存储空间极其有限(1024字节),因此本项目的源代码通过汇编语言进行编写,经过调整 优化,在使用完全部1024字节的存储空间后,这个游戏机实现了如下功能:

  • 小恐龙跳跃和下蹲动作
  • 地面和空中障碍物的随机生成
  • 分数统计
  • 游戏速度的自动变化
  • 通过将一个U盘和游戏机安装到同一个结构中,解决游戏机的供电问题,同时还增加了U盘功能。

使用方法

接上电源后游戏自动开始运行,通过屏幕旁边的按键控制小恐龙的跳跃和下蹲,以此来躲避地面和空中 的障碍物,另外障碍物移动速度会随着分数的变化而不同,游戏过程中如果小恐龙碰到障碍物,游戏 结束,屏幕熄灭,如果要再次开始,按下跳跃按键即可再次开始。


本工程使用方法

  • Firmware中存放的当前最新的固件,可以直接下载到机器中运行。
  • hardware中存放了这个游戏机的3D结构件文件以及电路原理图和PCB生产文件。
  • src中存放了软件的源代码,安装AVR相关的编译工具链后即可编译源码。

鸣谢

本项目是基于ridolucRunTiny项目改进而来。非常感谢他做出如此有意思的项目。 作为感谢,我也对原始项目提交了问题修复的补丁。


介绍视频

https://www.bilibili.com/video/BV1uh41187qr?spm_id_from=333.999.0.0

udisk-dinosaur's People

Contributors

ridoluc avatar sidianneng avatar bigbearishappy avatar

Stargazers

 avatar

Watchers

 avatar

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.