Commit Graph

14 Commits (master)

Author SHA1 Message Date
WKFO 4891277b79 Fix death music not playing over tombstone screen 2021-03-28 10:55:46 -04:00
WKFO 04d2d17d3f Stop planet ambient sound once player is flying 2021-01-08 10:21:16 +01:00
Karl F 9e44b09314 Happy new year!
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
Webster Sheets 6f1893a728 Add menu music courtesy of franzopow
- Credit: Francesco Corrado for menu_master.ogg and lost_space_explorer.ogg
- Refactor MusicPlayer.lua to expose an API for other modules to consume.
- Remove SoundMusic's dependency on Lua, decouple through a signal
2020-11-28 16:50:33 -05:00
Webster Sheets 37c96041e1
Refactor Body inheritance tree to remove Object and CityOnPlanet (#4995)
* Remove CityOnPlanet from Object hierarchy

* Remove Object from the inheritance hierarchy

* Rename Object -> ObjectType
2020-11-11 19:33:04 -05:00
Webster Sheets 2d9531d3d7 Add more profiling points
Better profile the startup phase, add profiling to Sound.cpp
2020-08-31 21:06:04 -04:00
Webster Sheets b71787c942 Major changes to WorldView screen functions
- Body::GetTargetIndicatorPosition now returns local-space coordinates
- CameraContext has a getter for parent frame, renamed GetCamFrame to GetTempFrame, added GetCameraOrient/Position
- Implemented matrix4x4 utilities to construct from orient+pos, fast inverse transform for position vectors
- Fixed bug where mouse would be locked if held while docking
- Preliminary work on ShipViewController, made WorldView::shipView an unique_ptr (why didn't I do it that way in the first place?)
- Cleaned up some cruft from WorldView and moved to appropriate locations
- Completely changed the way WorldSpaceToScreenSpace etc. works, now no longer requires camera frame
- Added WorldView::RelSpaceToScreenSpace, meant for pigui to use for displaying e.g. body:GetPositionRelTo(player)
- WorldSpaceToScreenSpace now operates on frame-relative coordinates, use RelSpaceToScreenSpace for player-relative coordinates
2020-08-02 17:35:09 -04:00
Edoardo Morandi e6b9cd8d71 Remove many warnings 2020-04-25 01:31:42 +02:00
Webster Sheets ec410f31d8 Update includes to point to new lua/ directory 2020-01-20 18:13:45 -05:00
Karl F 436db08636 Happy new decade!
May you live long and prosper!
2020-01-01 10:47:46 +01:00
Webster Sheets 2e8376523e Promote FrameId to wrapper and fix crash, remove unused test (#4745)
* Make FrameId a wrapper over an int, fix crashes

- Cleanup some of the tests, use <cstddef>.
- Fixed a crash in Frame::DeleteCameraFrame()
- Made CameraContext::GetCamFrame() return the invalid frame index when there
  is no camera frame
- Fixed a typo related to autosave
2019-11-26 09:26:59 +01:00
mike-f1 4f1eaa41d3 Update all files to store and use FrameId instead of raw pointers 2019-11-16 17:54:14 +01:00
Webster Sheets 2ce4814426 Use AudioDevices instead of legacy SDL 1.2 code. 2019-10-08 17:29:21 -04:00
Webster Sheets c815e4aba9 Refactor sound code to it's own folder, delete Pi::BoinkNoise. 2019-03-10 16:45:34 -04:00