

- #Something siliar to alpha zoo full#
- #Something siliar to alpha zoo code#
- #Something siliar to alpha zoo windows#
#Something siliar to alpha zoo windows#
#Something siliar to alpha zoo full#
#Something siliar to alpha zoo code#
You are free to use our code under a Creative Commons license, either for learning or for your own development purposes, commercial or non-commercial, with attribution appreciated but not necessary. Images and other media assets are copyright Alpha Zoo 2021. LicenseĪlthough the game is for sale, if you're here, you're probably a programmer. Feel free to email bugsby dot carlin at his gmail account for a deeper description.

This game is developed in javascript with PixiJS and a few other small libraries. It is meant to be played together, parent and child, with a bright, colorful keyboard.

Mia = makeAnimatedSprite("Art/mia_animations.Alpha Zoo is a game that helps parents teach reading and typing to small children. Let blue_sky = makeSprite("Art/blue_sky.png") Anything with two // slashes in front is a comment. Welcome! This is where you'll write your game code. There we go! Mia’s on the screen! But she’s frozen, not moving. Later, we’ll learn about “let”, and “null” and why we put this line outside the function. For instance, you can say “cat_weight = 10 ”, and then later in the program, you can say “cat_weight = 15 ”, and changes the variable now it’s 15 instead of 10. They’re called variable because you’re allowed to change them. Variables hold our stuff, whether it be numbers, text, or sprites. You can change this to see what the rising and falling parts of jump look like.Īlso, near the top, we wrote “let mia = null”. Mia has animations for “run”, “rise”, “fall”, and “idle”. This one also asks us to choose a particular animation. It looks the same, except we’re using a different function to make an animated sprite. Right now, there’s just a picture of the blue sky, but we’re going to add a sprite for Mia next. (The word stage comes from the stage of a theater play)Ī sprite is a picture which you can move around. If you tell the computer to put something on the stage, it will show up on the screen. The stage is where you put stuff on the screen. We then set the position of the blue sky to (0, 0). We give it a filename, “Art/blue_sky.png”, which is the image file for the blue sky, and it makes a sprite. First, we make a new sprite using makeSprite (another function which made which is hiding in plumbing). In between the curly braces are three commands. It has nothing between the ( ) parentheses because it doesn’t need any extra information. InitializeGame is run one time, right when the game starts. Then, everything between the curly braces is the stuff the function actually does. To make a function, you write the word “function”, followed by a name, followed by some ( ) parentheses where you can put any extra information you want to give along with your command. “All of this stuff here, let’s call it MyMorningBreakfastRoutine, or OrganizeBedroom.” It’s sort of a way of grouping thoughts together.

You can put as little or as much as you want into a function, and you can name it whatever you want. There are two functions we’re going to be working with.Ī function is basically a command you can give the computer.
