Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Manuel345

#1
Development / LuaSocket
August 27, 2016, 07:10:09 AM
I tried requiring "socket" but the editor just shouts an error saying socket isn't defined.

It's a shame because I was planning on making my game multiplayer.
It doesn't stop there, I won't be able to use any web functionality like leader-boards.

Since Solarus is open-source, I'd like to compile a version with LuaSocket included so that I would be able to do everything I wanted. However, I'm wondering how to do so...


If you could include it in a future build, it would be really appreciated as it it a must-have for any Lua interpreter.

http://w3.impa.br/~diego/software/luasocket/home.html
#2
Bugs & Feature requests / Line of sight
August 23, 2016, 10:45:00 AM
I am trying to get a line-of-sight working for enemies to detect the hero.

I tried using an invisible custom entity going in a strait line towards the hero and stopping at any wall or impassable surface.
This unfortunately didn't go as planned.

I'm wondering if it would be possible to add a line-of-sight function, probably in sol.main alongside get_distance or maybe directly as a map entity method.


Here's a mockup of how I would use it:


function enemy:on_update()
  if self:get_line_of_sight(hero) then
    self.hasLOS = true
  else
    self.hasLOS = false
  end
end