กลับไปหน้ารวมไฟล์
arduino-lcd-game-on-tinkercad-circuits-922963-en.md

Here is a simple game created by me on TinkerCad Circuits. This is a stickman game made with a few steps...

  • First, Select Arduino in the component type and drag the Arduino with breadboard in the workspace. Now change the position of breadboard to the right and put the potentiometer and push button on the breadboard. Select LCD and put it below the breadboard as shown in the image.
  • Click on the Code button above the workspace. Now select text in the box above the already written code. Delete the already written "C" code and replace it with the code attached.

Click on "Start Simulation" at the right of code button and click on the push button to play the game...

To see my own project click here and like it too...

EXPANDED TECHNICAL DETAILS

Virtual Game Engine Analysis

Recreating hardware games in a simulation environment allows for rapid testing of game logic without the risk of wiring errors.

  • Virtual HMI Setup: Features a virtual 16x2 LCD and a potentiometer for player movement. The Tinkercad codeblocks or C++ code handles the frame-refresh rate.
  • Collision Math: Uses the "Bitmasking" technique on the character LCD; as the "Player" character $(X, Y)$ moves, the code checks if the next grid position is occupied by an "Obstacle" character.

Simulation Benefits

  • Debugging Logic: Allows students to visualize the millis() timing loops and variable states in real-time, providing a solid theoretical foundation before building the physical breadboard game.

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

title: "Arduino LCD Game on TinkerCad Circuits"
description: "Play the game and have fun!"
author: "AnniBot"
category: ""
tags:
  - "games"
views: 17499
likes: 16
price: 1120
difficulty: "Intermediate"
components:
  - "1x Switch Actuator, Head for spring return push-button"
  - "1x Arduino UNO"
  - "1x Breadboard (generic)"
  - "1x RGB LCD Shield Kit, 16x2 Character Display"
  - "2x Single Turn Potentiometer- 10k ohms"
  - "1x Multitool, Screwdriver"
tools: []
apps:
  - "1x Tinkercad Codeblocks"
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/9304ae52-3daa-4c7f-a908-0e2b33528fc5.ino"
documentationLinks: []
passwordHash: "5fb55e7408d2b04f32b415cff5ebbd2cc2718d8c674b84f9b0779413456605d8"
encryptedPayload: "U2FsdGVkX1+YIV9OBot69lAhGw3J9yz7pvyhQuIdvgGvY8/L/j9Oi96foS8j3X8chIh7r5RF2sdlnOncdYqx8u7DlQ3YJsU5MbQ8DvdXF2PM3pY1ciniV8tLF2rtqFoy"
seoDescription: "Create an Arduino LCD Game on TinkerCad Circuits. Learn to code and enjoy playing the game!"
videoLinks:
  - "https://player.vimeo.com/video/497694920"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-lcd-game-on-tinkercad-circuits-922963_cover.png"
lang: "en"