Commit Graph

31 Commits

Author SHA1 Message Date
Patrick Tschuchnig
5e2ecbc98f more fixes 2019-09-12 09:02:51 +02:00
Patrick Tschuchnig
0fb43994fd more fixes 2019-09-12 09:01:40 +02:00
Patrick Tschuchnig
c40f8e3128 more fixes 2019-09-12 09:00:05 +02:00
Patrick Tschuchnig
d1a3a2b35d more fixes 2019-09-12 08:58:36 +02:00
Patrick Tschuchnig
3651b6fb70 somehow this didnt work 2019-09-12 08:56:29 +02:00
Patrick Tschuchnig
953a2836dc im too dumb to understand = and == 2019-09-12 08:52:37 +02:00
Patrick Tschuchnig
c703f25311 disabled blinking 2019-09-12 08:51:36 +02:00
Patrick Tschuchnig
c0d75a69f8 changed led blinking to default off, removed the handler to update the pwm per default, and made a toggle to switch it back on 2019-09-12 08:50:40 +02:00
Patrick Tschuchnig
35416a2c28 fixed missing global assignment 2019-09-12 08:21:33 +02:00
Patrick Tschuchnig
4cada0a593 trying to reduce flicker due to pwm switching 2019-09-12 08:20:20 +02:00
Patrick Tschuchnig
dc1bc6fe7b changed led handler and blinking mechanics 2019-09-12 08:11:03 +02:00
Patrick Tschuchnig
d64b0858fc completely disabled led handler, also the name input box keeps being at the wrong place :x 2019-09-11 16:37:09 +02:00
Patrick Tschuchnig
e3af1a7f50 progress on the LED blinking handler 2019-09-11 16:34:32 +02:00
Patrick Tschuchnig
dc9497ab6b trying a new way of controlling the LED strips 2019-09-11 15:01:29 +02:00
Patrick Tschuchnig
003ccce40f changed the way the drawing for the name entry works 2019-09-11 14:24:18 +02:00
Patrick Tschuchnig
bd9ecde8b0 changed the way the border and logo is drawn to be on every screen 2019-09-11 14:16:42 +02:00
Patrick Tschuchnig
8afb7765a5 changed flipping to be done at the end of the game routine 2019-09-11 13:36:08 +02:00
Patrick Tschuchnig
a337c279f7 minor cleanup, added placeholders, changed when the border is drawn 2019-09-11 13:33:02 +02:00
Patrick Tschuchnig
ad94b1b601 cleaned up the game states to be a 2 bit system with game running and game ending states. 2019-09-11 13:08:12 +02:00
Patrick Tschuchnig
84a6e58ba3 fixed a bug where starting the game while displaying the end screen was allowed, causing an undefined state in the engine and softlocking the player. now causing an inhibit state to block the start pin and also only allow checking for the game start if the game is not currently ending 2019-09-11 12:02:41 +02:00
Patrick Tschuchnig
60f0545878 changed a stupid behaviour that allowed a backspace to be entered as the first char of a name 2019-09-11 11:45:29 +02:00
Patrick Tschuchnig
b42813cf75 changed when the game stopped routine is being called, as it was called while the game was in ending state, which wasnt intended 2019-09-11 11:40:53 +02:00
Patrick Tschuchnig
7e67391678 changed the game start timer to be a one-shot in the game_ending routine. changed a spelling mistake in variable declaration. 2019-09-11 11:27:43 +02:00
Patrick Tschuchnig
72a08a23b6 changed timing system for the game\'s end to be tick based 2019-09-11 11:14:59 +02:00
Patrick Tschuchnig
48df332b32 changed timings, changed a problem with the game restarting, changed logic for game start to be for a closing button, changed pin for errors to be 33 (pull up) 2019-09-11 10:57:16 +02:00
Patrick Tschuchnig
9e2086611c fixed incorrect variable name 2019-09-11 10:05:22 +02:00
Patrick Tschuchnig
22208f9cf7 added general pinout info at the top, changed the start pin to have an inhibitor latch 2019-09-11 10:03:24 +02:00
Patrick Tschuchnig
9eda20c47d fixed uninitialised var for previous change 2019-09-10 16:48:00 +02:00
Patrick Tschuchnig
5d62d58478 slight changes to game loop to not constantly change the led colours at every tick 2019-09-10 16:46:49 +02:00
Patrick Tschuchnig
16c32133cb changed initialisation ordering 2019-09-10 16:38:31 +02:00
Patrick Tschuchnig
6412bbd26f first general code revision, unstable and untested. restructured the definitions, changed the game to a tick-based system, changed game loop to have a game state instead of being a strict script based state machine, lots of small changes. changed naming convention from camel case to underscore-spaced. unified naming convention. changed variable naming to reflect what the variable is used by. 2019-09-10 16:35:08 +02:00