Search found 612 matches

by ReFreezed
Tue Apr 12, 2022 7:10 pm
Forum: Support and Development
Topic: How to fix this piece of code
Replies: 6
Views: 2275

Re: How to fix this piece of code

Note that Lua is case sensitive. This line (from the tutorial): player = Player() "Player" is the class, and "player" is an instance of the class. In other words, "player" is the object you want to do stuff with. The error happened because the Player:new() function did ...
by ReFreezed
Sun Apr 10, 2022 3:38 pm
Forum: Support and Development
Topic: What is the best way to learn Love2d
Replies: 6
Views: 2787

Re: What is the best way to learn Love2d

One way to learn is by copying others, but instead of watching and copying stuff from tutorials you could just try to copy an existing simple game, like Flappy Bird, Snake, or maybe Breakout. What games do you enjoy? Try to copy that game! With a goal like that you'll make small steps forward while ...
by ReFreezed
Sun Apr 10, 2022 1:22 pm
Forum: General
Topic: How to protect the source of your project?
Replies: 16
Views: 10448

Re: How to protect the source of your project?

There hasn't been some discussion about this topic - there has been plenty , and it's the same answers every time. https://love2d.org/forums/viewtopic.php?p=223862#p223862 You don't need to license your code to protect it from copying - that's what copyright is for, and copyright is automatic for al...
by ReFreezed
Sat Apr 09, 2022 11:02 pm
Forum: General
Topic: Game development analysis-paralysis
Replies: 6
Views: 3735

Re: Game development analysis-paralysis

Nikki wrote: Sat Apr 09, 2022 6:38 pm What really was pleasant for me to watch was some live streams or youtube videos from Jon Blow
Funny how you mention Jon. He has probably influenced me more than anyone else when it comes to the way I program and think about programming.
by ReFreezed
Sat Apr 09, 2022 11:02 am
Forum: Support and Development
Topic: Way to read some system info in Love2d
Replies: 3
Views: 1847

Re: Way to read some system info in Love2d

os.execute() and io.popen() can be used for executing commands. There's also the FFI library for accessing system functions.
by ReFreezed
Wed Apr 06, 2022 10:34 am
Forum: Games and Creations
Topic: TILT - Gravity Puzzles
Replies: 5
Views: 4164

Re: TILT - Gravity Puzzles

Congrats on the release! Looks pretty nice. The volume in the trailer seem messed up though.
by ReFreezed
Mon Apr 04, 2022 11:32 pm
Forum: Support and Development
Topic: another problem with string pattern
Replies: 5
Views: 2742

Re: another problem with string pattern

No inner loops, counting of quotes, or generation of any pattern needed. local str = "(1, 'test', none, 10, '', , 'hi, this is a default bio. change it (asap)!')" local items = {} local pos = str:match("%(%s*()") or error("missing '('") while true do -- Match item. loca...
by ReFreezed
Mon Apr 04, 2022 10:58 am
Forum: Support and Development
Topic: another problem with string pattern
Replies: 5
Views: 2742

Re: another problem with string pattern

You cannot do this with a single pattern. You need different patterns for matching quoted and unquoted values. This also means you have to match one item at a time and choose the appropriate pattern dynamically.
by ReFreezed
Thu Mar 31, 2022 8:41 am
Forum: Support and Development
Topic: Performance cost of built-in functions returning single values.
Replies: 5
Views: 2908

Re: Performance cost of built-in functions returning single values.

I'm aware that whatever the performance impact of these would be, it would in most cases the negligible This is the answer. It doesn't matter in most cases. The performance bottleneck in your program is usually not going to be caused by some function calls (with exceptions, of course). If you suspe...
by ReFreezed
Wed Mar 30, 2022 4:34 pm
Forum: Games and Creations
Topic: Bombs and Bullets - a 2D RTS inspired by Command and Conquer
Replies: 110
Views: 123113

Re: Bombs and Bullets - a 2D RTS inspired by Command and Conquer

Looking good! The project seem to be progressing nicely.