กลับไปหน้ารวมไฟล์
lcd-game-79a4d3-en.md

Intro

This is a very entertaining project since you build it and then you can use it.

finished project

EXPANDED TECHNICAL DETAILS

Handheld Gaming Logic

Built on the classic 16x2 Character LCD, this project recreates a side-scrolling obstacle avoidance game, similar to "Dino Run."

  • Custom Character creation: Utilizes the lcd.createChar() function to design unique 5x8 pixel bitmaps for the player avatar and incoming obstacles (birds, cacti, or pits).
  • Physics Engine: The Arduino manages a "Frame Buffer" in its RAM, shifting obstacles one column to the left every 200ms. It constantly checks for a "Collision" where the player position overlaps with an obstacle bit.

Performance Optimization

  • Non-Blocking input: Uses millis() for gravity and movement, ensuring that the game remains responsive to button presses even during high-speed animation phases.

ข้อมูล Frontmatter ดั้งเดิม

title: "LCD Game"
description: "A project where they can easily create a small console."
author: "Lette"
category: ""
tags:
  - "games"
views: 767
likes: 0
price: 1120
difficulty: "Intermediate"
components:
  - "1x Jumper wires (generic)"
  - "1x Alphanumeric LCD, 16 x 2"
  - "1x Pushbutton switch 12mm"
  - "1x Arduino UNO"
  - "1x USB-A to B Cable"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "599086b9f68260ae222fd3b67fd77ec947daeed8a6c71865da5575740244f0cc"
encryptedPayload: ""
seoDescription: "A project where they can easily create a small console."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/lcd-game-57af9a_cover.jpg"
lang: "en"