Browse Source

tweak world & physics constants a bit

GitOrigin-RevId: 8921482b3f
master
Colin McMillen 4 years ago
parent
commit
0b45e545a3
  1. 6
      Jumpy.Shared/Player.cs
  2. 9
      Jumpy.Shared/World.cs

6
Jumpy.Shared/Player.cs

@ -14,9 +14,9 @@ namespace Jumpy {
private const int spriteSize = 48;
private const int spriteWidth = 7;
private const int bottomPadding = 1;
private const int moveSpeed = 200;
private const int jumpSpeed = 600;
private const int gravity = 2000;
private const int moveSpeed = 150;
private const int jumpSpeed = 500;
private const int gravity = 1500;
private Point position = new Point(Camera.Width / 2, 10);
private Facing facing = Facing.Right;

9
Jumpy.Shared/World.cs

@ -62,14 +62,17 @@ namespace Jumpy {
for (int j = 0; j < height; j++) {
for (int i = 0; i < width; i++) {
Terrain terrain;
if (j < height - 3) {
if (j < height - 2) {
terrain = Terrain.Empty;
} else if (j == height - 3) {
} else if (j == height - 2) {
terrain = Terrain.Grass;
} else {
terrain = Terrain.Rock;
}
if (j == 4 && 11 < i && i < 15) {
if (j == 6 && 11 < i && i < 15) {
terrain = Terrain.Grass;
}
if (j == 3 && 15 < i && i < 19) {
terrain = Terrain.Grass;
}
var position = new Rectangle(i * TileSize, j * TileSize, TileSize, TileSize);

Loading…
Cancel
Save