Skip to content

Commit

Permalink
The Last Supper
Browse files Browse the repository at this point in the history
  • Loading branch information
josepharhar authored and bbeck13 committed Mar 24, 2017
1 parent 1ca3212 commit 67b10b5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
22 changes: 18 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,27 @@ if (UNIX AND NOT APPLE)
set(LINUX TRUE)
endif()

add_executable(${CMAKE_PROJECT_NAME} ${RHYTHM_RUNNER_MAIN} ${SOURCES} ${HEADERS} ${GLSL})
add_executable(LevelEditor ${LEVEL_EDITOR_MAIN} ${SOURCES} ${HEADERS} ${GLSL})

if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
add_definitions(-DDEBUG)
add_definitions(-DASSET_DIR="${CMAKE_SOURCE_DIR}/assets")
else()
# Use a relative path to the assets dir when doing a release build.
# Visual Studio will not be able to run release builds properly because
# it sets the current directory of the process outside of its own directory.
# http://stackoverflow.com/questions/4815423/how-do-i-set-the-working-directory-to-the-solution-directory-in-c
add_definitions(-DASSET_DIR="assets")
add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_SOURCE_DIR}/assets"
"$<TARGET_FILE_DIR:${CMAKE_PROJECT_NAME}>/assets")
add_custom_command(TARGET LevelEditor POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_SOURCE_DIR}/assets"
"$<TARGET_FILE_DIR:${CMAKE_PROJECT_NAME}>/assets")
endif()
add_definitions(-DASSET_DIR="${CMAKE_SOURCE_DIR}/assets")

add_executable(${CMAKE_PROJECT_NAME} ${RHYTHM_RUNNER_MAIN} ${SOURCES} ${HEADERS} ${GLSL})
add_executable(LevelEditor ${LEVEL_EDITOR_MAIN} ${SOURCES} ${HEADERS} ${GLSL})

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
Expand Down
10 changes: 8 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

<body>
<div class="container asdf">
<h1><b>Rhythm Runner</b></h1>
<h1><b>Rhythm Runner</b> <a class="link-button btn btn-default btn-primary" href="https://github.com/bbeck13/RhythmRunner/releases/latest">Download Latest Release on GitHub</a></h1>
<h2><em>You took candy from a stranger at Burning Man 2020...</em></h2>
<p>Now you must guide your astral bike to safety. Feel the music and let it guide you home. Collect the most notes so you can brag to your family and friends about how you totally ran the rhythm.</p>
<h2>Team</h2>
<p>Alex Ottoboni, Braden Beck, Matthew Stewart, Alex Nguyen, Joseph Arhar, with object models by Ansley Chen</p>
<img src="team.jpg">
<img id="team-header" src="team.jpg" onmouseover="headerOver()" onmouseout="headerOut()">
<h2>User Guide</h2>
<p>Press the spacebar to jump, press it again to double jump. Use A and D to move left and right to avoid obstacles. Collect the notes for points and the pills for "power ups". Run the Rhythm!</p>
<img src="guide.png">
Expand Down Expand Up @@ -69,6 +69,12 @@ <h2>Thanks for Running!</h2>
function footerOut() {
$('#team-footer').attr('src', 'team2.jpg');
}
function headerOver() {
$('#team-header').attr('src', 'team4.jpg');
}
function headerOut() {
$('#team-header').attr('src', 'team.jpg');
}
</script>
</body>
</html>
Binary file added docs/team4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 67b10b5

Please sign in to comment.