Not working maploader

This commit is contained in:
Rendo 2026-03-11 22:08:28 +05:00
commit 73bf0d83e1
2 changed files with 13 additions and 5 deletions

View file

@ -2,11 +2,14 @@
#include <raymath.h>
#include "components.h"
#include "world.h"
#include "maploader.h"
const int SCREEN_HEIGHT = 320;
const int SCREEN_WIDTH = 320;
int main() {
loadmap();
return 0;
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Test game");
@ -35,7 +38,3 @@ int main() {
return 0;
}
void load_map(const char * path){
}

View file

@ -1,8 +1,17 @@
#include "maploader.h"
#include <fstream>
#include <iostream>
#include "world.h"
void loadmap() {
std::ifstream input_stream;
input_stream.open("assets/map");
if(input_stream.is_open() == false)
return;
std::cout << input_stream.getline()
input_stream.close();
}