Not working maploader
This commit is contained in:
parent
366bdf7d20
commit
73bf0d83e1
2 changed files with 13 additions and 5 deletions
|
|
@ -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){
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue