-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a58f9a7
commit bbad030
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.