Skip to content

Instantly share code, notes, and snippets.

@IceDragon200
Last active December 12, 2015 02:28
Show Gist options
  • Save IceDragon200/4698953 to your computer and use it in GitHub Desktop.
Save IceDragon200/4698953 to your computer and use it in GitHub Desktop.
A collection of various resolutions for use in any game that wants fancy resolutions.
#
# core/resolution.rb
# by IceDragon (mistdragon100@gmail.com)
# dc 02/02/2013
# dm 02/02/2013
# vr 1.0
#
# INSTRUCTIONS
# Simply uncomment the resolution you wish to use
#
# DICTIONARY
# Uncomment - Remove the # before the line
begin
w, h = 544, 416
## YOU START HERE
# A Paper - Landscape
ppi = 72 # pixel per inch
#w, h = 93.6 * ppi, 66.2 * ppi # 4A0
#w, h = 66.2 * ppi, 46.8 * ppi # 2A0
#w, h = 46.8 * ppi, 33.1 * ppi # A0
#w, h = 33.1 * ppi, 23.4 * ppi # A1
#w, h = 23.4 * ppi, 16.5 * ppi # A2
#w, h = 16.5 * ppi, 11.7 * ppi # A3
#w, h = 11.7 * ppi, 8.3 * ppi # A4
#w, h = 8.3 * ppi, 5.8 * ppi # A5
#w, h = 5.8 * ppi, 4.1 * ppi # A6
#w, h = 4.1 * ppi, 2.9 * ppi # A7
#w, h = 2.9 * ppi, 2.0 * ppi # A8
#w, h = 2.0 * ppi, 1.5 * ppi # A9
#w, h = 1.5 * ppi, 1.0 * ppi # A10
# SNES
#w, h = 256, 224 # Progessive 1
#w, h = 512, 224 # Progessive 2
#w, h = 256, 239 # Progessive 3
#w, h = 512, 239 # Progessive 4
#w, h = 512, 448 # Interlace 1
#w, h = 512, 478 # Interlace 2
# GBA
#w, h = 240, 160
# Nintendo DS
#w, h = 256, 192
# Nintendo DS XL / 3DS
#w, h = 320, 240
# Nintendo DS 3DS Top
#w, h = 800, 240
# Standard
#w, h = 640, 480
# Paddle
#w, h = 480, 640
# EDOS default
#w, h = 608, 444
##
# flip resolution
#w, h = h, w
##
# scale
#w, h = w * 2, h * 2 # 2x
#w, h = w * 4, h * 4 # 4x
#w, h = w * 8, h * 8 # 8x
#w, h = w * 10, h * 10 # 10x
##
# dual screen - horizontal
#w *= 2
##
# dual screen - vertical
#h *= 2
## DO NOT TOUCH THIS
Graphics.resize_screen(w, h)
end
__END__
4A0 2378 x 1682 mm 93.6 x 66.2 in
2A0 1682 x 1189 mm 66.2 x 46.8 in
A0 1189 x 841 mm 46.8 x 33.1 in
A1 841 x 594 mm 33.1 x 23.4 in
A2 594 x 420 mm 23.4 x 16.5 in
A3 420 x 297 mm 16.5 x 11.7 in
A4 297 x 210 mm 11.7 x 8.3 in
A5 210 x 148 mm 8.3 x 5.8 in
A6 148 x 105 mm 5.8 x 4.1 in
A7 105 x 74 mm 4.1 x. 2.9 in
A8 74 x 52 mm 2.9 x 2.0 in
A9 52 x 37 mm 2.0 x 1.5 in
A10 37 x 26 mm 1.5 x 1.0 in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment