Search found 818 matches

by veethree
Sun May 20, 2018 6:54 pm
Forum: Support and Development
Topic: Shader not working on Android
Replies: 2
Views: 1217

Re: Shader not working on Android

If you post your code we can help you better.
by veethree
Thu May 17, 2018 12:56 pm
Forum: General
Topic: Big Tiled Terrain
Replies: 4
Views: 1788

Re: Big Tiled Terrain

You can get away with having a pretty large table as long as you don't iterate over the whole thing every frame.

I use a technique in this that only iterates over the part of the map that's visible to the camera.
by veethree
Thu May 17, 2018 8:29 am
Forum: Support and Development
Topic: Premultiplied alpha
Replies: 2
Views: 1247

Re: Premultiplied alpha

Oh. I didn't realise that setBlendMode had a 2nd argument. You'd think if you need premultiplied alpha to use the multiply blend mode it would default to that.
Or the error would indicate that it needs a 2nd argument.
by veethree
Thu May 17, 2018 7:43 am
Forum: Support and Development
Topic: Premultiplied alpha
Replies: 2
Views: 1247

Premultiplied alpha

I'm trying to draw a canvas with the "multiply" blend mode but it throws an error. Error data/class/light.lua:41: The 'multiply' blend mode must be used with premultiplied alpha. Traceback [C]: in function 'setBlendMode' data/class/light.lua:41: in function 'draw' data/state/game.lua:131: in functio...
by veethree
Wed May 09, 2018 3:59 pm
Forum: General
Topic: Need ideeas for a game!
Replies: 31
Views: 11258

Re: Need ideeas for a game!

I wasn't sure either. But it seems like a vague description of a game so I approved it.
by veethree
Sun Apr 29, 2018 7:51 pm
Forum: General
Topic: Code Doodles!
Replies: 157
Views: 110139

Re: Code Doodles!

Why? Eye don't know. eyedontknow.gif ---EYE STUFF eye = {} local em = {__index = eye} local function angle(x1, y1, x2, y2) return math.atan2(y2-y1, x2-x1) end local function distance(x1, y1, x2, y2) return ((x2-x1)^2+(y2-y1)^2)^0.5 end local function normal(val, min, max) return (val - min) / (max -...
by veethree
Sat Apr 28, 2018 11:18 pm
Forum: Games and Creations
Topic: SMOOF
Replies: 4
Views: 3091

Re: SMOOF

does "PRESS SPACE" change to "TAP" on iOS? I was only able to test this on os x and android.
by veethree
Sat Apr 28, 2018 2:59 pm
Forum: Games and Creations
Topic: SMOOF
Replies: 4
Views: 3091

SMOOF

juicy flappy bird.
1524922447.png
1524922447.png (19.38 KiB) Viewed 3091 times
1524922430.png
1524922430.png (18.4 KiB) Viewed 3091 times
1524922442.png
1524922442.png (9.83 KiB) Viewed 3091 times
smoof_1.0_src.love
11.1
(80.87 KiB) Downloaded 193 times
if someone could test out these executables that'd be neat.
smoof_1.0_osx.zip
(5.94 MiB) Downloaded 143 times
smoof_1.0_windows.zip
(3.74 MiB) Downloaded 158 times