GithubHelp home page GithubHelp logo

Comments (7)

coldmustard899 avatar coldmustard899 commented on June 3, 2024

are you sure everything is set up right? Try 500: 375px

from emulator.

jesthub avatar jesthub commented on June 3, 2024

It automatically does the resizing by itself once the rom has been loaded. Before loading any rom, the size will be 640x480. If you'll load a snes/sega roms.. the size will be around 640px wide but for gbc/gba will be half of that. Or is there some customization that I'm missing?

from emulator.

coldmustard899 avatar coldmustard899 commented on June 3, 2024

var resizeOwnEmulator = function(width, height)
{
var emulator = $('#emulator');
emulator.css('width', width);
emulator.css('height', height);
}

On Sat, May 9, 2015 at 11:00 AM, jesthub [email protected] wrote:

It automatically does the resizing by itself once the rom has been loaded.
Before loading any rom, the size will be 640x480. If you'll load a
snes/sega roms.. the size will be around 640px wide but for gbc/gba will be
half of that. Or is there some customization that I'm missing?


Reply to this email directly or view it on GitHub
#14 (comment).

from emulator.

coldmustard899 avatar coldmustard899 commented on June 3, 2024

does that help any?

On Sat, May 9, 2015 at 11:18 AM, Will Dudley [email protected]
wrote:

var resizeOwnEmulator = function(width, height)
{
var emulator = $('#emulator');
emulator.css('width', width);
emulator.css('height', height);
}

On Sat, May 9, 2015 at 11:00 AM, jesthub [email protected] wrote:

It automatically does the resizing by itself once the rom has been
loaded. Before loading any rom, the size will be 640x480. If you'll load a
snes/sega roms.. the size will be around 640px wide but for gbc/gba will be
half of that. Or is there some customization that I'm missing?


Reply to this email directly or view it on GitHub
#14 (comment).

from emulator.

jesthub avatar jesthub commented on June 3, 2024

It only changed the size of the container. The game still retains its original size (320x288) and the remaining space is all black.

from emulator.

coldmustard899 avatar coldmustard899 commented on June 3, 2024

The gba games are just smaller. Thats the way it was programed.
On May 11, 2015 1:19 AM, "jesthub" [email protected] wrote:

It only changed the size of the container. The game still retains its
original size (320x288) and the remaining space is all black.


Reply to this email directly or view it on GitHub
#14 (comment).

from emulator.

hgoda90 avatar hgoda90 commented on June 3, 2024

To change the width and height of any of the systems, you will have to go to the Nesbox.as file and change the Scale X and Scale Y values. You will also have to change:

JSProxy.resizeOwnEmulator(Variables.Width x 2, Variables.Height x 2);

to what ever you want the multiplications to be. If you look at the code of the gb file the width is set to 160 and the height is set to 144. So if you take those two and multiply them by two like the above line of code does, then you will get the same values as 320 and 288. So if you change the 2s to 3s than the value would return 480 and 432, for example.

I think that if you change the values here than it will actually change all the systems, but if you just want to change gba and gb than all you have to do is use the src files to create a new project in Flash Develop. Than after you change the values to what you want, build the project and save it possibly as gbBox.swf. After that all you would have to do is change the embed code on the gb and gba pages to point toward gbBox.swf instead of Nesbox.swf

Hope this helps, because this actually took me about two days to figure this out and I felt really dumb after I found out this is how you are supposed to resize the systems.

from emulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.