A very simple dog game: whenever the dog taps
the blue screen, the game feeds
it a treat. Click the play button to start the simulation, then click on the blue part of the screen to simulate nose-taps!
"Learn More" will tell you how to change the game, and how to deploy games to the Doggie And Me app.
The code (or program) is how we define the game. This first game is just tap -> feed()
!
Did you know there are two ways of viewing and changing the code? This example started out in block mode, but you can switch to text mode by clicking or below.
If you add vibrate()
directly under feed()
, then the game will tell your tablet or phone to vibrate right after dispensing a treat! (Though in the playground, it'll just tell you to pretend it vibrated)
You can add code by dragging it out of the palette in block mode, or just by typing in text mode.
To deploy the current game to your Doggie And Me app, first click the button below. After a second, you'll see a QR code (it looks kind of like that button). Then go to the "Add Game" section in your app, and scan the code. The app should load your game!
In case you're wondering: the deploy button creates a new secret anonymous gist, and the QR code is just a link for the app to know where to download the code!
Scan this QR code with the Doggie And Me app to add the game to the app!
You can also view your program
Note: the QR code and the link will both expire after around 10 days