Search found 107 matches

by pedrosgali
Mon Mar 26, 2018 7:47 pm
Forum: Support and Development
Topic: Error With Object Oriented Things
Replies: 13
Views: 8663

Re: Error With Object Oriented Things

I think it's because you use self:grid_x instead of self.grid_x. The colon syntax is used for function calls so by putting the colon you are stating that you are calling a function and you'd like 'self' to be passed as the first argument. This is why it expecting a function call.
by pedrosgali
Sun Jun 11, 2017 9:39 am
Forum: Support and Development
Topic: Rotating collision with a rotating map
Replies: 8
Views: 6079

Re: Rotating collision with a rotating map

Hi, do you need to rotate your collisions? If the map is rotating on the screen their map position wont change, just the place you are drawing them. As far as your collisions are concerned the map wouldnt have moved at all. I may have misunderstood your question though.
by pedrosgali
Sat Apr 29, 2017 1:26 pm
Forum: General
Topic: little problem with rotation
Replies: 2
Views: 2285

Re: little problem with rotation

You need to move the push to in front of the translate. love.graphics.push() Love.graphics.translate(x, y) love.graphics.rotate(angle) --draw stuff-- love.graphics.pop() Push sets a new series of transforms on the stack, you do your transform and rotation and any scaling should yiu need to then pop ...
by pedrosgali
Sat Apr 29, 2017 10:21 am
Forum: Games and Creations
Topic: Chaos Game
Replies: 3
Views: 3991

Re: Chaos Game

It was an interesting numberphile, you should try making an implementation of the sand piles episode. Nice work. :)
by pedrosgali
Sat Apr 29, 2017 10:08 am
Forum: Support and Development
Topic: Can't Get Files of Desktop with LOVE2D
Replies: 6
Views: 6498

Re: Can't Get Files of Desktop with LOVE2D

You are trying to print a table, that's why it says 'tableX0...'. Try

Code: Select all

for k in pairs(desktopFiles) do
  print(desktopFiles[k])
end
Don't think love can read from your desktop though without using FFI. I've not used it before, maybe someone else can help with that. :)
by pedrosgali
Mon Apr 03, 2017 3:54 pm
Forum: Libraries and Tools
Topic: osmlove library (OSM maps in your Love2D projects)
Replies: 10
Views: 9300

Re: osmlove library (OSM maps in your Love2D projects)

This is incredibly cool, I had no idea I wanted this until I saw it and now I can't stop thinking about what I could make with it. Good job.
by pedrosgali
Sun Apr 02, 2017 6:29 am
Forum: General
Topic: I Need clarification and advice for Isometric map draw system
Replies: 5
Views: 5275

Re: I Need clarification and advice for Isometric map draw system

Yeah, the draw calls are still a little slow on mine too. Especially when zoomed out. I did save a lot of frames by drawing to a canvas and only updating it when the camera moves / only drawing the meshes that are in the viewing window. If people are interested I could release this as a library, I k...
by pedrosgali
Sat Apr 01, 2017 9:48 pm
Forum: General
Topic: I Need clarification and advice for Isometric map draw system
Replies: 5
Views: 5275

Re: I Need clarification and advice for Isometric map draw system

Thanks, if you have any questions just let me know. I still need to get the mouse picking up what tile it is over too so the functions you see in the example don't actually work yet.
by pedrosgali
Sat Apr 01, 2017 6:14 pm
Forum: General
Topic: I Need clarification and advice for Isometric map draw system
Replies: 5
Views: 5275

Re: I Need clarification and advice for Isometric map draw system

Hey there, I'm just writing an isometric camera system. I don't have much time to type right now but it does all the things you're looking for, here's a .love. The chunk camera module is in /Data/system/chunk_camera.lua It isn't really commented as yet, sorry about that but hopefully you can get som...