Arduino Engine:一台 Arduino 跑多款游戏Arduino Engine Runs Many Games


AI free token/AI免费积分
Arduino Engine:一台 Arduino 跑多款游戏

几年前,[Smashcat] 把一款名为 Manic Miner 的 ZX Spectrum 游戏移植到了 Arduino Uno 上。Arduino 的内存比原版 Spectrum 还少,因此要在一块 8 位微控制器上完成这一切绝非易事。此后,这一最初移植的部分内容被改造成了一款游戏引擎,使 [Smashcat] 还能把另外几款游戏也移植到 Arduino Uno。

该引擎能够承载分辨率为 256×256、可滚动的 2D 地图,同时最多显示 9 个精灵。画面帧率被锁定在 50 FPS,但这需要使用带晶振的正版 Arduino Uno。一些复制板缺少足够精确的计时芯片,无法在不使用帧缓冲的情况下复现视频信号。该信号以及两路 PWM 音频仍由 Arduino 直接生成,只需少量电阻即可把一切连接到显示器和控制器,其中包括支持使用 NES 手柄。

在 Arduino 上运行所有这些功能,并连接到提供控制器接口、视频信号所需电阻以及扬声器驱动的子板后,该系统现在可以运行原版 Manic Miner 以及另外三款游戏:Scramble、Space Invaders 和 Pac Man。

引擎及其他代码同样发布在 GitHub 页面上,甚至还有一个 WebAssembly 版本,可在没有特定硬件的情况下运行该软件的各个部分。原版 ZX Spectrum 也是一台颇具趣味的设备,尽管已经远超 40 岁高龄,如今仍激发着类似的创作。

本文来源:https://hackaday.com/2026/10/26/arduino-engine-runs-many-games/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Arduino boards are not the first thing that comes to mind for gaming, but this project shows just how far an 8-bit AVR can be pushed. The aptly named Arduino Engine is a tiny game engine that runs entirely on an Arduino, and it already has several playable titles ported to it.

The engine handles sprite drawing, tile maps, input and sound using only the microcontroller's limited SRAM and flash, with a display driven over SPI. Because everything is written in plain Arduino C++, the same sketch can be dropped onto a range of boards with only pin definitions changed.

Several games have already been adapted to the engine, demonstrating that a handful of kilobytes of RAM is enough for arcade-style gameplay when the renderer and asset formats are designed with those limits in mind from the start.

Arduino Engine Runs Many Games

The source is available for anyone who wants to port their own games or use the engine as a starting point, and it makes a neat demonstration of what careful optimisation buys you on hardware that has no business running games at all.

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry