Isömap

Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Isömap

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
isomap-test.love
plouf.png (8.09 KiB) Viewed 6352 times
Current work : Isömap

philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

Re: Isömap

This is exactly what I was looking for. Kick-ass.

Darky
Citizen
Posts: 66
Joined: Sat Jun 02, 2012 1:41 pm
Contact:

Re: Isömap

That's really nice..

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

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)

Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Isömap

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

Darky
Citizen
Posts: 66
Joined: Sat Jun 02, 2012 1:41 pm
Contact:

Re: Isömap

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)

Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Isömap

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

Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Contact:

Re: Isömap

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

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.

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Isömap

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

emisaur
Prole
Posts: 1
Joined: Sat Feb 09, 2013 1:54 am
Contact: