Search found 930 matches

by Karai17
Wed Jun 12, 2019 2:16 am
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 13280

Re: Find globals with LuaJIT (Linux, probably Mac too)

It is absolutely optional, you can ignore the linter. The linter's job is to help you write idiomatic code. If you don't want to, then don't use a linter or just ignore the rules you don't care to follow. At no point does luacheck change your code, it only informs you of issues it finds.
by Karai17
Tue Jun 11, 2019 4:09 pm
Forum: General
Topic: STI Tutorial, Getting whole sprite sheet
Replies: 8
Views: 9259

Re: STI Tutorial, Getting whole sprite sheet

check the wiki to make sure you're using it correctly
by Karai17
Tue Jun 11, 2019 4:07 pm
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 13280

Re: Find globals with LuaJIT (Linux, probably Mac too)

the underscore method is idiomatic Lua so i think it's fine~
by Karai17
Tue Jun 11, 2019 5:38 am
Forum: Ports
Topic: LÖVR - a LÖVE-like engine for virtual reality
Replies: 31
Views: 163281

Re: LÖVR - a LÖVE-like engine for virtual reality

LOVR is written in C99 and LOVE is written in C++ so they aren't really compatible, no. On a different note, I've been using LOVR a lot recently with @shakesoda and we're working on an online multiplayer social game with it. We've made a fair bit of progress so far! Without trying to shill my own wa...
by Karai17
Tue Jun 11, 2019 5:09 am
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 13280

Re: Find globals with LuaJIT (Linux, probably Mac too)

I definitely like the _ idiom. If I am calling a function that has optional variables, I want it to be very obvious if I am not using them. A note about your example, in Lua you can just leave out trailing variables if you do not need to use them. function love.keypressed(_, scancode, _) could be wr...
by Karai17
Tue Jun 11, 2019 4:50 am
Forum: Libraries and Tools
Topic: What's your In-Code Documentation Tool?
Replies: 1
Views: 3963

Re: What's your In-Code Documentation Tool?

I think in general for Lua the usual choice is LDoc, which is the Lua documentation generator that uses the syntax denoted above. I use it for my libs.
by Karai17
Tue Jun 11, 2019 4:37 am
Forum: Games and Creations
Topic: Ballad of Thuriana: a Shining Force inspired Tactical RPG
Replies: 16
Views: 17697

Re: Ballad of Thuriana: a Shining Force inspired Tactical RPG

Whoa, this is super cool! I <3 the original Shining Force on Genesis, never played the sequels. Is the art original or did you find it somewhere? Definitely gonna keep an eye on this project. :)
by Karai17
Tue Jun 11, 2019 4:08 am
Forum: Support and Development
Topic: Trouble with OpenGl
Replies: 4
Views: 4580

Re: Trouble with OpenGl

it seems like your video card driver isn't installed. Go here if your laptop model has the GeForce 9200M graphics chip, or here if it does not. download the nvidia (or intel) driver and install it, then your graphics should be much faster and have more features.
by Karai17
Tue Jun 11, 2019 4:02 am
Forum: Support and Development
Topic: [Tutorial] Physics
Replies: 6
Views: 7265

Re: [Tutorial] Physics

You could just do love.graphics.draw() with the x and y coords as the circle's center coords minus the circle's radius. This is correct but there is a minor detail missing. You want to place your texture at the circle's center and then use half the width and height of the texture as the offset valu...
by Karai17
Tue Jun 11, 2019 2:50 am
Forum: General
Topic: STI Tutorial, Getting whole sprite sheet
Replies: 8
Views: 9259

Re: STI Tutorial, Getting whole sprite sheet

you are drawing the whole texture, you want to send the quad with your texture.

Code: Select all

local q = love.graphics.newQuad(0, 0, 16, 16)
love.graphics.draw(sprite.player, q, 100, 100)
there is a library called anim8 you might want to look into, it's pretty good at helping with animations