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?

7th Jan 2019, 4:29 PM
Siyam
Siyam - avatar
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
7th Jan 2019, 6:55 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
0
InvBoy I think I understand Thanks
8th Jan 2019, 4:57 PM
Siyam
Siyam - avatar