Generating Game Data from .txt files
Posted: Fri Jun 01, 2018 12:25 am
Hi all,
I'm new to Lua and LÖVE2d, and I want to make a game over this summer! Specifically, I want to make a strategy rpg, and was wondering if y'all have any ideas about how I could go about being able to generate cursor/play area through a text file.
ie/ if I were to have the below "x"s it would generate a 3x3 field (specifically it would be centred)
xxx
xxx
xxx
Possibly even having more complex files like:
xxx xx
xxx xxx
xxxxxxx
(where there can be tiles that don't contain information [whitespace] and other kinds of characters that generate tiles with different properties and etc.)
If you're having trouble picturing what I'm saying I've attached a link below (even though it's not great [it's the best I could find ]) I followed a tutorial (Gridlocked LÖVE2d Tutorial) and I have that working, but I'm having trouble coming up with a way I could get what I wanted. I like how that Gridlocked Tutorial works though, essentially what it covers as being the player, I'd like to rework into being a cursor.
Any and all suggestions, tutorials or whatever are welcome
Aforementioned Fire Emblem Gif
I'm new to Lua and LÖVE2d, and I want to make a game over this summer! Specifically, I want to make a strategy rpg, and was wondering if y'all have any ideas about how I could go about being able to generate cursor/play area through a text file.
ie/ if I were to have the below "x"s it would generate a 3x3 field (specifically it would be centred)
xxx
xxx
xxx
Possibly even having more complex files like:
xxx xx
xxx xxx
xxxxxxx
(where there can be tiles that don't contain information [whitespace] and other kinds of characters that generate tiles with different properties and etc.)
If you're having trouble picturing what I'm saying I've attached a link below (even though it's not great [it's the best I could find ]) I followed a tutorial (Gridlocked LÖVE2d Tutorial) and I have that working, but I'm having trouble coming up with a way I could get what I wanted. I like how that Gridlocked Tutorial works though, essentially what it covers as being the player, I'd like to rework into being a cursor.
Any and all suggestions, tutorials or whatever are welcome
Aforementioned Fire Emblem Gif