<commit_before>/* File: main.c
 * Authors: Chickendude, add
 * Description: VOID */

#define DEBUG

// Includes NDS
#include <nds.h>	// Main NDS equates
#include <stdio.h>	// For console stuff
#include "aux_macros.h"
#include "tilemap.h"
#include "font.h"
#include "tiles.h"
#include "objecttypes.h"
#include "movement.h"

// Equates
// We are currently not using these, commented to avoid clutter in
// the namespace.
/* #define M_BASE0 0
   #define M_BASE1 1
   #define M_BASE2 2
   #define M_BASE3 3
   #define T_BASE0 0
   #define T_BASE1 1 */

/* Each map entry is apparently 2 bytes, since a tileset can hold up
 * to 1024 tiles. Map is currently exactly same size as screen,
 * 32 8x8 tiles wide, 24 tiles tall. */
global_variable u16 map2[] = {
	0,1,2,3,0,4,0,1,2,3,4,5,6,7,8,9,1,0,1,0,1,0,1,0,2,0,3,0,4,0,5,0,1,0,0,0,0,1,1,0,0,2,2,0,0,0,3,3,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,2,0,3,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,1,
	0,1,3,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,2,0,3,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,0,2,2,0,0,3,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,1,
	0,1,0,0,0,0,0,0,0,0,6,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,0,0,3,0,3,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,1,
	1,0,0,5,0,2,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,0,0,0,3,3,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,1,
	0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,<commit_msg>Removed defines to replace with enums.<commit_after>/* File: main.c
 * Authors: Chickendude, add
 * Description: File containing main */

#define DEBUG

// Includes NDS
#include <nds.h>	// Main NDS equates
#include <stdio.h>	// For console stuff
#include "aux_macros.h"
#include "tilemap.h"
#include "font.h"
#include "tiles.h"
#include "objects.h"
#include "movement.h"

// Equates
enum {
    SCREEN_TOP = 0,
    SCREEN_BOTTOM = 192,

    SCREEN_LEFT = 0,
    SCREEN_RIGHT = 256
};

enum {
    M_BASE0 = 0,
    M_BASE1 = 1,
    M_BASE2 = 2,
    M_BASE3 = 3,

    T_BASE0 = 0,
    T_BASE1 = 1
};


/* Each map entry is apparently 2 bytes, since a tileset can hold up
 * to 1024 tiles. Map is currently exactly same size as screen,
 * 32 8x8 tiles wide, 24 tiles tall. */
global_variable u16 map2[] = {
	0,1,2,3,0,4,0,1,2,3,4,5,6,7,8,9,1,0,1,0,1,0,1,0,2,0,3,0,4,0,5,0,1,0,0,0,0,1,1,0,0,2,2,0,0,0,3,3,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,
	1,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,2,0,3,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,1,
	0,1,3,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,2,0,3,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,0,2,2,0,0,3,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,1,
	0,1,0,0,0,0,0,0,0,0,6,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,0,0,3,0,3,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,1,
	1,0,0,5,0,2,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,2,0,0,0,0,3,3,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,1,
	0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
{'fraction_non_alphanumeric': 0.31816838995568686, 'fraction_numerical': 0.2824224519940916, 'mean_word_length': 7.507537688442211, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1621961', 'n_tokens_mistral': 2436, 'n_tokens_neox': 2385, 'n_words': 211}