Search found 126 matches

by 4vZEROv
Thu Jan 17, 2019 8:08 pm
Forum: General
Topic: Free starting guide Lua
Replies: 6
Views: 7287

Re: Free starting guide Lua

https://nsa40.casimages.com/img/2019/01/17//190117091114821698.png https://nsa40.casimages.com/img/2019/01/17//190117091114821698.png https://nsa40.casimages.com/img/2019/01/17//190117091114821698.png https://nsa40.casimages.com/img/2019/01/17//190117091114821698.png https://nsa40.casimages.com/img...
by 4vZEROv
Tue Jan 08, 2019 6:22 pm
Forum: Libraries and Tools
Topic: Breezefield: a lightweight windfield alternative (love.physics wrapper)
Replies: 15
Views: 63136

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

do as you want with the code, i have a repo for it that i'll update to implement queries etc : https://github.com/4v0v/LOVE_PHYSICS What i don't like is more or less only code structure: -too much useless comments -too much loc -separate files -separate mlib library for only 2 functions Also fixture...
by 4vZEROv
Mon Jan 07, 2019 11:29 pm
Forum: Libraries and Tools
Topic: [11.2] Litte Menu Engine
Replies: 6
Views: 10296

Re: [11.1] Litte Menu Engine

You don't have to declare local i / local k , v when you do

for i = 0, 10 do ... end
&
for k,v in pairs(tbl) do ... end
by 4vZEROv
Mon Jan 07, 2019 1:40 pm
Forum: Libraries and Tools
Topic: Breezefield: a lightweight windfield alternative (love.physics wrapper)
Replies: 15
Views: 63136

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

I've rewritten your and the windfield library to match my style more (didn't implement queries yet). local lp, lg = love.physics, love.graphics local function _set_funcs(obj1, obj2) for k, v in pairs(obj2.__index) do if k~="__gc" and k~="__eq" and k~="__index" and k~=&q...
by 4vZEROv
Wed Jan 02, 2019 8:51 pm
Forum: Support and Development
Topic: Get all keys of KeyConstant ?
Replies: 13
Views: 8772

Re: Get all keys of KeyConstant ?

Don't know if this will help but here is my love.run where I handle inputs to do if pressed("key") then ... end in love.update : function love.run() local dt = 0 local _INPUT = {current_state = {}, previous_state = {}} function pressed(key) return _INPUT.current_state[key] and not _INPUT.p...