test tiles
This commit is contained in:
@ -47,6 +47,7 @@ void drawOverworldDraw(void) {
|
||||
};
|
||||
uint8_t colorCount = sizeof(colors) / sizeof(Color);
|
||||
|
||||
BeginBlendMode(BLEND_ALPHA_PREMULTIPLY);
|
||||
do {
|
||||
// Base layer
|
||||
for(uint8_t i = 0; i < CHUNK_TILE_COUNT; i++) {
|
||||
@ -98,6 +99,7 @@ void drawOverworldDraw(void) {
|
||||
|
||||
chunk++;
|
||||
} while(chunk < CHUNK_MAP.chunks + CHUNK_MAP_COUNT);
|
||||
EndBlendMode();
|
||||
|
||||
// Entities
|
||||
entity_t *entity = ENTITIES;
|
||||
|
@ -45,7 +45,7 @@ void renderDraw(void) {
|
||||
|
||||
// Draw the render texture to the screen.
|
||||
BeginDrawing();
|
||||
ClearBackground(WHITE);
|
||||
ClearBackground(RED);
|
||||
// Keep aspect and center the render
|
||||
int32_t renderWidth, renderHeight, renderX, renderY;
|
||||
const int32_t width = GetScreenWidth();
|
||||
@ -74,6 +74,8 @@ void renderDraw(void) {
|
||||
|
||||
void renderDispose(void) {
|
||||
UnloadRenderTexture(RENDER_SCREEN_TEXTURE);
|
||||
UnloadTexture(RENDER_TILEMAP_TEXTURE);
|
||||
UnloadTexture(RENDER_ENTITIES_TEXTURE);
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user