Skip to content

BudlePlay/make-game-on-led-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do you want to make game on LED matrix?

Make game on LED matrix

this repository can create a game on led matrix by adding some code.

Please feel free to open an issue or a pull-request if you have any idea to make it better. :)

If you want a make game in windows, please see hi-engine-2

How to use

This repository is tested on Windows10, Visual studio 2019, Raspberry Pi 4.

  1. download visual studio and install iot and linux plugin.
  2. open Hi-Engine2_forRaspberryPi/Hi-Engine2_forRaspberryPi.sln
  3. connect raspberry pi
  4. build and run

We plan to support cmake.

Strengths

Utils

  • raspberry pi를 gpio 핀을 입출력으로 사용할 수 있게 지원 source

  • 게임에 필요한 자료구조 지원 source

  • 쉬운 scene 교체 source example

WorldOutliner

Object

  • object를 상속받아 게임 속의 물체를 만들 수 있습니다.

  • 이동 등 추상적인 함수 제공 source example

  • 프로젝트 셋팅에서 입력 처리 등록 source

  • object에서 이벤트 형식으로 함수를 등록해 입력 처리 example

  • 충돌 처리를 이벤트 형식으로 사용 source


Electric Circuit

joystick, button

LED matrix

LED matrix docs
Raspberry pi GPIO docs

There is a drawing of the LED matrix stand and prop using fusion360.

SW pull up setting

if use joystick or button, need sw pull up setting in raspberry pi 4.

git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi/
./build
raspi-gpio set 9 pu
raspi-gpio set 10 pu
raspi-gpio set 27 pu
raspi-gpio set 22 pu
raspi-gpio set 2 pu
raspi-gpio set 3 pu
raspi-gpio set 4 pu
raspi-gpio set 17 pu 
sudo gpio readall

Demo

Complete

https://www.youtube.com/watch?v=Fkds48xTplY
DemoGame

Tech use in the demo

  • C++
  • LED Matrix
  • Raspberry Pi 4
  • Fusion 360 [link]
  • 3d Printer
  • Laser cutting machine

Buy list

Reference

HiEngine2

Contributors

Songs
kyh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published