Skip to content

Commit

Permalink
made window bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Perdue committed Mar 14, 2022
1 parent 2428099 commit e73969e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions Characters/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,7 @@ private Vector2 calculateLookAt()
{
Point pos = Scene.GridToTileLocation(Position);
Vector2 positionNew = Position;
if(positionNew.Y > 1)
{
positionNew.Y = Scene.TileToGridLocation(new Point(pos.X, 1)).Y;
}
if (positionNew.Y < -2)
{
positionNew.Y = Scene.TileToGridLocation(new Point(pos.X, -2)).Y;
}
positionNew.Y = Scene.TileToGridLocation(new Point(pos.X, -1)).Y;
if (pos.X < 0)
{
positionNew.X = Scene.TileToGridLocation(new Point(0, pos.Y)).X;
Expand Down
4 changes: 2 additions & 2 deletions Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ public override void Initialize()
guiImage = new Picture();
guiImage.Texture = logo;
guiImage.Anchor = UIAnchor.Top;
guiImage.Offset = new Vector2(0, 30);
guiImage.Offset = new Vector2(0, 100);
guiImage.Scale = 0.4f;
title = new Label();
title.Text = "CAMPUS CRAWL";
title.FontSize = 32;
title.Anchor = UIAnchor.Top;
title.Offset = new Vector2(0, 160);
title.Offset = new Vector2(0, 220);
startButton = new RectangleButton();
startButton.OnClick += startGame;
startButton.Anchor = UIAnchor.Center;
Expand Down
Binary file modified campus-crawl.teproj
Binary file not shown.

0 comments on commit e73969e

Please sign in to comment.