fgenesis
6971e7898f
Always respect AQUARIA_EXTRA_DATA_DIR define. Thx smls.
2016-02-15 17:17:18 +01:00
fgenesis
ed089f38f7
Add two more font/text related Lua functions, and some more:
...
+ entity_getBoneByInternalId()
+ entity_getNumBones()
+ text_getLineHeight()
+ text_getNumLines()
2015-11-16 03:59:47 +01:00
fgenesis
26549f84b7
Fix font bounds calculation
...
BitmapFont::getActualWidth() is still a bit less than getStringWidth(),
but won't fix that now since it shouldn't cause any issues... hopefully.
2015-11-11 23:27:32 +01:00
fgenesis
9285ce49bd
Make world map respect SeeMapMode (like the minimap already does)
...
This makes the show or hide map status consistent for both map and minimap.
2015-08-15 21:16:48 +02:00
fgenesis
e8dc99b30d
Add script functions:
...
+ createArialTextBig()
+ createArialTextSmall()
+ quad_getTexOffset()
+ quad_setTexOffset()
2015-08-15 21:15:42 +02:00
fgenesis
03f47b0480
Add Lua functions:
...
+ getModName()
+ getModPath()
And fileExists() returns the normalized file name as 2nd result now.
2015-08-03 20:34:31 +02:00
fgenesis
5410028906
Constify some things, no functional changes
2015-08-03 20:33:22 +02:00
fgenesis
21545e1a24
Show refresh rate in resolution selector
2015-07-12 20:25:46 +02:00
fgenesis
e285c26e05
Add world map gem Lua functions:
...
setGemName() to change texture
setGemBlink() to allow blinking other gems than only the first added one
2015-07-09 01:12:52 +02:00
fgenesis
43a4f60ab1
Little fix to world map partial reveal method coloring.
...
Bug has gone unnoticed until now.
2015-07-05 22:31:59 +02:00
fgenesis
eb56a93200
Add node_setActivationRange()
2015-06-28 18:55:35 +02:00
fgenesis
f6fc75a165
Add isSkippingCutscene() Lua function
2015-06-22 23:58:07 +02:00
fgenesis
209964034d
Make maxSpeed float, little cleanup, minor Lua API stuff
...
Plus additional functions that don't use speed types:
+ entity_followPathSpeed()
+ entity_moveToNodeSpeed()
+ entity_swimToNodeSpeed()
+ entity_swimToPositionSpeed()
The following old functions (plus all of the above) return float now
(how long moving will take):
* entity_followPath()
* entity_moveToNode()
* entity_swimToNode)
* entity_swimToPosition()
2015-06-12 02:59:01 +02:00
fgenesis
1af3a580ed
Minor Lua changes:
...
+ node_setEmitter(name)
+ node_getEmitter()
* obj_setTexture() returns bool now
2015-06-08 02:14:45 +02:00
fgenesis
b71c21a0b3
Clear skel cache in animation editor
2015-06-08 02:13:52 +02:00
fgenesis
778a275ce2
RenderObject::updateCull is now float, some Lua additions
...
- add obj_getUpdateCull()
- add obs parameter to getWallNormal(x, y, dist, obs) to control which obs to consider
- add getPerformanceCounter(), getPerformanceFreq()
2015-06-03 04:04:03 +02:00
fgenesis
f0d580d873
Refactor texture loading code; should fix a crash that started appearing recently.
2015-03-24 00:06:51 +01:00
fgenesis
66cf20ffa9
Allow loading eats.txt from mods
...
Thx Daxar for pointing out this was forgotten.
2015-03-16 03:48:20 +01:00
fgenesis
9973afbac6
Allow custom capes in mods
2015-03-09 04:55:03 +01:00
fgenesis
b70de7f94b
Add Lua function text_getStringWidth()
2015-03-08 20:44:14 +01:00
fgenesis
220c8f1c08
add Lua function: setBGGradient()
2015-01-28 02:21:48 +01:00
fgenesis
2612b6e251
tiny cleanup
2015-01-28 01:45:52 +01:00
fgenesis
f54d341242
Allow obj_addChild() to specify front or back order
2015-01-14 21:49:04 +01:00
fgenesis
4b32c4364f
Allow interactive parallax layer elements
2015-01-14 21:48:37 +01:00
fgenesis
aab0dad1cb
Allow Shift+G to increase game time 10x
2014-09-17 05:11:26 +02:00
fgenesis
d82553d6a7
Fixes to element interaction.
...
It now works with multiple entities doing interaction, and the correct
update list is used, which should save a bit more CPU.
2014-09-13 16:33:32 +02:00
fgenesis
e8ff469205
Revert "Fix crash when adding a gem in entity init()", broke world map.
...
This reverts commit 17b8cd2079
.
2014-08-15 21:18:43 +02:00
fgenesis
07807bfa36
Minor SDL lib file update for win32. Add isShot() Lua function that was forgotten.
2014-08-15 20:29:22 +02:00
fgenesis
300f326777
Use std::vector instead of std::list for RenderObject children
2014-07-21 22:21:22 +02:00
fgenesis
35c8086802
Some changed to pathfinding. This hopefully gets rid of spikes in very short paths. Some untested changes.
2014-07-21 22:20:08 +02:00
fgenesis
6b82ea86be
Add some Lua functons for shots:
...
* shot_canHitEntity
* filterNearestShots
* filterNearestShotsAdd
* getNextFilteredShot
2014-06-22 02:19:45 +02:00
fgenesis
94cd430b84
oops
2014-06-21 18:47:05 +02:00
fgenesis
fceb1d1bcc
This should fix some problems on Linux/OSX, which uses absolute paths for mods. Thx Daxar.
2014-06-21 18:14:01 +02:00
fgenesis
4a20874841
Fix unnecessary error message with empty or non-existing songs.xml
2014-06-13 23:40:33 +02:00
fgenesis
17b8cd2079
Fix crash when adding a gem in entity init()
2014-06-13 03:39:01 +02:00
fgenesis
121e0f9e8a
Allow passing a shot name to most shot_get*() Lua functions
2014-06-13 01:31:57 +02:00
fgenesis
d95b5cccdd
Allow editing repeat scale via editor, and save this in map files.
...
I chose to add an extra XML tag storing only the needed data in order to
preserve compatibility with older versions that expect the specific
layout of the <SE k="..." /> tag, which can't be changed.
Adding a new tag like <SE m="..." /> with an updated layout is also
not an option, because older versions would not load these, and
maps would be empty as a result.
2014-06-12 20:07:49 +02:00
fgenesis
817d4beb1c
Fix tinyXML2 misuse; simplify scene saving code a little
2014-06-10 02:18:55 +02:00
fgenesis
065def0674
Fixes to prev commit - restore ttvfs functionality when reading XML files, and minor other things
2014-06-09 23:39:33 +02:00
fgenesis
4bafcb3e18
Merge branch 'tinyxml2' into experimental. Thanks to James Le Cuirot for this.
...
Conflicts:
Aquaria/UserSettings.cpp
CMakeLists.txt
2014-06-09 22:31:39 +02:00
fgenesis
1c67b5479b
Include tinyxml2, update cmake to use this optionally
2014-06-09 22:21:24 +02:00
fgenesis
8d379653d4
Stash commit
2014-06-09 16:38:19 +02:00
James Le Cuirot
43d41feeb8
Migrate from TinyXML v1 to v2. Not bundled (yet).
2014-06-08 21:11:23 +01:00
fgenesis
8b0ccb2ee4
Fix cmake build + disable "unsafe" Lua package table
2014-05-30 22:51:12 +02:00
fgenesis
86d2fcebda
Fix problematic Lua init and add user setting to keep 'os' and 'io' functions.
...
From the Lua 5.1 manual:
"The luaopen_* functions (to open libraries) cannot be called directly,
like a regular C function. They must be called through Lua,
like a Lua function."
All standard tables are now loaded with luaL_openlibs(), which includes os and io.
Because these are inherently unsafe, there is a new config setting:
<AllowDangerousScriptFunctions on="1" />
This is disabled by default.
The title screen will show a warning when the setting is on.
2014-05-16 01:03:54 +02:00
fgenesis
3db8c9e13a
Pathfinding & map grid improvements.
...
There were still only 6 of 8 bits of the map grid in use.
The last 2 bits are now available as non-colliding user bits,
and are ignored unless specially treated.
The findPath() function can now be told which bits to respect,
which allows to prevent pathfinding to pass through fish tunnels,
for example.
A function for fast user bit map dilation is added as well.
2014-05-16 00:11:52 +02:00
fgenesis
00b5f46154
Unload mod archives when exiting a mod - so that the file doesn't stay open
2014-04-23 05:20:47 +02:00
fgenesis
71c87e1302
Restore pathfinding to be map-block-exact.
2014-04-23 02:07:00 +02:00
fgenesis
a0c53a488f
Set positional sound position early
2014-04-15 21:39:32 +02:00
fgenesis
0b4e6854f7
Fix lost health refill on save.
...
The old HP (before health refill) ended up in the save file.
Loading a save would therefore continue with the HP the player
had before saving.
2014-04-15 21:01:18 +02:00