Zoom in to below the shapes and draw a triangle with the pen tool, the triangle should be two small grid squares wide by one small grid squares high – make sure to close the path by clicking back on the first point.ĥ. Align the vertical center of the circle to the top of the rectangle.Ĥ. Select the Ellipse Tool (hold down the mouse or trackpad button on the Rectangle tool to reveal it) and click on the screen and type in the dimensions 54pts for both horizontal and vertical. Select the Rectangle Tool and click on the screen and type in the dimensions 54pt for the width and 36 pt for the height.ģ. Turn on the Grid (VIEW menu > SHOW GRID) and Snap to Grid (VIEW menu > SNAP TO GRID) Type D on the keyboard to change to your default colors of white for the fill and black for the stroke.Ģ. We’ll be using to Shape Builder to create the ghosts as well as Pac Man.ġ. Think of it as an interactive version of the Pathfinder’s Unite and Minus Front features. I always thought it might be pretty entertaining if someone created a video game from the ghost’s perspective.īut I digress, in this tutorial, you will be introduced to the Shape Builder – a newish tool that makes building complex shapes from simpler ones very straightforward. Blinky followed Pac Man wherever he went, Inky was Blinky’s follower, Pinky tried to think ahead of where Pac Man would be and Clyde wasn’t very bright. Needless to say, you may want to put tape on the backsides of the Arduinos so there are no short-circuits if they come in contact with rain and/or metallic zippers on coats/jackets etc.Apparently, the ghosts in the game Pac Man had distinct personalities that were put to use within the game’s logic. Power up your Arduinos and let's go trick-or-treating! Attach the two 9V batteries nearby for easy connection to the Arduinos. Now attach each Arduino/Display to the costume with duct tape. Make sure the alligator patch cords can connect the two Arduinos. Position the MASTER Arduino on the RIGHT side of the cardboard and the SLAVE Arduino on the LEFT side, spaced as you wish. Now turn the ghost over so the corrugated side is face up. Once the glue is dry, trim the excess Bristol board from around the corrugated cardboard. As some glues shrink as they dry, you may want to put the assembly on the floor and put weights on it to make sure it stays flat as the glue dries. Glue the corrugated cardboard cutout onto the Bristol board.Let it dry. My dimensions are 18 inches wide by 24 inches high. The eyes should start cycling.Ĭut your corrugated cardboard into the classic ghost shape. Temporarily disconnect both Arduinos from the computer.Ĭonnect the two GNDs together with a patch cord.Ĭonnect the Master's Tx1 pin to the Slave's Rx0 pin with a patch cord. Open and upload the MASTER and SLAVE sketches on to their respective Arduino/Screen sets. The result is the left-right shifty eye motion of the Pac-Man Ghost characters! The Master endlessly cycles its eye and sends the pulse. When the Slave receives the '1', it starts its cycle. The basic sketch draws the eye (a black rectangle and circle) on the left side of the display, then uses two FOR loops with the vertical scroll command to shift the eye from left to right and back for a cycle.Īs the Master starts a cycle, it sends a character '1' through its Serial port to the Slave. The right-eye Arduino is the MASTER and the left-eye Arduino is the SLAVE. The Arduinos each have a sketch that cycles an eye from left to right across the screen. In the Search field, search for 'MCUFriend' and add it to your IDE. In the Search field, search for 'Adafruit GFX' and add it to your IDE. Under the 'Sketch' menu, choose 'Include Library', then 'Manage Libraries'. The sketches require two graphics and screen libraries to be loaded into your Arduino IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |