Git Product home page Git Product logo

make-block-reloaded's Introduction

Make:Block reloaded

This repository contains the source code for the updated Make:Block project as published in Make 04/2016.

The orig subdirectory contains a Linux environment to run the original sketch publsihed in Make 01/2015 directly on a Linux PC. This setup simplifies development and is the foundation of a totally rewritten game engine.

Splash screen Game screen

The latest version includes a second game featuring a red dot inspired by an italian plumber. The game can be selected in the main title screen.

Splash screen Game screen

Hardware

The final hardware cosist of an Arduino Nano and 300 WS2812B LED arranged in a 20*15 grid. The LEDs are to be connected to arduino port D12, the left button to port D5, the right button to port D6, the drop (up) button to port D7, the down button to port D8 and the rotate (fire) button to port D11. A speaker may be connected to port D9.

Holding a key during power-up will bring up a config menu. Moving left/right during gameplay while holding down the fire button pauses the game.

Splash screen Game screen

Compilation

For Arduino

Download the whole repository to your local PC. Make sure the local directory is named make-block-reloaded.

Open the file make-block-reloaded.ino in the Arduino IDE. Then install the latest FastLED library e.g. from within the IDE's menu under "sketch->install libraries". The FastLED lib is found in the "display" section.

Now simply hit the build button.

For Linux PC

This sketch can run natively on a Linux PC (that's what has been used to create the screenshots above).

Simple enter make to build the Linux version. You might need to install libsdl. They keys are mapped to right shift and the cursor keys.

make-block-reloaded's People

Contributors

harbaum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

make-block-reloaded's Issues

Configmenu is never shown

I have a problem with the config menu on my arduino nano. In case I press any key at startup nothing will be painted at the LEDs, so the screen stay black. In addition I can't press any key (I can but nothing happens).

So I have investigated a little bit and I found some crazy behaviors:
First: In case the method "config_draw_menu" is called to show the menu, nothing happens. The method is called correctly but nothing is painted to the LEDs.

Second: Then I took a look at the loop() method from application. After each config_draw_menu call, the milliSeconds from arduino (method millis()) will be resetted to 0. So the application freezed because the next_event has a value greater then 5000 for example and millis are smaller.
So after each key press in state = STATE_CONFIG, the config_draw_menu is called and reset the millis(). I have no idea whats going wrong.

In case I ran the application build with make on my computer everything is working fine. Just at the arduino nano I got this behavior.

Do you have any idea what can I do?

Thanks in advance
Tobias

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.