Class Notes (890,447)
US (345,132)
UVA (2,184)
CS (38)
CS 1110 (9)
Lecture 1

CS 1110 Lecture 1: November 8 – Game Design with Gamebox

2 Pages

Computer Science
Course Code
CS 1110

This preview shows 80% of the first page. Sign up to view the full 2 pages of the document.

Loved by over 2.2 million students

Over 90% improved by at least one letter grade.

Leah — University of Toronto

OneClass has been such a huge help in my studies at UofT especially since I am a transfer student. OneClass is the study buddy I never had before and definitely gives me the extra push to get from a B to an A!

Leah — University of Toronto
Saarim — University of Michigan

Balancing social life With academics can be difficult, that is why I'm so glad that OneClass is out there where I can find the top notes for all of my classes. Now I can be the all-star student I want to be.

Saarim — University of Michigan
Jenna — University of Wisconsin

As a college student living on a college budget, I love how easy it is to earn gift cards just by submitting my notes.

Jenna — University of Wisconsin
Anne — University of California

OneClass has allowed me to catch up with my most difficult course! #lifesaver

Anne — University of California
November 8 Game Design with Gamebox Sunday, November 5, 2017 11:18 AM >>2pm video Files on CS1110 site give all options of what we are allowed to do in Gamebox is a platform jumper Conditional logic >> If box touches(wall): Box.speedx = 0 >> this makes it so that you cannot move whilst touching a surface >> is a wall jumper (jump with no overlap) For wall walls: If on ground, on_ground = True If pygame.K_UP in keys and on_ground: #if you hit up and you are on the ground Jump >> One constraint: if you not want to show overlapping in the end, we need to make sure not_overlapping happens immediately before we draw. Not_overlapping has to be the last thing before draw The right order: 1. Check if jump is okay 2. Check keys 3. Do physics stuff 4. Make walls 5. Draw Anything out of this order does not work (this is the idea of dependency ordering You need two loops: 1. One that says you can jump 2. And another that says to stop overlapping >> only jumps when we are on the ground >> We want global timer to be used with flapping (2pm 22:50) Box.timer = 0 # you can add as many new custom things to a box Def tick(keys): Global timer Camera.clear( Box1.timer += 1 >> keeyp track of collected coins For coin in coins: For wall in walls: If coin.touches(wall): Coins.remove(coin) >> Different types of games: 1. Driving rocket ship around sun o Do find offset of dx and dy for spaceshipto find (x,y), you get its locat
More Less
Unlock Document
Subscribers Only

Only 80% of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
Subscribers Only
You're Reading a Preview

Unlock to view full version

Unlock Document
Subscribers Only

Log In


Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.