Search found 414 matches

by darkfrei
Sat Oct 16, 2021 7:59 pm
Forum: General
Topic: Favourite inspiring/unique games
Replies: 29
Views: 32322

Re: Favourite inspiring/unique games

Gunroar:Cannon() wrote: Sat Oct 16, 2021 10:50 am Haha, not Tetris
Image
Only heard of it now seems cool, plus mari0 and it were made by love2d , nice.
You know https://xkcd.com/724/

Image
by darkfrei
Thu Oct 14, 2021 10:39 am
Forum: Libraries and Tools
Topic: LOVE Terminal Emulator
Replies: 22
Views: 15320

Re: LOVE Terminal Emulator

https://love2d.org/wiki/Text:getWidth

You can parse the text and hold in table the widths of all amount of characters.
by darkfrei
Thu Oct 14, 2021 8:58 am
Forum: Support and Development
Topic: Portrait rotation in android - correct way?
Replies: 5
Views: 587

Re: Portrait rotation in android - correct way?

Because you cannot change the actual screen resolution on Android, the width and height is only used by LÖVE to determine the wanted aspect ratio and whether landscape or portrait mode fits the ratio better. Ohhh is that why love.graphics.getDimensions() still gives me landscape dimensions? That's ...
by darkfrei
Thu Oct 14, 2021 7:59 am
Forum: Support and Development
Topic: These buttons execute the same callback but they are different tables!
Replies: 10
Views: 879

Re: These buttons execute the same callback but they are different tables!

Make it sense to store all functions of the object in the table?
So

Code: Select all

function new_object (x,y)
  local obj = {x=x,y=y}
  obj.functions = functions
end
So update is

Code: Select all

obj.functions:update (dt)
by darkfrei
Wed Oct 13, 2021 5:31 pm
Forum: Support and Development
Topic: Portrait rotation in android - correct way?
Replies: 5
Views: 587

Re: Portrait rotation in android - correct way?

You can switch two parameters just as:

Code: Select all

t.window.height, t.window.width = t.window.width, t.window.height
by darkfrei
Tue Oct 12, 2021 9:12 pm
Forum: General
Topic: Fixing screen resolution ideas
Replies: 6
Views: 800

Re: Fixing screen resolution ideas

Hmmm, I'll check out TLfres. So I should also scale ui? How would I make a camera work+tlfres/a scaling lib? @darkfrei, how does it work? It makes a virtual 1920x1080 screen and moves/scales this resolution to the current window. Also you can make any high-resolution canvases and render it too, so ...
by darkfrei
Tue Oct 12, 2021 1:50 pm
Forum: General
Topic: Fixing screen resolution ideas
Replies: 6
Views: 800

Re: Fixing screen resolution ideas

My multiresolution (even 4K) rendering:
by darkfrei
Wed Oct 06, 2021 8:56 pm
Forum: Support and Development
Topic: Any subset sum calculator that considers multiplication? [clarified]
Replies: 5
Views: 1422

Re: Any subset sub calculator that considers multiplication?

target_n = 3 for i = 1, 10^6 do local str = "" str = str .. any_number () -- returns number for j = 1, 3 do str = str .. any_operator () -- returns operator: +, -, *, / str = str .. any_number () end print (str) local n = calculate (str) -- calculates the str as calculator if n == target_...
by darkfrei
Wed Oct 06, 2021 2:45 pm
Forum: Games and Creations
Topic: Railway Track
Replies: 7
Views: 3541

Re: Railway Track

BrotSagtMist wrote: Sun Sep 19, 2021 3:15 pm You can always add another canvas for order and instead of painting you can erase pixels too.
A quick hack in of my approach:
main.lua.zip
The problem: