tweak world & physics constants a bit
GitOrigin-RevId: 8921482b3f88d8384f56046501f4fd8d65df5851
This commit is contained in:
parent
e7006525be
commit
0b45e545a3
@ -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;
|
||||
|
@ -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…
Reference in New Issue
Block a user