[help]how to crate irregular shape island?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
xss6985
Prole
Posts: 12
Joined: Wed Jun 15, 2011 5:22 am

[help]how to crate irregular shape island?

Post by xss6985 » Fri Feb 28, 2014 11:54 am

like sandbox game.I want to start my game with an irregular shape island everytime.but I dont know how to do that.
can anyone give me some help?
Attachments
noise.love
(797 Bytes) Downloaded 49 times
Last edited by xss6985 on Sat Mar 01, 2014 7:08 am, edited 1 time in total.

User avatar
veethree
Inner party member
Posts: 814
Joined: Sat Dec 10, 2011 7:18 pm

Re: [help]how to crate irregular shape island?

Post by veethree » Fri Feb 28, 2014 12:04 pm

If it's tile based, Perhaps you could use love.math.noise(). I've never tried using it to generate islands, But i did make a little prototype for a game that uses it to generate a cave system. You can look at the code and get an idea of how it's used.
Attachments
Cave Game.love
0.9.0
(39.88 KiB) Downloaded 54 times

xss6985
Prole
Posts: 12
Joined: Wed Jun 15, 2011 5:22 am

Re: [help]how to crate irregular shape island?

Post by xss6985 » Fri Feb 28, 2014 1:05 pm

veethree wrote:If it's tile based, Perhaps you could use love.math.noise(). I've never tried using it to generate islands, But i did make a little prototype for a game that uses it to generate a cave system. You can look at the code and get an idea of how it's used.
thank you.and this is my demo.it is much better now.
Attachments
lovegame.zip
(116.55 KiB) Downloaded 44 times

Post Reply

Who is online

Users browsing this forum: fela, MistyM and 7 guests