Skip to content

Commit

Permalink
Created a README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leslieyip02 committed Jan 20, 2023
1 parent a58f9a7 commit bbad030
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Racing 🚗

![demo gif](./assets/gifs/demo.gif)

site: https://leslieyip02.github.io/racing/

## Controls
Action | Button(s)
----------------- | --------------------------------
Move forward | <kbd>w</kbd>
Move backward | <kbd>s</kbd> / <kbd>shift</kbd>
Turn left | <kbd>a</kbd>
Turn right | <kbd>d</kbd>
Increase thrust | <kbd>↑</kbd> / 🖱️ scroll up
Decrease thrust | <kbd>↓</kbd> / 🖱️ scroll down
Reverse camera | <kbd>r</kbd>

## Speedrun "Tech"
#### *These are features, not bugs*

### Shortcuts
When passing through a checkpoint, the system only checks that it's index is greater than the vehicle's current checkpoint. This allows checkpoints to be skipped by jumping between segments of the track.

![shortcut gif](./assets/gifs/shortcut.gif)

### Jumps
A delta time value is passed into the scene everytime its `update()` method is called. This `dt` value keeps increasing even the page is not being loaded or updated.

Tabbing between pages can cause the vehicle to "jump" because its displacement from its current position is equal to its `velocity` multiplied by `dt`.

![jump gif](./assets/gifs/jump.gif)
Binary file added assets/gifs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gifs/jump.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gifs/shortcut.gif
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 bbad030

Please sign in to comment.