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
Search found 174 matches
- Thu Mar 30, 2023 6:59 pm
- Forum: Support and Development
- Topic: Lua-https ( before version 12.x )
- Replies: 5
- Views: 1274
- 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...
- 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.
- 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...
- 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...
- 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...
- 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)
: 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)
- 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]
[code]
-- your code here (will be rendered and highlighted)
[/code]
- 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...
- 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...