aboutsummaryrefslogtreecommitdiff
path: root/src/engine/draw_screen.h
blob: bfe8bf83a3e9b45914ab63407a10bef4f862323b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once


// every function call for drawing the screen goes here.
#include "engine/maths.h"
#include "ppu/ppu.h"

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>


#define HH_map_size_X 80
#define HH_map_size_Y 60

/** @brief return a single tile from world binary */
uint8_t hh_world_to_tile(vec2 pos);
/** @brief shift to level if viewport changed position */
void hh_draw_screen(vec2 viewport);
/** @brief send data to BAM memory from binary level */
void hh_setup_screen();
/** @brief send starting screen data to BAM memory from binary level */
void hh_setup_startingScreen();

/** @brief send shop screen data to BAM memory from binary level */
void hh_setup_shopScreen();