Commit 3818b23d authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Cleanups

parent a99241d7
......@@ -384,7 +384,7 @@ ifeq ($(platform), qnx)
CFLAGS += -Wp,-MMD
CXXFLAGS += -Wp,-MMD
else
CFLAGS += -std=c99 -MMD
CFLAGS += -std=c89 -MMD
CXXFLAGS += -std=gnu++98 -MMD
endif
......
#ifndef _config_h_
#define _config_h_
// app parameters
/* app parameters */
#define DEBUG 0
#define FULLSCREEN 0
#define WINDOW_WIDTH 1024
......@@ -14,7 +14,7 @@
#define DAY_LENGTH 600
#define INVERT_MOUSE 0
// rendering options
/* rendering options */
#define SHOW_LIGHTS 1
#define SHOW_PLANTS 1
#define SHOW_CLOUDS 1
......@@ -34,7 +34,7 @@ extern float DEADZONE_RADIUS;
extern unsigned RENDER_CHUNK_RADIUS;
// key bindings
/* key bindings */
#define CRAFT_KEY_FORWARD 'W'
#define CRAFT_KEY_BACKWARD 'S'
#define CRAFT_KEY_LEFT 'A'
......@@ -51,9 +51,11 @@ extern unsigned RENDER_CHUNK_RADIUS;
#define CRAFT_KEY_COMMAND '/'
#define CRAFT_KEY_SIGN '`'
// advanced parameters
/* advanced parameters */
#define CREATE_CHUNK_RADIUS 10
//#define RENDER_CHUNK_RADIUS 10
#if 0
#define RENDER_CHUNK_RADIUS 10
#endif
#define RENDER_SIGN_RADIUS 4
#define DELETE_CHUNK_RADIUS 14
#define CHUNK_SIZE 32
......
......@@ -2,7 +2,7 @@
#include "util.h"
const int items[] = {
// items the user can build
/* items the user can build */
GRASS,
SAND,
STONE,
......@@ -62,24 +62,24 @@ const int items[] = {
const int item_count = sizeof(items) / sizeof(int);
const int blocks[256][6] = {
// w => (left, right, top, bottom, front, back) tiles
{0, 0, 0, 0, 0, 0}, // 0 - empty
{16, 16, 32, 0, 16, 16}, // 1 - grass
{1, 1, 1, 1, 1, 1}, // 2 - sand
{2, 2, 2, 2, 2, 2}, // 3 - stone
{3, 3, 3, 3, 3, 3}, // 4 - brick
{20, 20, 36, 4, 20, 20}, // 5 - wood
{5, 5, 5, 5, 5, 5}, // 6 - cement
{6, 6, 6, 6, 6, 6}, // 7 - dirt
{7, 7, 7, 7, 7, 7}, // 8 - plank
{24, 24, 40, 8, 24, 24}, // 9 - snow
{9, 9, 9, 9, 9, 9}, // 10 - glass
{10, 10, 10, 10, 10, 10}, // 11 - cobble
{11, 11, 11, 11, 11, 11}, // 12 - light stone
{12, 12, 12, 12, 12, 12}, // 13 - dark stone
{13, 13, 13, 13, 13, 13}, // 14 - chest
{14, 14, 14, 14, 14, 14}, // 15 - leaves
{15, 15, 15, 15, 15, 15}, // 16 - cloud
/* w => (left, right, top, bottom, front, back) tiles */
{0, 0, 0, 0, 0, 0}, /* 0 - empty */
{16, 16, 32, 0, 16, 16}, /* 1 - grass */
{1, 1, 1, 1, 1, 1}, /* 2 - sand */
{2, 2, 2, 2, 2, 2}, /* 3 - stone */
{3, 3, 3, 3, 3, 3}, /* 4 - brick */
{20, 20, 36, 4, 20, 20}, /* 5 - wood */
{5, 5, 5, 5, 5, 5}, /* 6 - cement */
{6, 6, 6, 6, 6, 6}, /* 7 - dirt */
{7, 7, 7, 7, 7, 7}, /* 8 - plank */
{24, 24, 40, 8, 24, 24}, /* 9 - snow */
{9, 9, 9, 9, 9, 9}, /* 10 - glass */
{10, 10, 10, 10, 10, 10}, /* 11 - cobble */
{11, 11, 11, 11, 11, 11}, /* 12 - light stone */
{12, 12, 12, 12, 12, 12}, /* 13 - dark stone */
{13, 13, 13, 13, 13, 13}, /* 14 - chest */
{14, 14, 14, 14, 14, 14}, /* 15 - leaves */
{15, 15, 15, 15, 15, 15}, /* 16 - cloud */
{0, 0, 0, 0, 0, 0}, // 17
{0, 0, 0, 0, 0, 0}, // 18
{0, 0, 0, 0, 0, 0}, // 19
......@@ -130,7 +130,7 @@ const int blocks[256][6] = {
};
const int plants[256] = {
// w => tile
/* w => tile */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 16
48, // 17 - tall grass
49, // 18 - yellow flower
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment