1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-09-15 11:41:41 +00:00
Commit graph

617 commits

Author SHA1 Message Date
fgenesis
c4b0decc10 Add some RenderObject child related functions:
+ obj_getChild()
+ obj_removeChild()
+ obj_removeChildIdx()
+ obj_removeAllChildren()
+ obj_getNumChildren()
2016-05-14 17:14:14 +02:00
fgenesis
d6dc3a8a09 Merge branch 'experimental' into moreclean
Conflicts:
	Aquaria/Avatar.cpp
	Aquaria/BoxElement.cpp
	Aquaria/BubbleRender.cpp
	Aquaria/FFTNotes.cpp
	Aquaria/StarRenderer.cpp
	Aquaria/WaterFont.cpp
	Aquaria/resource.h
	BBGE/AnimatedSprite.cpp
	BBGE/AnimatedSprite.h
	BBGE/BloomEffect.cpp
	BBGE/CShim.cpp
	BBGE/Collision.cpp
	BBGE/Collision.h
	BBGE/Core.cpp
	BBGE/Core.h
	BBGE/Cube.cpp
	BBGE/Cutscene.cpp
	BBGE/DFSprite.cpp
	BBGE/DFSprite.h
	BBGE/Datafile.cpp
	BBGE/Datafile.h
	BBGE/Flags.h
	BBGE/Interpolator.cpp
	BBGE/Light.cpp
	BBGE/Light.h
	BBGE/LightCone.cpp
	BBGE/Model.cpp
	BBGE/Model.h
	BBGE/OggStream.cpp
	BBGE/PackRead.cpp
	BBGE/PointSprites.cpp
	BBGE/RenderObject.cpp
	BBGE/SkeletalSprite.cpp
2016-05-10 18:40:01 +02:00
fgenesis
e7791c5ddc Remove RenderObject::collisionRects.
Another vector that was always empty, optionally filled when specified
by a skeletal file, but none actually did this. Should be safe to remove.

Also small related optimization in Game::collideSkeletalVsCircle().
2016-05-07 01:00:16 +02:00
fgenesis
35a3888c94 Remove RenderObject::collidePosition and related code
This was always (0, 0) and optionally used for bones if defined in skeletal files.
None of the official skeletal files used this, so this should be safe to remove.
2016-05-07 00:47:45 +02:00
fgenesis
d4a1e1ef1d Remove another unnecessary file 2016-05-05 20:36:10 +02:00
fgenesis
caee9f8b0c remove some unused Avatar functions and variables 2016-05-05 20:11:49 +02:00
fgenesis
51baa76816 Remove unused files 2016-05-05 20:09:39 +02:00
Nicolas Braud-Santoni
b29e57d15b
Removing more build options
This times, it is `AQ_TEST_QUADTRAIL`, `AQUARIA_BUILD_MAPVIS`
  and `DISABLE_SUBS` that have disappeared.
2016-05-05 20:02:08 +02:00
Nicolas Braud-Santoni
eb128e65a4 Remove commented-out code 2016-05-05 19:57:50 +02:00
fgenesis
b2a0694281 Very tiny cleanup 2016-05-05 03:52:22 +02:00
Nicolas Braud-Santoni
276265be1d Eliminating obsolete #ifdefs and friends (#26)
The following options have been applied globally, using unifdef(1):
```c
 #undef BBGE_BUILD_DIRECTX

 #define BBGE_BUILD_OPENGL 1
 #define GL_GLEXT_LEGACY   1
 #define HAVE_PUTENV       1
 #define TIXML_USE_STL     1
 #define BBGE_BUILD_SDL    1
```
2016-05-05 03:49:41 +02:00
fgenesis
dff33b0530 Remove unused bones, don't crash when hardcoded bones are not found 2016-04-24 19:28:30 +02:00
fgenesis
339490e3e9 Implemnt AC_SET_PASS and AC_RESET_PASS bone commands 2016-04-17 14:33:23 +02:00
fgenesis
7daf117744 Add findPathFreeMemory() Lua function 2016-04-09 00:01:38 +02:00
fgenesis
83ce096119 fix far off minimap symbols. broke in ce7239056 2016-04-08 23:58:48 +02:00
fgenesis
486541b1d7 actually fix incremental pathfinding for real this time 2016-04-08 23:14:33 +02:00
fgenesis
a88ca0a90d Update JPS.h & fix typos in incremental pathfinding Lua API that prevented things from ever working 2016-04-07 13:05:57 +02:00
fgenesis
ce7239056b Minimap icon overhaul:
- Allow specifying custom minimap icons for nodes and entities
- Allow overriding minimap textures
- This removes various hacks in MiniMapRender and related
- Allow access to the MiniMapRender object via Lua
  (don't delete it or the game will crash)

Little extra: Added destructors for some entity classes
2016-03-21 03:40:56 +01:00
fgenesis
9e0d59460a Add getInterfaceFunctionNames(), isObstructedRaw(), OT_OUTOFBOUNDS 2016-03-20 19:19:21 +01:00
fgenesis
65e2bd83b2 Implement setSceneDisplayNameInSave() Lua function.
This allows to specify pretty map names to be shown in save slots for mods.
2016-03-15 02:19:39 +01:00
fgenesis
abc35b4c9d Fix save slot index confusion in dev mode. + tiny cleanup. 2016-03-13 02:50:43 +01:00
fgenesis
77c7aed8a0 Merge branch 'master' into experimental 2016-02-15 17:17:59 +01:00
fgenesis
6971e7898f Always respect AQUARIA_EXTRA_DATA_DIR define. Thx smls. 2016-02-15 17:17:18 +01:00
fgenesis
198f0353d5 Fix typo in entity_getBoneByInternalId(), add obj_getBlendType() 2016-01-10 23:49:11 +01:00
fgenesis
f55a70b459 Give script-spawned entities a negative ID.
This should prevent most ID conflicts and problems related to that,
e.g. spurious changes to entity positions while working on a map.
2015-11-29 21:43:21 +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