瀏覽代碼

bigger chunks, terminal velocity

opengl-renderer-broken
Martin Dørum 4 年之前
父節點
當前提交
18f421f540
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. 2
    2
      core.mod/src/entities/EntPlayer.h
  2. 2
    2
      libswan/include/swan/common.h

+ 2
- 2
core.mod/src/entities/EntPlayer.h 查看文件

@@ -20,9 +20,9 @@ public:

private:
static constexpr float FORCE = 3000;
static constexpr float JUMP_FORCE = 9;
static constexpr float JUMP_FORCE = 10;
static constexpr float MASS = 80;
static constexpr Swan::Vec2 FRICTION = Swan::Vec2(400, 0);
static constexpr Swan::Vec2 FRICTION = Swan::Vec2(400, 25);
static constexpr Swan::Vec2 SIZE = Swan::Vec2(0.6, 1.9);

enum class State {

+ 2
- 2
libswan/include/swan/common.h 查看文件

@@ -9,8 +9,8 @@ namespace Swan {

static constexpr int TILE_SIZE = 32;
static constexpr int TICK_RATE = 20;
static constexpr int CHUNK_HEIGHT = 4;
static constexpr int CHUNK_WIDTH = 8;
static constexpr int CHUNK_HEIGHT = 16;
static constexpr int CHUNK_WIDTH = 24;

using TilePos = Vec2i;
using ChunkPos = Vec2i;

Loading…
取消
儲存