Search found 42 matches

by GVovkiv
Fri Mar 05, 2021 4:14 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

darkfrei wrote: Fri Mar 05, 2021 4:03 pm
GVovkiv wrote: Fri Mar 05, 2021 3:11 pm Soo, apparently love doesnt have support of graphics tablets?
Like detecting if tablet connected or pressure, etc?
Not sure, but
https://love2d.org/wiki/love.touch.getPressure
Well, seems like it only apply for touch-screen, not tablets
by GVovkiv
Fri Mar 05, 2021 3:11 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

graphics tablet

Soo, apparently love doesnt have support of graphics tablets?
Like detecting if tablet connected or pressure, etc?

P.S:
Well, as Alex said on GitHub, i guess there will no proper support for tablets unless SDL will have it
Sadly
by GVovkiv
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: 6179

Re: Noobie just discovered LOVE. Tips for a top down sports game?

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.
Well, good job!
by GVovkiv
Wed Feb 03, 2021 7:06 am
Forum: Support and Development
Topic: How to attach console on Linux Ubuntu?
Replies: 3
Views: 2469

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...
by GVovkiv
Mon Feb 01, 2021 9:30 pm
Forum: Support and Development
Topic: How to attach console on Linux Ubuntu?
Replies: 3
Views: 2469

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?
by GVovkiv
Wed Jan 27, 2021 8:19 am
Forum: Support and Development
Topic: PUSH and URUTORA libraries together
Replies: 3
Views: 4205

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...
by GVovkiv
Sat Jan 23, 2021 7:56 pm
Forum: Support and Development
Topic: [Solved] get table in-between {}
Replies: 6
Views: 5767

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
by GVovkiv
Sat Jan 23, 2021 12:48 pm
Forum: Support and Development
Topic: [Solved] get table in-between {}
Replies: 6
Views: 5767

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...
by GVovkiv
Sat Jan 23, 2021 12:45 am
Forum: Support and Development
Topic: [Solved] get table in-between {}
Replies: 6
Views: 5767

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...
by GVovkiv
Fri Jan 22, 2021 10:21 pm
Forum: Support and Development
Topic: [Solved] get table in-between {}
Replies: 6
Views: 5767

[Solved] get table in-between {}

So, i kinda new to lua and i encountered with problem:

Code: Select all

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?:

Code: Select all

{
c = 1
}