computer science
🤝
video game development
Andrew Murray
Tyler Bonnell
Who are we?
Andrew Murray
���*copied Miya’s homework a lot
Tyler Bonnell
Overview:
Overview:
Code in CSE 142:
“Hey Java, I’d like you to run my code”
Java runs�your code
Your code finishes running and the program stops
Some Side effect occurs (eg, you print�a song)
Now Imagine an (overly-simplified) Web Browser
Now Imagine an (overly-simplified) Web Browser
Closes the app
Goes to a new page
Displays page
Code in a simple application:
Click on chrome.exe
Some code is run, waits for user action
Types in a URL
Hits the close button
Code A runs
Code B runs, shows the website
Your code finishes running and the program stops
Now Imagine a Video game
Now Imagine a Video game
Is affected by gravity over time
Is directly affected by player input
Is indirectly affected by player input
(collision between itself and the player)
Code in a game:
Your code finishes running and the program stops
Boot up�“Super Mario Bros.”
???
Code in a game:
Boot up�“Super Mario Bros.”
Your code finishes running and the program stops
Game engines!
Game engine demo
Are there other ways of organizing that?
Overview:
Games involve many areas of CS
Overview:
Fast inverse square root function (Quake III Arena, 1999)
ASCII graphics (Dwarf Fortress, 2006)
Train hats (Fallout 3, 2008)
Game feel (Celeste, 2018)
Game feel (Celeste, 2018)
Overview: