Hey Everyone,
So I've recently started making a new game (check my post about it here: viewtopic.php?f=5&t=80361)
Here is the GitHub Repo: https://github.com/tom7tomm/SuperDodger. And want to add in the blocks to be dodging. I want to have multiple formations of blocks to have the game randomly choose from, and want to have these stored in some kind of external file. I have looked around and found the love.filesystem.read but am not sure how to use this information and put it into my game. How do I do this? I want the file just to tell the game where to put the blocks to dodge.
Thanks!
using file as world data
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
using file as world data
Check out my blog - The place to find out about the latest tech news! http://thegeekcircle.blogspot.co.uk/
Re: using file as world data
I meant a file such as an xml, but I'll give that a try.
Thanks!
Thanks!
Check out my blog - The place to find out about the latest tech news! http://thegeekcircle.blogspot.co.uk/
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: using file as world data
why not just use lua? it is a scripting language, and less verbose than xml anywayMattyAB wrote:I meant a file such as an xml, but I'll give that a try.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: using file as world data
Ok, So I've got the code for the table, as well as the table that *should* be drawing the blocks. I will attach a .love file so that you can take a look. So why is this mechanism not working? I only want it drawing the block if it's set to true in the worldData.spawn() call. Also, how would I be able to have it moving across the screen as well as making more at the same time? is there some way I can add it to some kind of buffer or something, and then it keeps the block drawn as long as it is on the screen. How would I go about doing this?
Thanks!
Thanks!
- Attachments
-
- game.love
- (80.1 KiB) Downloaded 346 times
Check out my blog - The place to find out about the latest tech news! http://thegeekcircle.blogspot.co.uk/
Re: using file as world data
Any ideas Guys?
Check out my blog - The place to find out about the latest tech news! http://thegeekcircle.blogspot.co.uk/
Who is online
Users browsing this forum: No registered users and 6 guests