Snap: Sprites &
Keyboard Input
Keyboard Input
Learn a bit more about virtual pets
& play with keyboard input in Snap!
Completed
Starting Project Research
Revisiting Portfolios
Basics of HTML & CSS
UX / UI Overview
Today
Block-based Programming
Interaction between User & Software
Upcoming
More Project Work
Start with typing:
https://shaunwegs.github.io/2024/focs/typing/index.html
Add your screenshot to your slide for today, and keep your typing log updated.
Your project for this semester is to design and creat your own virtual pet. You'll need to come up with your own ideas, and then program them. Your project will need to feature interactivity between the user and the pet.
Tamagotchi's are probably the most famous virtual pets, so let's look a bit more at their specific history today.
A very common feature in most software, at least on the computer, is that it somehow responds to keyboard input. This could be a game, this could also be a software to design things in, write papers, or browse the web. In many of these you can type, but you also often have keyboard shortcuts, like a quick way to save, or undo, or some other common task.
If it's a game, a lot of time keyboard input is used to control a character's movements and/or use certain actions or abilities. Let's see how we can add keyboard input into Snap!
Overall, this was relatively simple and isn't really amazing. However, you add knowledge into other things, like sprite collision, and you could start to create an interactive program that other's may enjoy. This is also enough to start creating little games.
At a training I attended around 2015, we were using Scratch instead of Snap. If you aren't familiar with Scratch, it's very similar to Snap. We had to create a little game.
I created this one:
https://scratch.mit.edu/projects/117776688/fullscreen/
It uses most of the same basic principles we've already worked with in Snap, just applying them in different ways.
If you want to see the blocks inside of the program, you can see them here:
https://scratch.mit.edu/projects/117776688/editor/
I've made a small game in Snap at a different training before, but it was a partner project, and due to "creative differences" I didn't like how the Snap one turned out and didn't bother to keep it.
In it, you were a city that decided to resist the progression of self-driving cars. As such, y'all decided you'd destroy any non-human operated cars on the road. The cars didn't drive on the road though, my partner just made them float through the air... which I thought was lame and lazy... anyway, my bacteriophage one is more fun, even if its Scratch and not Snap.
On your slide for today add your:
- Typing Screenshot
- Include a video showing you can get a sprite on screen to respond to keyboard inputs.
Start thinking about what sort of interactions you may want between your virtual pet and the user, as well as what sorts of behaviors you may want your virtual pet to exhibit.