-
Notifications
You must be signed in to change notification settings - Fork 210
Various Title Screen Demo Enhancements #833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
someone2639
wants to merge
45
commits into
HackerN64:develop/3.0.0
Choose a base branch
from
someone2639:demo_upgrade
base: develop/3.0.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 38 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
44cd938
initial work to enhance demos
144cda2
game compiles and boots; still need to fix the initial DMA
d184844
full demo functionality has been restored
22e0f63
remove the first command (which was actually a header in the old form…
7053aa9
remove debug print
d094604
demos are actually fixed
f437e5f
remove temp tool
2c50720
return config defines to normal
31b887d
Recording demos now works through ISViewer
bdafc1d
clarify title_screen defines
be73c9d
add CCM demo; fix a small demo recording bug that added trailing spac…
17ddfb9
update ccm demo
60b71e5
add hmc demo
3a639d2
new PSS demo
bd2a1ad
new JRB demo (clickbait)
ea5355b
Add BBH demo
d4013f6
add failed owlless demo
1d7b018
Add failsafe so a user can't clobber the Demo segment
2f71da5
remove debug demo recorder during normal gameplay
2a73042
Create new demo format
cf95b11
Demos are now dynamically DMA'd into the segment memory; 3/6 demos co…
ed9dc70
add demo_system.c and move all related functions
dfb928a
PSS demo; HMC demo fixed
e37be3c
Add demo recording mode define
07c5a6c
Add DEMO_RECORDING_MODE
519cf02
More trying to fix demo desyncs
814fa60
revert back to input based demos
f75ca2b
clean up
1210d31
clean up more things
0f21f63
turn off ISVPRINT by default
caa635e
remove more debug stuff; fix a small printing bug while recording
d01ce13
fix that pinting bug the correct way
3e6e3a3
hide more stuff behind DISABLE_DEMO; bring back logo
ee0e36e
remove demos from rom if disabled
db9a354
remove vanilla demos entirely
5e09abe
turn off mario head'
961efa5
add demo tutorial
3224020
clarify how to end recording a demo
047533b
diff reduction
855fd30
flip DISABLE_DEMOS into ENABLE_DEMO_SYSTEM
c3018bc
flip the link script too
a1f439d
clarify DEMO_RECORDING_MODE
77ded6c
and the demo readme too
4f4777a
Merge branch 'develop/3.0.0' into demo_upgrade
a2f1ad7
clarify comment
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,17 @@ | ||
| ## Demos | ||
| To record a demo, a few steps have to be taken. | ||
| - Enable `DEMO_RECORDING_MODE` in `include/config/config_goddard.h`. | ||
| - Set a `START_LEVEL` or `TEST_LEVEL` in `config_game.h` or `config_debug.h`, respectively. | ||
| - Set `ISVPRINT=1` in the `Makefile` (or `UNF=1` if using the Ares emulator or a USB-enabled flashcart on console) | ||
| - Rebuild the repo, and launch an emulator with debug console support such as Parallel Launcher. | ||
|
|
||
| The demo recording mode will boot into the level you set, from which you can start moving around and interacting with the level and camera. Press the Start button to end the demo | ||
|
|
||
| To test the demo after it's done: | ||
|
|
||
| - Enable `KEEP_MARIO_HEAD` and comment out `DISABLE_DEMO` and `DEMO_RECORDING_MODE` in `config_goddard.h`. | ||
| - If you set a `TEST_LEVEL`, comment that out too. | ||
| - Set `ISVPRINT=0` in the Makefile if you don't need debug printing anymore. | ||
| - Build the game again and wait on the title screen. | ||
|
|
||
| To see demos faster on the title screen, edit `PRESS_START_DEMO_TIMER` in `src/game/demo_system.h`. The default is 800 frames (close to 27 seconds). |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,43 @@ | ||
| #pragma once | ||
| #include <PR/os_cont.h> | ||
|
|
||
| /* Demo Macros */ | ||
|
|
||
| .macro stick x, y | ||
| .byte \x, \y | ||
| .endm | ||
|
|
||
| .macro end_demo | ||
| .half 0 | ||
| .byte 0, 0 | ||
| .half 0 | ||
| .half 0 | ||
| .endm | ||
|
|
||
| .macro for holdcount_frames | ||
| .half \holdcount_frames | ||
| .endm | ||
|
|
||
| /* purely for legibility */ | ||
| #define frames | ||
|
|
||
| .macro press buttonMask | ||
| .half \buttonMask | ||
| .half 0 | ||
| .endm | ||
|
|
||
| /* Pretty names since pressing every button on a frame might overrun a buffer*/ | ||
| #define A A_BUTTON | ||
| #define B B_BUTTON | ||
| #define Z Z_TRIG | ||
| #define Start START_BUTTON | ||
| #define L L_TRIG | ||
| #define R R_TRIG | ||
|
|
||
| #define C_Up U_CBUTTONS | ||
| #define C_Down D_CBUTTONS | ||
| #define C_Left L_CBUTTONS | ||
| #define C_Right R_CBUTTONS | ||
|
|
||
| /* Macro for no button */ | ||
| #define _ 0 |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.