Search found 81 matches

by pedrosgali
Mon Jun 18, 2018 7:48 pm
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 684

Re: Could really use some help in Lua, have hit a wall and can't move forward.

Wouldn't this be easier if you had a sprite position that you change with the d key and then drew either sprite at that position? That way you only need to check one value and just determine which image you need to draw. I may have misunderstood what you are asking for but that seems like the easies...
by pedrosgali
Sat Apr 14, 2018 3:34 pm
Forum: Support and Development
Topic: Lua enet woes.
Replies: 1
Views: 165

Lua enet woes.

Hi all, I've been playing around with enet recently and everything seems to work fine over lan but how do I get it to work over the internet? Here's the code I've been using... -- server.lua local enet = require "enet" local host = enet.host_create("*:25995") while true do local event = host:service...
by pedrosgali
Fri Apr 06, 2018 6:06 pm
Forum: Support and Development
Topic: My own format of files OR not
Replies: 7
Views: 383

Re: My own format of files OR not

I don't think obfuscation is his actual goal here, I think that the image in question contains an answer to a riddle or puzzle in the game which he is trying to hide from players so they must complete the challenge. I would build the image in code by drawing it to a canvas and display that so you do...
by pedrosgali
Tue Mar 27, 2018 6:29 pm
Forum: Games and Creations
Topic: Time attack top down racer [Alpha]
Replies: 8
Views: 1274

Re: Time attack top down racer [Alpha]

Interesting game, it has a very Micro Machines vibe to it. One thing that is weird is that it seems like it's quicker to slow down by letting go of accelerate than by pressing the brakes. That may not be true but it feels that way to me at least, maybe add a drift mechanic to really blast round corn...
by pedrosgali
Mon Mar 26, 2018 7:47 pm
Forum: Support and Development
Topic: Error With Object Oriented Things
Replies: 13
Views: 1011

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: 1373

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: 648

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: 1094

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: 1304

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. :)