make camera 1/4 size instead of 1/6

update World to match

GitOrigin-RevId: 0bcfc250909ad8f3e57d29a8cd78f1ea69dc58a7
This commit is contained in:
Colin McMillen 2019-12-17 17:53:38 -05:00
parent 010424f43f
commit 70d8bbfa29
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@ using System;
// https://gamasutra.com/blogs/ItayKeren/20150511/243083/Scroll_Back_The_Theory_and_Practice_of_Cameras_in_SideScrollers.php // https://gamasutra.com/blogs/ItayKeren/20150511/243083/Scroll_Back_The_Theory_and_Practice_of_Cameras_in_SideScrollers.php
namespace Jumpy { namespace Jumpy {
class Camera { class Camera {
private Rectangle bbox = new Rectangle(0, 0, 1920 / 6, 1080 / 6); private Rectangle bbox = new Rectangle(0, 0, 1920 / 4, 1080 / 4);
public int Width { get => bbox.Width; } public int Width { get => bbox.Width; }
public int Height { get => bbox.Height; } public int Height { get => bbox.Height; }

View File

@ -93,6 +93,11 @@ namespace Jumpy {
public int Height { get; } public int Height { get; }
string[] worldDesc = new string[] { string[] worldDesc = new string[] {
" ",
" ",
" ",
" ",
" ",
" X ", " X ",
" . ", " . ",
" X <======> <==X X <=> <XX> XX . ", " X <======> <==X X <=> <XX> XX . ",