Isömap

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Isömap

Post by Saegor »

thanks everybody for comments

darky : thanks, it work great, but i will left player movement in very basic state for now because the priority is the map engine

substitute : could you elaborate ? you suggest shadows for everything or just under the player ? the first case is too hard for me to code, the second is simple but not very usefull (or maybe you said that to darky for his version ?)

EDIT 3 :
there are some quick test .love
try them all !
Attachments
isomap_test2.love
(6.87 KiB) Downloaded 351 times
isomap-test.love
(4.7 KiB) Downloaded 358 times
plouf.png
plouf.png (8.09 KiB) Viewed 11297 times
Current work : Isömap
philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

Re: Isömap

Post by philnelson »

This is exactly what I was looking for. Kick-ass.
User avatar
Darky
Citizen
Posts: 66
Joined: Sat Jun 02, 2012 1:41 pm
Contact:

Re: Isömap

Post by Darky »

That's really nice..

But, are you against smooth movements ?
with smooth waves : https://dl.dropbox.com/u/95939/nice_waves.love

instead of

Code: Select all

--waves == 1 or 0
			if (gx % 2 + gy % 2) % 2 ==
			math.floor(love.timer.getTime()*2%2) then
			
				y5 = y5 - z
				y7 = y7 - z
				
				y6 = y6 + z
				y8 = y8 + z
			
			else
				y5 = y5 + z
				y7 = y7 + z
				
				y6 = y6 - z
				y8 = y8 - z
			
			end
I put :

Code: Select all

local t= math.sin(5*love.timer.getTime()%(2*math.pi)+(( gx % 2 + gy % 2) % 2)*math.pi)

				y5 = y5 + t*z
				y7 = y7 + t*z
				
				y6 = y6 - t*z
				y8 = y8 - t*z
(without any fps drop on my old laptop !)
What do you think ?
http://darky-ben.fr/Xut my webcomic (french)
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Isömap

Post by Saegor »

darky, it's very impressive !

i tried to make the same but it never worked.
do you permit to integrate it in the next version of isömap ?

thank you for all you great help !
Current work : Isömap
User avatar
Darky
Citizen
Posts: 66
Joined: Sat Jun 02, 2012 1:41 pm
Contact:

Re: Isömap

Post by Darky »

Saegor wrote:do you permit to integrate it in the next version of isömap ?
Of course you can !

Here is some performance tips (mainly from tis topic : viewtopic.php?f=3&t=3500)
T-Bone wrote: I only looked through the first one there quickly, and was really surprised that

Code: Select all

local sin = math.sin
many times sin(x)
is faster than

Code: Select all

many times math.sin(x)
so my code is perfectible ! (you just have to localize math.floor, math.sin and math.pi)

also : do you know that I get 60fps (instead of 30) with LoveJIT ?

Keep up the good work !
http://darky-ben.fr/Xut my webcomic (french)
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Isömap

Post by Saegor »

yeah, it's now in 0.092 !
i rewrited slightly the code but it's you who made it working, thanks again !

i know the localized functions tip but it's easy to add after all the work so i will let the code without it for now

next stages are : a better z axis rotation system (with eventually a +45° rotation function !)
a minimap (because it's fun and esay to code)

i also want to rewrite some basic lines like the face_setColor function because i cleaned some things and now grass is growing under water !

i hope we will make someday the best roguelike-styled graphical engine ever !

ps : isömap on my eeepc with unsupported intel card is running at max 21fps so i can't imagine how it will be without the LuaJIT version :p
Current work : Isömap
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Isömap

Post by Roland_Yonaba »

Please, Git that. Or bitbucket it, or whatever, I don't care, this project really deserves more visibility.
Anyway, awesome progresses, just tried the 0.092 release. Keep it up!
philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

Re: Isömap

Post by philnelson »

Roland_Yonaba wrote:Please, Git that. Or bitbucket it, or whatever, I don't care, this project really deserves more visibility.
Anyway, awesome progresses, just tried the 0.092 release. Keep it up!
Seconded.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Isömap

Post by Robin »

What Roland said.

Also, I made a little change that makes the camera angle move up and down, to make it more clear if the player was in the air or on the ground. Unfortunately, it seems to make me seasick. You might not want to look at this.
Attachments
isomap_0.092.love
(6.48 KiB) Downloaded 372 times
Help us help you: attach a .love.
emisaur
Prole
Posts: 1
Joined: Sat Feb 09, 2013 1:54 am
Contact:

Re: Isömap

Post by emisaur »

This is super impressive, time to read your code
~ Emily
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 53 guests