Skip to content
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

Different way for saving states. #41

Open
BeezBumba opened this issue Jan 31, 2024 · 7 comments
Open

Different way for saving states. #41

BeezBumba opened this issue Jan 31, 2024 · 7 comments

Comments

@BeezBumba
Copy link

Instead of clicking two save and load state buttons, I could use the game instead. All of the games have a built in save option like OOT or SM64. How would you go by saving that way. I feel like it could help with accidentally clicking save state when loading a game so your progress is not erased.

@nbarkhina
Copy link
Owner

It already does that. Whenever you see the emulator saying "Saving Sram..." it is saving the Save File into the browser. Later if you come back and use the same rom file it will load that Save.

@BeezBumba
Copy link
Author

Sorry for my part. I am still a little new to coding.

@BeezBumba
Copy link
Author

Another question, I'm having a hard time finding where the canvas is given the width and height, I would like to have the canvas fill up the screen after you selected the rom. I don't like full screen, mainly on mobile, because when you go in full screen, the keyboard just does not work? It's a problem with safari I'm pretty sure.

@nbarkhina
Copy link
Owner

nbarkhina commented Feb 1, 2024

there's two places, if you are on mobile then it gets it from the window.innerWidth via the setupMobileMode() method in script.js

image

Then it calls resizeCanvas which actually sets the size.

image

in desktop mode it's based on the zoom setting. basically just set this.canvasSize to whatever you want and then call this.resizeCanvas()

@BeezBumba
Copy link
Author

Thanks, but when i tried that out it will just fill the whole screen, but since its N64, the screen is more square. is there a way to
unlock it so it can stretch based off screen width?

@nbarkhina
Copy link
Owner

that's what it already does it stretches based on screen width. the function resizeCanvas() maintains the correct aspect ratio. what's probably happening is that when the phone is in landscape the square is past the bottom of youre screen.

@BeezBumba
Copy link
Author

Well how do I unlock aspect ratio. Another person already did it, https://lrusso.github.io/Nintendo64/Nintendo64.htm , but when you try to import the game, it only allows .n64 types. So changing the file extension might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants