From 70d8bbfa29e35dadfcc900f5cdd1f60f725657c8 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 17 Dec 2019 17:53:38 -0500 Subject: [PATCH] make camera 1/4 size instead of 1/6 update World to match GitOrigin-RevId: 0bcfc250909ad8f3e57d29a8cd78f1ea69dc58a7 --- Jumpy.Shared/Camera.cs | 2 +- Jumpy.Shared/World.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Jumpy.Shared/Camera.cs b/Jumpy.Shared/Camera.cs index 893b5c7..3900c24 100644 --- a/Jumpy.Shared/Camera.cs +++ b/Jumpy.Shared/Camera.cs @@ -5,7 +5,7 @@ using System; // https://gamasutra.com/blogs/ItayKeren/20150511/243083/Scroll_Back_The_Theory_and_Practice_of_Cameras_in_SideScrollers.php namespace Jumpy { 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 Height { get => bbox.Height; } diff --git a/Jumpy.Shared/World.cs b/Jumpy.Shared/World.cs index 351e5f2..eddec0b 100644 --- a/Jumpy.Shared/World.cs +++ b/Jumpy.Shared/World.cs @@ -93,6 +93,11 @@ namespace Jumpy { public int Height { get; } string[] worldDesc = new string[] { +" ", +" ", +" ", +" ", +" ", " X ", " . ", " X <======> <==X X <=> XX . ",