Search found 874 matches

by veethree
Mon Nov 12, 2018 5:38 am
Forum: Support and Development
Topic: Trouble With Tables [SOLVED]
Replies: 5
Views: 4467

Re: Trouble With Tables

You need to define A as a table inside Z.

Code: Select all

Z  = {A = {B = 3}}
by veethree
Thu Nov 08, 2018 5:53 pm
Forum: General
Topic: Code Doodles!
Replies: 197
Views: 312164

Re: Code Doodles!

Wrote a function that extracts colors from an image. It does this in a very naive way so it only works good sometimes. 1541699318.png 1541699312.png 1541699302.png function love.load() http = require("socket.http") s = "" love.window.setMode(640, 480) love.graphics.setLineStyle(&...
by veethree
Sat Nov 03, 2018 8:22 pm
Forum: Support and Development
Topic: Why are these variables not increasing [SOLVED]
Replies: 3
Views: 3298

Re: Why are these variables not increasing

Could have just put the code in the post like io.stdout:setvbuf("no") function love.load() x = 42 z = 42 y = {x,z} end function love.update() for i,v in ipairs(y) do y[i] = y[i] + 2 end print(x,z) end What's happening there is, instead of putting the x and z variables into the y table, You...
by veethree
Sat Nov 03, 2018 7:31 am
Forum: Support and Development
Topic: [SOLVED] Problem with shaders (especially with texture_coords)
Replies: 13
Views: 9949

Re: Problem with shaders (especially with texture_coords)

To apply shaders to circles, lines, rectangles etc. you can to draw them to a canvas, then apply the shader to the canvas.
by veethree
Fri Nov 02, 2018 10:47 pm
Forum: Support and Development
Topic: My game runs fine on my computer, but...
Replies: 5
Views: 5039

Re: My game runs fine on my computer, but...

It seems to run fine on my computer (mid 2012 macbook pro).

Any chance your moms gpu doesn't support canvases/framebuffers?
by veethree
Thu Nov 01, 2018 10:30 pm
Forum: Support and Development
Topic: Trying to implement a menu system/pause screen
Replies: 3
Views: 3808

Re: Trying to implement a menu system/pause screen

Code: Select all

paused = false

if paused then
  --All the game updating shit goes here
end
Then use the same paused boolean to determine if the box should appear. There's plenty of GUI libraries available for buttons and such. Or you can make your own.
by veethree
Thu Nov 01, 2018 10:24 pm
Forum: Support and Development
Topic: bad argument #1 to 'cos' (number expected, got nil)
Replies: 2
Views: 3706

Re: bad argument #1 to 'cos' (number expected, got nil)

Line 81 in main.lua is

Code: Select all

Force.rotate(Angle)
but should be

Code: Select all

Force:rotate(Angle)
by veethree
Tue Oct 30, 2018 6:59 pm
Forum: Support and Development
Topic: Trying to implement a menu system/pause screen
Replies: 3
Views: 3808

Re: Trying to implement a menu system/pause screen

I'm guessing enemy.img doesn't exists or isn't an image that has a "getWidth" method.
by veethree
Mon Oct 29, 2018 7:20 am
Forum: Support and Development
Topic: FOV: How to use it for vision and lighting
Replies: 1
Views: 2629

Re: FOV: How to use it for vision and lighting

Here's a nice article about it.
by veethree
Thu Sep 06, 2018 12:11 pm
Forum: Games and Creations
Topic: Concerned Joe
Replies: 137
Views: 74081

Re: Concerned Joe

I emailed them once asking about concerned joe.
Thanks for reaching out.
The game's design changed and it became Move or Die instead, so everyone who got the early access got whatever we had of concerned Joe back then, and a Move or Die steam key.
I didn't get a steam key.