Well, good job!togFox wrote: ↑Wed Feb 03, 2021 9:22 pm Just celebrating my game is functional. Not pretty, but functional.
In just over a week Love2d has allowed me to make a playable concept of a sports field full of bodies moving around and reacting via Newtonian physics.
Appreciate the tips. Onwards and upwards.
Search found 670 matches
- Thu Feb 04, 2021 5:59 am
- Forum: Support and Development
- Topic: Noobie just discovered LOVE. Tips for a top down sports game?
- Replies: 12
- Views: 10838
Re: Noobie just discovered LOVE. Tips for a top down sports game?
- Wed Feb 03, 2021 7:06 am
- Forum: Support and Development
- Topic: How to attach console on Linux Ubuntu?
- Replies: 7
- Views: 5710
Re: How to attach console on Linux Ubuntu?
Linux Ubuntu So, i know, on Windows you can use conf.lua or --console, but how to do something like this on Ubuntu? There's unfortunately no way to do this. :( However, there are 2 solutions to still see the console! ^^ 1. Running from the terminal. You can open a terminal in the folder avobe where...
- Mon Feb 01, 2021 9:30 pm
- Forum: Support and Development
- Topic: How to attach console on Linux Ubuntu?
- Replies: 7
- Views: 5710
How to attach console on Linux Ubuntu?
Linux Ubuntu
So, i know, on Windows you can use conf.lua or --console, but how to do something like this on Ubuntu?
So, i know, on Windows you can use conf.lua or --console, but how to do something like this on Ubuntu?
- Wed Jan 27, 2021 8:19 am
- Forum: Support and Development
- Topic: PUSH and URUTORA libraries together
- Replies: 3
- Views: 5578
Re: PUSH and URUTORA libraries together
because push change position where images draws, but not the actual position you need keep it in mind so if you want, for example, check button with cursor, than you can do something like this: if xm >= (x * s) + xo and xm <= ((x + w) * s) + xo and ym >= (y * yo) and ym <= ((y + h) * s) + yo then re...
- Sat Jan 23, 2021 7:56 pm
- Forum: Support and Development
- Topic: [Solved] get table in-between {}
- Replies: 6
- Views: 7700
Re: [Solved] get table in-between {}
So, i kinda new to lua and i encountered with problem: a = {a, b} a.b = { { c = 1 } } print(a.b.c) --> nil instead of 1 so there exist way to get tables like this without deleting this brackets?: { c = 1 } print(a.b[1].c) Question was already solved, but thanks for answer anyway
- Sat Jan 23, 2021 12:48 pm
- Forum: Support and Development
- Topic: [Solved] get table in-between {}
- Replies: 6
- Views: 7700
Re: get table in-between {}
Main problem with it I experience in Tiled When it creat .lua file, it put some tables like tileset = { { <Data> } } with double brackets instead of one And it sucks It's for a reason - Tiled has to have a way to denote multiple tilesets. Your quick snippet actually says "tileset" instead...
- Sat Jan 23, 2021 12:45 am
- Forum: Support and Development
- Topic: [Solved] get table in-between {}
- Replies: 6
- Views: 7700
Re: get table in-between {}
With a = {a, b}, you're actually doing this: a = {[1] = a, [2] = b}, and at that time, both a and b are either nil, or whatever you set those, if you did. The second issue is you doubling up the brackets, so again, you'll get this: a.b = {[1] = {['c'] = 1}} which can be printed with a.b[1].c instea...
- Fri Jan 22, 2021 10:21 pm
- Forum: Support and Development
- Topic: [Solved] get table in-between {}
- Replies: 6
- Views: 7700
[Solved] get table in-between {}
So, i kinda new to lua and i encountered with problem:
so there exist way to get tables like this without deleting this brackets?:
Code: Select all
a = {a, b}
a.b = {
{
c = 1
}
}
print(a.b.c) --> nil instead of 1
Code: Select all
{
c = 1
}
- Mon Jan 18, 2021 9:02 pm
- Forum: Support and Development
- Topic: [Solved] How to get Display Index
- Replies: 2
- Views: 5030
Re: How to get Display Index
Thank you!pgimeno wrote: ↑Mon Jan 18, 2021 8:52 pm It's basic table indexing.The select() is there just for accessing the third element directly. This works too:Code: Select all
love.graphics.print(select(3, love.window.getMode()).display)
Code: Select all
local w, h, flags = love.window.getMode() love.graphics.print(flags.display)
- Mon Jan 18, 2021 6:04 pm
- Forum: Support and Development
- Topic: [Solved] How to get Display Index
- Replies: 2
- Views: 5030
[Solved] How to get Display Index
So, i need to get display index as argument for function
For example:
I know there exist love.window.getMode() function, but i don't know how to get "display" from that table directly
Thanks
For example:
Code: Select all
love.graphics.print(*displayindex*, 0, 0)
Thanks