Search found 174 matches

by Andlac028
Thu Mar 30, 2023 6:59 pm
Forum: Support and Development
Topic: Lua-https ( before version 12.x )
Replies: 5
Views: 1274

Re: Lua-https ( before version 12.x )

slime wrote: Wed Mar 29, 2023 8:48 pm You need to be logged into Github for the artifacts to appear as links instead of just text.
I think, this (instructions, how to download libraries) should be added somewhere to the docs, or readme, as this is not first question of this kind
by Andlac028
Wed Mar 15, 2023 12:38 pm
Forum: Support and Development
Topic: screen rotation
Replies: 19
Views: 2628

Re: screen rotation

compile? and how do i lauch my game whit love-android? Please note, that when you are compiling, can take some time, but once you setup it and compile it for first time, it will be much faster. The whole manual, how to compile, can be found at wiki: Game Distribution , under Android section. Howeve...
by Andlac028
Wed Mar 15, 2023 7:38 am
Forum: Support and Development
Topic: screen rotation
Replies: 19
Views: 2628

Re: screen rotation

I think, you are looking at this setting in either AndroidManifest.xml or gradle.properties. But note, that need to compile love-android for this purpose (however, if you would like to release your game to Play Store or as apk, you need to compile it anyway.
by Andlac028
Tue Mar 14, 2023 7:54 am
Forum: Support and Development
Topic: Android tilt
Replies: 2
Views: 1161

Re: Android tilt

I think, you are looking at accelerometerjoystick config option, that (when enabled) adds a "new" joystick that has 3 axes, so you can then use this to get tilt of phone: local joystick function love.load() joystick = love.joystick.getJoysticks()[1] -- note, that you may like to get all jo...
by Andlac028
Fri Mar 10, 2023 1:07 pm
Forum: General
Topic: HTML+CSS UI Rendering
Replies: 10
Views: 5067

Re: HTML+CSS UI Rendering

First of all, why you would like to create UI in HTML and CSS and at same time, use Love and Lua? In my opinion, HTML and CSS can get too complicated to be supported (okay, maybe few features may be supported, but not entire renderer with all tags and style properties etc). I would either use Lua an...
by Andlac028
Fri Mar 10, 2023 5:31 am
Forum: Support and Development
Topic: Online games in love2d
Replies: 3
Views: 2024

Re: Online games in love2d

You can follow this tutorial with explained networking with UDP. There is also TCP and lua-enet. The difference is, that in UDP, you do nit have guaranteed, that client or server received message, but it is faster (used for example in streaming or online games, when you send a lot of data about posi...
by Andlac028
Fri Mar 10, 2023 5:20 am
Forum: Support and Development
Topic: Error main.lua:29: attempt to index global 'mole' (a nil value) Traceback [love "callbacks.lua"]:228: in function 'h
Replies: 4
Views: 1635

Re: Error main.lua:29: attempt to index global 'mole' (a nil value) Traceback [love "callbacks.lua"]:228: in functio

It is :getHeight, not .getHeight (same for width)

: is used when you want to get something about the object you created, . when you just want to get functions from table (like love.graphics.print)
by Andlac028
Wed Mar 08, 2023 4:56 am
Forum: Games and Creations
Topic: How to convert a image into a body in Lua ??
Replies: 9
Views: 2861

Re: How to convert a image into a body in Lua ??

Please wrap your code to code tags to make it more readable:
[code]
-- your code here (will be rendered and highlighted)
[/code]
by Andlac028
Sun Mar 05, 2023 6:53 pm
Forum: Support and Development
Topic: Is there a way to run a loop in a second thread?
Replies: 5
Views: 1813

Re: Is there a way to run a loop in a second thread?

Create thread at the game start and send partickes to it and use channel:supply to push data to main thread. Also meassure time since last supply (or alternatively, just use :push and take delta time from another channel where you push it from main thread). In main thread, pop particles positions an...
by Andlac028
Sun Mar 05, 2023 5:59 am
Forum: Support and Development
Topic: Geometry/math question
Replies: 8
Views: 1494

Re: Geometry/math question

You can solve this oriblem by first finding intersections of pairs of circles, and then checking, if some point is in all intersections of pairs of circles. To find intersections of pair of circles, just use some formula. After quick search, I found for example this . Maybe it is not the most effici...