From aded7a1eeca1e5eadb673ed7179442423273e273 Mon Sep 17 00:00:00 2001 From: kg Date: Thu, 31 Oct 2019 19:49:46 +0100 Subject: [PATCH] New logo --- bitmaps.txt | 21 ++++++++++++++++++++- pong.ino | 13 ++++++------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/bitmaps.txt b/bitmaps.txt index 63afc3d..6d64053 100644 --- a/bitmaps.txt +++ b/bitmaps.txt @@ -35,4 +35,23 @@ 14..##..##..##..##..##..##..##..## 15#..##..##..##..##..##..##..##..# 16##..##..##..##..##..##..##..##.. -## \ No newline at end of file +## +-- title screen (alt) +0012345678901234567890123456789012 +01.#####...####..#...##..#####.##. +02.######.######.##..##.######.##. +03.##..##.##..##.###.##.##.....##. +04.######.##..##.######.##.###.##. +05.#####..##..##.##.###.##.###.##. +06.##.....##..##.##..##.##..##.... +07.##.....######.##..##.######.##. +08.##......####..##..##. ####..##. +09.##..####..##..##..####......##. +10.##.######.##..##.######.....##. +11....##..##.##..##.##..##.....##. +12.##.###.##.###.##.##..##..#####. +13.##.###.##.######.##..##.######. +14.##.....##.##.###.##..##.##..##. +15.##.######.##..##.######.######. +16.##.#####..##...#..####...#####. +## diff --git a/pong.ino b/pong.ino index 21f3b14..56bec2a 100644 --- a/pong.ino +++ b/pong.ino @@ -3,12 +3,9 @@ #define WIN 0 #define PONG 1 #define CLS 2 -/* +/* * Set these constants to the values of the pins connected to the SureElectronics Module */ -//static const byte ht1632_data = 6; // Data pin (pin 7) -//static const byte ht1632_wrclk = 7; // Write clock pin (pin 5) -//static const byte ht1632_cs[] = {8,9}; // Chip Select (1, 2, 3, or 4) static const byte ht1632_data = 3; // Data pin (pin 7) static const byte ht1632_wrclk = 4; // Write clock pin (pin 5) static const byte ht1632_cs[] = {5,6}; // Chip Select (1, 2, 3, or 4) @@ -23,7 +20,7 @@ unsigned long prevmillis = 0; static const byte bitmaps[][128]={ {12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,12,12,9,9,3,3,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6,3,3,9,9,12,12,6,6}, - {0,0,15,15,15,15,12,12,12,12,15,12,7,8,0,0,7,15,15,15,12,0,12,0,15,15,7,15,0,0,15,15,7,15,3,0,1,8,15,15,15,15,0,0,7,15,15,15,12,0,12,0,14,0,6,0,0,0,15,15,15,15,0,0,0,0,15,15,15,15,0,0,0,0,0,0,0,0,0,0,15,14,15,15,0,3,0,3,15,15,15,14,0,0,15,15,15,15,0,0,0,0,15,15,15,15,0,0,15,14,15,15,0,3,3,3,3,15,3,14,0,0,15,11,15,11,0,0}, + {0,0,15,15,15,15,13,8,13,8,15,8,7,0,0,0,7,14,15,15,12,3,12,3,15,15,7,14,0,0,15,15,7,15,3,0,1,8,15,15,15,15,0,0,7,15,15,15,12,3,13,11,13,15,13,14,0,0,15,11,15,11,0,0,0,0,13,15,13,15,0,0,7,11,15,11,13,11,12,3,15,15,7,14,0,0,15,15,15,15,1,8,0,12,15,14,15,15,0,0,7,14,15,15,12,3,12,3,15,15,7,14,0,0,0,14,1,15,1,11,1,11,15,15,15,15,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, }; @@ -209,8 +206,8 @@ int game() { // ball shizzle if ((millis()-prevmillis)>ballspeed){ prevmillis=millis(); - X+=XRC; - Y+=YRC; +// X+=XRC; +// Y+=YRC; if(X>255){ tone(speaker,100,10); @@ -275,6 +272,8 @@ int game() { Xo=X; Yo=Y; } + X+=XRC; + Y+=YRC; } } // player 1 pad