Sasha Szpakowski
112a09ceb7
Shape:setDensity no longer needs Body:resetMassData unless the Body already has custom mass data.
...
Add Body:hasCustomMassData.
If the Body has custom mass data, attaching a Shape to it doesn't automatically reset its mass data.
2023-10-08 12:43:27 -03:00
Sasha Szpakowski
1396e26626
auto.lua: fix consistency on Windows
2023-10-08 12:32:10 -03:00
Sasha Szpakowski
5b4758819e
nogame screen uses non-deprecated APIs
2023-10-07 15:35:00 -03:00
Sasha Szpakowski
f6cdbdc868
Merge branch 'main' into 12.0-development
2022-12-31 22:46:34 -04:00
Sasha Szpakowski
c823dbca96
Update copyright year for 2023
2022-12-31 22:25:49 -04:00
Alex Szpakowski
d51e012812
Merge branch '12.0-development' into metal
2022-01-05 21:12:22 -04:00
Alex Szpakowski
7f3538d2ba
Merge branch 'main' into 12.0-development
2022-01-05 21:10:27 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
3d8117ccbb
Merge branch '12.0-development' into metal
2021-12-24 15:35:18 -04:00
Alex Szpakowski
e63025b74f
Merge branch '12.0-development' into metal
2021-12-24 15:34:05 -04:00
Alex Szpakowski
8a48f1b733
Merge branch 'main' into 12.0-development
2021-10-19 21:50:19 -03:00
Alex Szpakowski
e27a71f798
Move boot.lua to src/modules/love/ with raw string literal format.
...
Split it up into 3 files to keep under VS2013's raw string literal character limit.
Now boot.lua doesn't need a regeneration step when it's modified.
2021-10-19 21:22:26 -03:00
Alex Szpakowski
199632e791
Add love.parsedGameArguments and love.rawGameArguments tables.
...
They're the same as the global arg table and the result of love.arg.parseGameArguments, respectively. They only exist on the main thread.
2021-06-06 18:04:58 -03:00
Alex Szpakowski
21f5ba86d3
Merge branch 'master' into 12.0-development
2021-04-07 20:33:44 -03:00
Alex Szpakowski
f89aabb0bb
Update copyright year for 2021
2021-04-04 16:14:45 -03:00
Alex Szpakowski
20a92a4106
Merge branch '12.0-development' into metal
2020-12-22 22:37:17 -04:00
Alex Szpakowski
905e5baf06
Replace highdpi window flag with t.highdpi in love.conf
2020-11-01 21:36:15 -04:00
Alex Szpakowski
27897b4af1
Merge branch '12.0-development' into metal
2020-10-24 00:36:33 -03:00
Alex Szpakowski
26326a01e0
Merge branch 'master' into 12.0-development
2020-09-21 22:35:19 -03:00
Cartread
da644085e4
Update boot.lua.h
2020-08-15 22:57:30 -04:00
Cartread
e1d491b7c5
Update boot.lua
...
Removing the alpha variable allows anyone who overwrote the setColor function to see errorhandler's print.
e.g. I'm overwriting the setColor function to accommodate 0-255 values and the error message is being printed with 1/255 alpha (invisible).
Removing the 1 will print the message in black.
P.S. I'm currently overwriting errorhandler for this, but I assume others are also overwriting setColor and see no error messages.
2020-08-13 00:26:17 -04:00
Alex Szpakowski
5b4de2308d
show the renderer name in the no-game's title
2020-07-29 19:42:38 -03:00
Alex Szpakowski
d6566c865c
Merge branch 'master' into 12.0-development
2020-03-03 19:41:54 -04:00
Andrew West
0efb49dc5f
Changed to set the window title before creation rather than after
2020-03-02 20:51:46 +00:00
Alex Szpakowski
8478a870a9
Add new*Texture variants which don't require image files.
...
Update the no-game screen to avoid deprecated functions.
2020-02-12 20:07:35 -04:00
Alex Szpakowski
5f9b5a21d0
Merge default into minor
...
--HG--
branch : minor
2020-01-03 22:45:36 -04:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Alex Szpakowski
b001b2e1d5
Add love.event.restart(optionalvalue) as a shorthand for love.event.quit("restart", optionalvalue). If a Lua value is provided as an argument, a new love.restart field will contain the value after restarting.
...
--HG--
branch : minor
2019-12-28 22:43:39 -05:00
Miku AuahDark
5d63211b93
Fix t.audio.mixwithsystem defaults to false when absent from conf.lua
...
--HG--
branch : androidmic
2019-09-29 16:21:17 +08:00
Miku AuahDark
051f1e9830
Add t.audio.mic (boolean) setting to conf.lua
...
--HG--
branch : androidmic
2019-09-29 12:18:47 +08:00
Alex Szpakowski
37472d6f5e
Add 'usedpiscale' boolean (true by default) to love.window.setMode's settings table and love.conf's t.window table. Add love.window.getNativeDPIScale.
...
When usedpiscale=false, love will no longer automatically scale coordinates by the screen's DPI scale factor (so all coordinates will be in pixels), even when highdpi=true. love.window.getDPIScale will return 1, love.graphics.newCanvas will default to a dpi scale of 1 instead of the screen's dpi scale, etc.
love.window.getNativeDPIScale() will return the screen's DPI scale as reported by the OS no matter what usedpiscale is set to.
2019-06-24 21:54:09 -03:00
Alex Szpakowski
db1c982f76
boot.lua and nogame.lua line numbers match the source code once they're embedded into love (thanks, pgimeno!)
2019-04-06 13:08:25 -03:00
Alex Szpakowski
0752f27bdf
Update copyright year for 2019
2019-01-03 21:09:05 -04:00
Alex Szpakowski
324a290040
The code related to t.audio.mixwithsystem=true is run before the audio module is loaded. Fixes issue #1430 .
2018-12-26 11:36:23 -04:00
Alex Szpakowski
d4762b4612
Add love.window.getDisplayOrientation and a love.displayrotated callback. Resolves issue #1441 .
...
Note that this tracks screen orientation, rather than device orientation.
2018-12-17 16:19:56 -04:00
Alex Szpakowski
388c93b049
nogame screen: escape key quits love.
2018-04-01 15:05:39 -03:00
Alex Szpakowski
3fe9e51a46
nogame screen: bring back double-tap-to-exit on touch screens.
2018-04-01 13:01:02 -03:00
Bart van Strien
2f17cab3b4
Prevent out-of-bounds access in Text:add when an empty string is added ( fixes #1372 )
2018-01-30 17:31:44 +01:00
Bart van Strien
fd514d8176
Update some more copyright notices
...
I am so good at using search/replace I definitely didn't need a second commit
for this.
2018-01-03 19:55:02 +01:00
Bart van Strien
e80247c191
Happy new year! ✨
2018-01-03 19:47:35 +01:00
Alex Szpakowski
1abc7b20f7
Show an error instead of the nogame screen if a nonexistant folder is passed in as a source game directory.
2017-12-26 20:17:43 -04:00
Alex Szpakowski
9fa73f8b87
Several love.data functions now take an enum ("data" or "string") to determine whether they return a Data object or a string.
...
Changed functions are love.data.compress, decompress, encode, decode, and pack.
2017-12-22 16:13:20 -04:00
rude
5950688770
Added new nogame screen (Duckloon).
2017-12-13 22:15:23 +01:00
Bart van Strien
d19129de5b
Regenerate boot.lua.h
...
Because of course that went wrong. I'm not sure whether it's the merge's fault,
or the merged in boot.lua.h was outdated. Either way, here we are.
--HG--
branch : minor
2017-11-03 13:38:04 +01:00
Bart van Strien
59fb287bd1
Merged in SoniEx2/love/minor (pull request #96 )
...
Improve argument handling
--HG--
branch : minor
2017-11-03 12:27:10 +00:00
Bart van Strien
790625f0c4
Make love.run and love.errhand return a function for their main loop instead ( resolves #1268 )
...
This way lua code can stop every iteration (usually frame), and return to the
c++ code, so love can work in environments with co-operative multithreading
like emscripten.
It may be interesting to see if we can make this optional, so this only happens
on platforms that require it, but I doubt it's significant in the grand scheme
of things.
--HG--
branch : minor
2017-10-30 13:30:19 +01:00
Alex Szpakowski
d882c6811b
Make love.run's code style more consistent.
...
--HG--
branch : minor
2017-10-21 03:12:37 -03:00
Alex Szpakowski
ac84589c57
Backed out changeset 1b487edea8a8
...
--HG--
branch : minor
2017-09-30 17:02:16 -03:00
Alex Szpakowski
8fa511aea8
Move boot.lua into src/modules/love/
...
--HG--
branch : minor
2017-09-30 16:41:45 -03:00
Alex Szpakowski
90e86c329d
Add love.data module.
...
- Moved love.math.compress / decompress / decode / encode / hash to love.data.
- Changed love.data.compress/decompress to take the format argument first instead of second.
- Added love.data.newDataView. Returns a read-only subsection of an existing Data object.
- Added love.data.newByteData. Mostly useful in combination with LuaJIT's FFI as it has no extra methods currently.
- Added implementations of Lua 5.3's data packing APIs: love.data.packString / packData / unpack / getPackedSize.
Resolves issue #1336 .
Resolves issue #1331 .
--HG--
branch : minor
2017-09-24 19:25:27 -03:00