1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-24 15:30:53 +00:00
Aquaria/BBGE
fgenesis c44c67a063 Worldmap overhaul, part 1
In short:
- No more grid-for-alpha; everything uses generated textures now
  (With proper bilinear filtering so it looks like the old method)
- All tiles are now shown partially uncovered at the same time;
  selecting one is no longer needed
- Gems can now be local (associated to a tile) or global.
  Local games move with their tile, global ones stay where they were placed

Background:
Originally there were two possible implementations of how to render the world map:
- One used write-alpha-to-texture to implement graual uncovering.
- The other (permanently enabled) used the DrawGrid to render the map tiles
  as a fine grid, each little square having its own alpha value
The downside of the first method was that it didn't look as good as the
second, so i guess that's why it was never fully finished.
The main downside of the second method was that it burned a lot of vertices
just to do alpha, so only one tile at a time could show the detailed grid.

I also never liked how an entire tile was effectively fully uncovered once
the map was first entered, taking away a lot of the exploration feeling
that could have been there if everything that hasn't been explored would be
completely invisible.
I've added this worldmap uncovering method as an optional config param,
<WorldMap revealMethod="1"/> but i've decided to fully switch over now.

Things left to be done:
- create a WorldMapRender instance only once and keep the tiles across map loads
- add debug option to reload/recreate worldmap at runtime
- cleanup gem storage and carry over the player gem properly (ged rid of std::list)
- remove "worldmap" grid render type
- Add more user "pyramid" gems as world map markers. More colors!
- check that gems and beacons still work as they should
2024-11-15 03:12:14 +01:00
..
ActionInput.cpp
ActionInput.h
ActionMapper.cpp
ActionMapper.h
ActionSet.cpp
ActionSet.h
ActionStatus.cpp Add MOUSE_BUTTON_REAL_* mapping IDs because sometimes we need to handle unmapped mouse buttons 2024-09-22 02:36:18 +02:00
ActionStatus.h Add MOUSE_BUTTON_REAL_* mapping IDs because sometimes we need to handle unmapped mouse buttons 2024-09-22 02:36:18 +02:00
AfterEffect.cpp
AfterEffect.h
Base.cpp
Base.h
BaseText.h
bithacks.h
BitmapFont.cpp
BitmapFont.h
CMakeLists.txt
Cocoa.mm
Core.cpp fix missed break in prev^2 commit 2024-10-15 04:11:30 +02:00
Core.h Change the text input box to use SDL textinput events 2024-10-15 04:07:22 +02:00
DarkLayer.cpp
DarkLayer.h
DataStructures.cpp
DataStructures.h Reduce Game::fillGrid() complexity from O(n^2) to O(n) when trimming 2024-11-04 04:47:34 +01:00
DebugFont.cpp fix a warning 2024-09-22 03:23:51 +02:00
DebugFont.h
DirWatcher.cpp
DirWatcher.h
Emitter.cpp
EngineEnums.h
Event.cpp
Event.h
FmodOpenALBridge.cpp
FmodOpenALBridge.h
FrameBuffer.cpp
FrameBuffer.h
GameKeyNames.cpp
GameKeyNames.h
GameKeys.h
GLLoad.cpp
GLLoad.h
Gradient.cpp
Gradient.h
Image.cpp save savefile previews as png. this finally kills .zga format, but it's kept for backwards compat 2024-11-09 03:46:52 +01:00
Image.h save savefile previews as png. this finally kills .zga format, but it's kept for backwards compat 2024-11-09 03:46:52 +01:00
Interpolators.cpp
Interpolators.h
Joystick.cpp
Joystick.h
Localization.cpp
Localization.h
MathFunctions.h
MT.cpp
MT.h
OpenGLStubs.h
OSFunctions.cpp Support _mods/modname/mod-info.xml in addition to the old _mods/modname.xml 2024-11-04 22:38:29 +01:00
OSFunctions.h Support _mods/modname/mod-info.xml in addition to the old _mods/modname.xml 2024-11-04 22:38:29 +01:00
ParticleEffect.cpp
ParticleManager.cpp
Particles.h
Precacher.cpp
Precacher.h
Quad.cpp
Quad.h
QuadGrid.cpp
QuadGrid.h
ReadXML.cpp
ReadXML.h
Rect.h
Refcounted.h
RenderBase.cpp
RenderBase.h
RenderGrid.cpp
RenderGrid.h
RenderObject.cpp very minor perf thing: skip some RenderObject child checks when there are no children 2024-07-13 06:48:30 +02:00
RenderObject.h
RenderObject_inline.h
RenderObjectLayer.cpp
RenderRect.cpp
RenderState.cpp
RenderState.h
RoundedRect.cpp
RoundedRect.h
ScreenTransition.cpp
ScreenTransition.h
ScriptObject.cpp
ScriptObject.h
Shader.cpp
Shader.h
SimpleIStringStream.h
SkeletalSprite.cpp
SkeletalSprite.h
Slider.cpp
Slider.h
SoundManager.cpp
SoundManager.h
SpawnParticleData.cpp
SplineGrid.cpp
SplineGrid.h
StateMachine.cpp
StateMachine.h
StateManager.cpp
StateManager.h
StringBank.cpp
StringBank.h
Texture.cpp Worldmap overhaul, part 1 2024-11-15 03:12:14 +01:00
Texture.h Worldmap overhaul, part 1 2024-11-15 03:12:14 +01:00
TextureMgr.cpp
TextureMgr.h
Tile.cpp typo; fix tile wavy-effect flip (this effectively made numpad 5+6 effects the same) 2024-09-22 04:32:18 +02:00
Tile.h don't lose tile flags when changing solidness; update grid when flipping solid tile 2024-09-23 23:29:10 +02:00
TileRender.cpp
TileRender.h
Tileset.cpp
Tileset.h
TTFFont.cpp
TTFFont.h
Vector.cpp
Vector.h
VertexBuffer.cpp
VertexBuffer.h
Window.cpp
Window.h
Window_SDL1.cpp
Window_SDL2.cpp