Skip to content

Instantly share code, notes, and snippets.

@cheewee2000
cheewee2000 / pacmaaaaaan
Last active May 3, 2019 14:20
Pacman from scratch. In class dev with BFS Upperschool.
//draw pacman
//move pacman, control with keys
//keep pacman on screen
//draw dots
//move pacman on grid or move along walls
//draw walls
//multiplayer pacman
//zombie tag
//points
#include <Servo.h>
Servo myservo; // create servo object to control a servo
int servoPos;
void setup() {
//start serial communication at 9600baud (pulses per second)
Serial.begin(9600);
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
// This simplified demo scrolls the text of the Jaberwoky poem directly from flash memory
// Full article at http://wp.josh.com/2016/05/20/huge-scrolling-arduino-led-sign/
// Change this to be at least as long as your pixel string (too long will work fine, just be a little slower)
#define PIXELS 96*4 // Number of pixels in the string. I am using 4 meters of 96LED/M
// These values depend on which pins your 8 strings are connected to and what board you are using
// More info on how to find these at http://www.arduino.cc/en/Reference/PortManipulation
### Keybase proof
I hereby claim:
* I am cheewee2000 on github.
* I am cheewee2000 (https://keybase.io/cheewee2000) on keybase.
* I have a public key whose fingerprint is 2F1C BB84 0013 4B72 EDCA C5F6 E383 8086 F9F9 2C1A
To claim this, I am signing this object: