comment out toast & add a reference for later

GitOrigin-RevId: 684f5bf6433295082070ce81118b3b5080c10d81
This commit is contained in:
Colin McMillen 2019-12-17 17:20:26 -05:00
parent 22db0ee696
commit 81b62f883e

View File

@ -1,6 +1,8 @@
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using System; using System;
// Good background reading, eventually:
// 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 / 6, 1080 / 6);
@ -18,7 +20,7 @@ namespace Jumpy {
if (bbox.Left < 0) { if (bbox.Left < 0) {
bbox.Offset(-bbox.Left, 0); bbox.Offset(-bbox.Left, 0);
} }
Debug.Toast($"p: {player.X} c: {bbox.Center.X}"); // Debug.Toast($"p: {player.X} c: {bbox.Center.X}");
} }
} }
} }