Wednesday 6 March 2013

Pac-man scratch screenshots

This is Pac-mans programming (1/2). The loop on the right makes Pac-man go to the beginning  sets the amount of dots that must be eaten, plays music, says when the music stops, says where Pac-man should face, and makes walls solid. The wall x and wall y variables are set to wherever Pac-man is, and when he touches the wall it takes him backwards, so he cannot pass.
The part with 'stopmove' prevents Pac-man from moving when dead, and otherwise makes his mouth open and close.
The when touching color [dark blue] part makes it so when it touches a vulnerable ghost, it give points and tells the ghost to die.
The parts 'if dotcount = 0' makes it end when all dots are eaten.


Here is 2/2 for Pac-man. Where it has 'if touching PortalL/PortalR' it sets the teleport tunnel from the original.
The part with 'broadcast eat' makes it so that Pac-man can eat ghosts.
The long code to the left makes Pac-man eat himself upon death.


This code is for the dots. It makes them seen, gives points when touched, takes the dot count down by one, and goes invisible.


This is for the power dots. It also gives points and goes invisible, but it changes an on/off variable to get ghosts dark blue.


This is a sprite that displays the words GAME OVER as if it is being typed when you lose. It also displays WIN!!! when all dots are collected.


This is the red ghost program. It moves on a predefined path when the begin song finishes. It also turns to a normal ghost costume and goes to the beginning when the flag is clicked. It also sets some variables to off, and becomes eyes when eaten, and takes 10 seconds to go to the ghost nest.




Sorry for long post!

No comments:

Post a Comment