Skip to content

Instantly share code, notes, and snippets.

View elizabethqiu's full-sized avatar
:octocat:

Elizabeth Qiu elizabethqiu

:octocat:
View GitHub Profile
# Elizabeth Qiu
# This goes along with my lecture (for Justin's section) on 4/15/24 ~ We learned Floyd's algorithm!
# The exact example I presented is below. See Piazza @1062 for more information.
# Lecture recording: https://umd.zoom.us/rec/share/1PGdFYebJhERfaaGsbB7qA3MlNSzlflosjj3MnGMims3bfzm8E2QofzCVrLnMDFt.BcsKh2kPcxSrEhxS?startTime=1713186103000
# At the end of the file, you can update the adjacency matrix with your own to test out. If you add/remove vertices, make sure to update the V value in the line below.
# Note on paper and in lecture, we use 1-indexing for convenience, but in code I use 0-indexing because...it's code.
V = 3
// Source code for the MoCoHacks 2021 "Intro to 2D/3D Game Development in Unity" Workshop!
// Link to presentation: http://bit.ly/mch-gamedev2021
// SLIDE 6: Moving Your Player (Pt. 1)
// -----------------------------------------------------------------------------------------------
moveHorz = Input.GetAxis("Horizontal");
moveVert = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorz, 0, moveVert);
body {
font-family: "Cabin", !important;
background-color: #008080 !important;
}
.posts {
border-radius: 0 !important;
}
.post {