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 !
Isömap
Re: Isömap
- Attachments
-
- isomap_test2.love
- (6.87 KiB) Downloaded 375 times
-
- isomap-test.love
- (4.7 KiB) Downloaded 386 times
Current work : Isömap
-
- Prole
- Posts: 48
- Joined: Sun Feb 01, 2009 3:32 am
Re: Isömap
This is exactly what I was looking for. Kick-ass.
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
instead of
I put :
(without any fps drop on my old laptop !)
What do you think ?
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
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
What do you think ?
http://darky-ben.fr/Xut my webcomic (french)
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 !
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
Re: Isömap
Of course you can !Saegor wrote:do you permit to integrate it in the next version of isömap ?
Here is some performance tips (mainly from tis topic : viewtopic.php?f=3&t=3500)
so my code is perfectible ! (you just have to localize math.floor, math.sin and math.pi)T-Bone wrote: I only looked through the first one there quickly, and was really surprised that
is faster thanCode: Select all
local sin = math.sin many times sin(x)
Code: Select all
many times math.sin(x)
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)
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
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
- Location: Ouagadougou (Burkina Faso)
- Contact:
-
- Prole
- Posts: 48
- Joined: Sun Feb 01, 2009 3:32 am
- 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.
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 602 times
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 1 guest