0
Take a file in argument?
Hello everyone ! Am trying to do an endless running game with sfml. I would like to take a file un argument wich will contain the map of my crurent game, but I don’t know how to do this. Can anyone help me?
2 Respuestas
+ 3
Example with a plattaformer:
You can use a txt file like this:
000000000
110001111
000000000
001111100
000000002
111111111
Where 0 is nothing, 1 is a wall and 2 is the player.
You have to write an algorithm to read this and draw in the screen the level
0
InvBoy I think I understand Thanks