Alex Szpakowski
7a20bbc6c4
Added an optional search order enum ("first" or "last") to love.filesystem.setIdentity and love.filesystem.mount (resolves issue #694 )
2013-08-04 00:32:23 -03:00
Alex Szpakowski
2106ff2403
Added love.threaderror event callback function (re issue #673 )
2013-08-03 15:10:08 -03:00
Alex Szpakowski
bdb4c7eb90
Renamed t.screen to t.window in love.conf (resolves issue #637 )
2013-07-20 14:49:14 -03:00
Alex Szpakowski
67353d4de7
Reduced CPU usage (and improved performance) for the nogame screen
2013-07-14 18:04:20 -03:00
rude
aa1c091cc9
Add Baby Inspector no-game screen.
...
As always, I had great plans for the no game screen, but these great plans take
way too much time to implement. So I settled for something simpler, i.e. the
standard LSD stuff.
2013-07-14 21:49:04 +02:00
Alex Szpakowski
8084096937
Fixed the error screen sometimes not properly appearing until the next input event due to double/triple-buffering
2013-07-01 23:29:18 -03:00
Alex Szpakowski
958a25e0af
Flipped the loading order of the graphics and window modules (first window, then graphics)
2013-06-21 06:02:09 -03:00
Alex Szpakowski
66b9b46846
Removed the love.joystickball event callback function
2013-06-12 06:30:00 -03:00
Alex Szpakowski
6b7eb35d8a
Added love.visible(boolean visible) event callback
2013-06-11 20:15:55 -03:00
Alex Szpakowski
f253a016f6
Cleaned up love.run a bit
2013-06-08 19:56:36 -03:00
Alex Szpakowski
6a76e082e4
Re-added love.graphics.getWidth/getHeight
2013-05-28 20:23:31 -03:00
Alex Szpakowski
252aa114a7
Fixed a potential error in the release errhand function
2013-05-27 16:18:38 -03:00
Bart van Strien
7b923dc75b
On windows, open the console window before the main window, which should mean that the main window gets focus
2013-05-24 22:22:40 +02:00
Alex Szpakowski
eaf69aead1
Renamed love.window.setTitle back to love.window.setCaption
...
Previous rename was unnecessary
2013-05-21 22:24:51 -03:00
Alex Szpakowski
ff77eb4b29
Added love.window (issue #6.) All window-related functions have been moved from love.graphics to love.window.
...
love.graphics.setCaption has been renamed to love.window.setTitle.
2013-05-10 22:32:15 -03:00
Bart van Strien
8a5c8c4dc4
Use tail calls to event handlers from love.handlers
2013-05-10 19:06:12 +02:00
Bart van Strien
79d1a7a6ef
Add love.mousefocus (partial issue #120 ) temporary name (see issue #573 ) and it's waiting for an exposed love.window to get a check, too
2013-05-10 19:03:16 +02:00
Alex Szpakowski
c9003750fa
Removed extension and "."'s from default filesystem identity (issue #568 )
2013-05-03 15:43:10 -03:00
Alex Szpakowski
77c6efd8fd
Fixed love.mouse.setPosition when called in love.load (issue #611 )
2013-05-02 07:05:14 -07:00
Alex Szpakowski
6142352cd4
love._openConsole is now called before main.lua is loaded
2013-04-18 17:03:32 -03:00
Alex Szpakowski
ba3a363fd3
Potentially worked around an SDL resize event bug in windows causing initial window creation to happen twice
2013-04-12 14:20:00 -03:00
Alex Szpakowski
7391d9821f
Merged love.graphics.origin into default (issue #124 )
2013-04-11 17:59:32 -03:00
Bart van Strien
7efe11b11f
Add centered flag to setMode, optionally centers the window (on by default, as before) (issue #463 )
2013-03-10 23:00:31 +01:00
Alex Szpakowski
6b1222366d
Removed 'moved' suffix from new joystick callbacks
...
--HG--
branch : joystickevents
2013-03-05 12:31:11 -04:00
Alex Szpakowski
a844ac2389
Added love.joystickaxismoved, love.joystickballmoved, and love.joystickhatmoved callbacks
...
--HG--
branch : joystickevents
2013-03-04 18:49:25 -04:00
Bart van Strien
3d0c5761ce
Merge in default, update changelog
...
--HG--
branch : minor
2013-03-03 19:51:04 +01:00
vrld
5f586390d8
Add module love.math. Implements xorshift RNG.
...
Contains just a RNG for now, but may include other functionality (e.g.
transforms) later on.
New Functions:
-- as in the lua math library:
love.math.randomseed(number) -- set random seed
love.math.random() -- get random number in [0:1) (uniformly distributed)
love.math.random(high) -- get integer random number in [1:high]
love.math.random(low, high) -- get integer random number in [low:high]
-- additional functions
love.math.randnormal() -- get normally distributed number with zero mean
-- and unit variance
love.math.randnormal(o) -- get normally distributed number with zero mean
-- and standard deviation `o`
love.math.randnormal(m, o) -- get normally distributed number with mean `m`
-- and standard deviation `o`
2013-02-25 18:32:54 +01:00
Alex Szpakowski
083218742a
Added love.graphics.origin(): resets the coordinate system (replaces the current transformation matrix with the identity)
...
--HG--
branch : love.graphics.origin
2013-02-24 14:07:03 -04:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
0fd4b147a4
Merge in default
...
--HG--
branch : minor
2013-01-27 19:15:55 +01:00
Alexander Szpakowski
ce75b3af69
Merge from root
2013-01-17 20:29:48 -04:00
Bart van Strien
a72c981c32
Make sure love.errhand gets a local reference to print as well, and find the error handler at errortime (partial #390 )
2013-01-18 00:55:28 +01:00
Alexander Szpakowski
e24d721381
Renamed all instances of 'ShaderEffect' (previously 'PixelEffect') to 'Shader'.
2013-01-16 07:21:41 -04:00
Alexander Szpakowski
0611234067
changed PixelEffect name to ShaderEffect, added lua-side support for vert/frag shader combinations with love.graphics.newShaderEffect, added tentative support for single-file vertex+fragment shaders
2012-12-20 21:51:31 -04:00
Bart van Strien
a67a23e10f
Maerge in default
...
--HG--
branch : minor
2012-11-18 19:28:57 +01:00
vrld
f3bf2bbfe5
Fix bug where the compat message crashed love.
...
If in conf.lua `t.screen' is set to false or nil, the OpenGL context will not
be initialized, leading to a crash in 'Font::print()' when printing the compat
message later on.
2012-10-17 18:36:32 +02:00
Bart van Strien
8867f6c329
Merge in default
...
--HG--
branch : minor
2012-10-14 17:23:35 +02:00
vrld
5e3e24dcfb
love.run(): Sleep after presenting graphics buffer.
...
Less sluggish controls w/o vsync.
2012-10-01 22:11:51 +02:00
Bart van Strien
bddee1753b
Use a flags table for setMode now, implement resizable and borderless windows, and add resize event
...
Example setMode invocation: love.graphics.setMode(800, 600, {fullscreen = false, vsync = true, borderless = true})
t.screen.resizable and t.screen.borderless are available in love.conf
And love.resize(w, h) gets called if it exists on a resize event.
NOTE: love.handlers.resize(w, h) does the required setMode, but that does mean a visual reload
--HG--
branch : minor
2012-07-23 11:53:13 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
Bart van Strien
0a423d3e67
Export boot.lua as love.boot, and make it return a function that 'does everything'
...
Of course love.cpp is modified accordingly (now calls the result of boot.lua)
2012-05-29 23:26:23 +02:00
Bart van Strien
f933d5983b
Add basic support for file:// uri scheme (issue #425 )
...
Note that this won't unescape, or anything, just remove the file:// prefix if present
2012-05-19 01:27:35 +02:00
Bart van Strien
cadde8947f
Use love.run's return value as return value (if valid), default to 0
2012-05-18 18:56:05 +02:00
Bart van Strien
db7fba1d3a
Now returns return value 1 on error
2012-05-18 18:12:25 +02:00
Bart van Strien
0f0a64819e
Add --fused command line argument, to override fused game detection
...
(Designed to make launchers work for 'fake-fused' games, for example
ones you'd easily distribute on linux.)
2012-05-18 15:15:03 +02:00
Bart van Strien
2e8939febe
Add automatic seeding to love.run
2012-02-05 23:13:42 +01:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
vrld
d218291473
Fix issue #348 - strict mode. Use setCanvas instead of setRenderTarget in
...
love.releaseerrhand.
2012-01-04 14:01:14 +01:00
Bart van Strien
d3bd9b1156
Events now have 4 arguments (or less)
2011-12-20 19:17:26 +01:00
Bart van Strien
adf25991e8
Fix the joystick event handler names, to match the new event names
2011-12-19 14:15:48 +01:00