Browse Source

make camera 1/4 size instead of 1/6

update World to match

GitOrigin-RevId: 0bcfc25090
master
Colin McMillen 4 years ago
parent
commit
70d8bbfa29
  1. 2
      Jumpy.Shared/Camera.cs
  2. 5
      Jumpy.Shared/World.cs

2
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; }

5
Jumpy.Shared/World.cs

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

Loading…
Cancel
Save