2021-03-02 11:17:40 +01:00
|
|
|
/* SPDX-License-Identifier: MIT
|
|
|
|
* Copyright (c) 2021 KikooDX
|
|
|
|
* This file is part of
|
|
|
|
* [Painfull Success CG](https://git.sr.ht/~kikoodx/painfull-success-cg),
|
|
|
|
* which is MIT licensed. The MIT license requires this copyright notice to be
|
|
|
|
* included in all copies and substantial portions of the software. */
|
2021-03-02 00:21:01 +01:00
|
|
|
#pragma once
|
|
|
|
#include "conf.h"
|
|
|
|
#include "vec2.h"
|
2021-03-04 16:19:15 +01:00
|
|
|
#include "tiles.h"
|
|
|
|
#include "lazyint.h"
|
2021-03-02 00:21:01 +01:00
|
|
|
|
|
|
|
typedef struct Level{
|
|
|
|
tile_t content[LEVEL_WIDTH * LEVEL_HEIGHT];
|
|
|
|
Vec2 start_pos;
|
|
|
|
} Level;
|
2021-03-02 00:44:58 +01:00
|
|
|
|
2021-03-04 16:19:15 +01:00
|
|
|
#include "player.h"
|
|
|
|
|
|
|
|
void level_load(Level *level, Player *player, u8 id);
|
2021-03-02 00:44:58 +01:00
|
|
|
void level_draw(Level level);
|
2021-03-02 15:09:35 +01:00
|
|
|
tile_t level_get_tile_at_px(Level level, Vec2 pos);
|