Search found 168 matches

by darkfrei
Sun Apr 11, 2021 2:06 pm
Forum: Support and Development
Topic: If statement and Goto
Replies: 28
Views: 928

Re: If statement and Goto

pgimeno wrote: Sun Apr 11, 2021 1:18 pm Do you mean for debugging? You can add a 'name' field.
First I think in the old style, on key pressing check the state and do the code.

But you are right, I can use the state as a "key pressed" event holder and the code will be done.
by darkfrei
Sun Apr 11, 2021 12:13 pm
Forum: Support and Development
Topic: If statement and Goto
Replies: 28
Views: 928

Re: If statement and Goto

Small example: state one has physics, but state two has random directions.
by darkfrei
Sun Apr 11, 2021 11:39 am
Forum: Support and Development
Topic: If statement and Goto
Replies: 28
Views: 928

Re: If statement and Goto

pgimeno wrote: Sun Apr 11, 2021 11:04 am I wrote about one way of dealing with states, starting here: https://love2d.org/forums/viewtopic.php ... 26#p194226

Take a look, see if that helps you wrap around your head around it.
How I can understand which stete is enabled?
by darkfrei
Sun Apr 11, 2021 1:26 am
Forum: General
Topic: Pipes: spritesheet, quads
Replies: 5
Views: 282

Re: Pipes: spritesheet, quads

On this device pixels with area 3x3 are really too big.
by darkfrei
Sun Apr 11, 2021 12:41 am
Forum: General
Topic: Pipes: spritesheet, quads
Replies: 5
Views: 282

Re: Pipes: spritesheet, quads

How to know minimal possible resolution? Right now one pixel has area 3x3 pixels, but it looks to big for this device. I need to make one line less or set the pixel to area 2x2 pixels.
by darkfrei
Sat Apr 10, 2021 3:05 pm
Forum: Games and Creations
Topic: SnowFlakes
Replies: 5
Views: 235

Re: SnowFlakes

Nice!
It looks like the level 14 is the highest.
by darkfrei
Sat Apr 10, 2021 2:56 pm
Forum: General
Topic: Pipes: spritesheet, quads
Replies: 5
Views: 282

Pipes: spritesheet, quads

Hi all!

I've made a small program with pipes, but now all pipes are hardcoded.

Is it possible to make it better?
by darkfrei
Sat Apr 10, 2021 5:20 am
Forum: General
Topic: Testing Different Projects
Replies: 5
Views: 312

Re: Testing Different Projects

LedLoaf wrote: Sat Apr 10, 2021 2:44 am So 2 files have love.load, load.update, load.draw that will still work?
Something like

Code: Select all

require ("main-old")
-- require ("main-new")
But normally just one folder for every project.
by darkfrei
Sat Apr 10, 2021 4:42 am
Forum: Support and Development
Topic: Tables drive me nuts sometimes: how is this wrong?
Replies: 5
Views: 197

Re: Tables drive me nuts sometimes: how is this wrong?

for i, line in ipairs(map) do for j, value in ipairs(line) do io.write(value .. " ") end io.write('\n') end Or for i = 1, #map do --#map is 4 local line = map[i] for j = 1, #line do -- #line is 5 local value = map[i][j] io.write(value .. " ") end io.write('\n') end Where line = ...
by darkfrei
Fri Apr 09, 2021 9:09 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 746
Views: 525947

Re: Avatars: OBEY!

I need to leave here some comment.