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
34 Views

Department
Computer Science
Course Code
CS 1110
Professor
Tychonievich

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.

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

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

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

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

Anne â€” University of California
Description
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 Game4.py 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 >> Game5.py 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 >> Game6.py 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 >> Game9.py 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
Subscribers Only

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

Unlock Document
Subscribers Only

Unlock to view full version

Unlock Document
Subscribers Only
Notes
Practice
Earn
Me

OR

Don't have an account?

Join OneClass

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

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Just a few more details

So we can recommend you notes for your school.