New logo
This commit is contained in:
parent
d02093c16c
commit
aded7a1eec
21
bitmaps.txt
21
bitmaps.txt
|
@ -35,4 +35,23 @@
|
||||||
14..##..##..##..##..##..##..##..##
|
14..##..##..##..##..##..##..##..##
|
||||||
15#..##..##..##..##..##..##..##..#
|
15#..##..##..##..##..##..##..##..#
|
||||||
16##..##..##..##..##..##..##..##..
|
16##..##..##..##..##..##..##..##..
|
||||||
##
|
##
|
||||||
|
-- title screen (alt)
|
||||||
|
0012345678901234567890123456789012
|
||||||
|
01.#####...####..#...##..#####.##.
|
||||||
|
02.######.######.##..##.######.##.
|
||||||
|
03.##..##.##..##.###.##.##.....##.
|
||||||
|
04.######.##..##.######.##.###.##.
|
||||||
|
05.#####..##..##.##.###.##.###.##.
|
||||||
|
06.##.....##..##.##..##.##..##....
|
||||||
|
07.##.....######.##..##.######.##.
|
||||||
|
08.##......####..##..##. ####..##.
|
||||||
|
09.##..####..##..##..####......##.
|
||||||
|
10.##.######.##..##.######.....##.
|
||||||
|
11....##..##.##..##.##..##.....##.
|
||||||
|
12.##.###.##.###.##.##..##..#####.
|
||||||
|
13.##.###.##.######.##..##.######.
|
||||||
|
14.##.....##.##.###.##..##.##..##.
|
||||||
|
15.##.######.##..##.######.######.
|
||||||
|
16.##.#####..##...#..####...#####.
|
||||||
|
##
|
||||||
|
|
13
pong.ino
13
pong.ino
|
@ -3,12 +3,9 @@
|
||||||
#define WIN 0
|
#define WIN 0
|
||||||
#define PONG 1
|
#define PONG 1
|
||||||
#define CLS 2
|
#define CLS 2
|
||||||
/*
|
/*
|
||||||
* Set these constants to the values of the pins connected to the SureElectronics Module
|
* 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_data = 3; // Data pin (pin 7)
|
||||||
static const byte ht1632_wrclk = 4; // Write clock pin (pin 5)
|
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)
|
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]={
|
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},
|
{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},
|
{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
|
// ball shizzle
|
||||||
if ((millis()-prevmillis)>ballspeed){
|
if ((millis()-prevmillis)>ballspeed){
|
||||||
prevmillis=millis();
|
prevmillis=millis();
|
||||||
X+=XRC;
|
// X+=XRC;
|
||||||
Y+=YRC;
|
// Y+=YRC;
|
||||||
|
|
||||||
if(X>255){
|
if(X>255){
|
||||||
tone(speaker,100,10);
|
tone(speaker,100,10);
|
||||||
|
@ -275,6 +272,8 @@ int game() {
|
||||||
Xo=X;
|
Xo=X;
|
||||||
Yo=Y;
|
Yo=Y;
|
||||||
}
|
}
|
||||||
|
X+=XRC;
|
||||||
|
Y+=YRC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// player 1 pad
|
// player 1 pad
|
||||||
|
|
Loading…
Reference in New Issue