Open jesthub opened 9 years ago
are you sure everything is set up right? Try 500: 375px
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?
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 notifications@github.com 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 https://github.com/nesbox/emulator/issues/14#issuecomment-100509532.
does that help any?
On Sat, May 9, 2015 at 11:18 AM, Will Dudley coldmustard899@gmail.com 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 notifications@github.com 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 https://github.com/nesbox/emulator/issues/14#issuecomment-100509532.
It only changed the size of the container. The game still retains its original size (320x288) and the remaining space is all black.
The gba games are just smaller. Thats the way it was programed. On May 11, 2015 1:19 AM, "jesthub" notifications@github.com 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 https://github.com/nesbox/emulator/issues/14#issuecomment-100785452.
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.
I noticed that when loading GBA games, the frame is quite small. Is there a way to adjust this? GBC is set as 320px by 288px. It will look nice if it can be as wide as 640px. If there is a way to do this, please point me in the right direction. I checked all source files (as3,js,) but can't find it.