50 Commits

Author SHA1 Message Date
UnknownShadow200
68b861f6c8 little bit less hardcoding 2018-03-19 22:07:26 +11:00
UnknownShadow200
172fc68404 minor code cleanup 2017-12-15 20:04:23 +11:00
UnknownShadow200
a457166aae Block place sounds shouldn't play in classic mode. (Thanks cybertoon) 2017-11-16 23:59:00 +11:00
UnknownShadow200
92664c258a Add +/-push to disallow player pushing in MOTD. 2017-09-18 14:02:26 +10:00
UnknownShadow200
c4c6b96419 Little bit less lambda and Dictionary usage 2017-09-03 16:51:28 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
a31b21ad6e Rememeber to delete the old option line for usesound/usemusic.
Otherwise they interfere with the soundvolume/musicvolume lines
2017-06-26 19:46:39 +10:00
UnknownShadow200
adc4f60fdf Play walk sounds at half volume of place/dig sounds. Fixes #446. 2017-06-25 13:20:33 +10:00
UnknownShadow200
eadac08d0a Sounds/music volume is configurable between 0-100, instead of just ON/OFF. Fixes #320 and addresses #446 2017-06-24 21:30:30 +10:00
CybertronicToon
c08abee077 Adds proper metal and dig sounds
Adds pitch adjustment for metal sounds and dig sounds.
2017-02-18 01:30:45 -06:00
CybertronicToon
6b43c396bd Adds option to force openal
Adds in the option to force OpenAL. More specifically, adds in the code for the option to have an effect.
2017-02-18 01:28:25 -06:00
UnknownShadow200
b5e4c24172 Use metal sound enum 2017-02-18 18:11:43 +11:00
UnknownShadow200
3a32bc39b3 Try to reuse audio devices to avoid expensive device recreating 2017-02-17 21:35:07 +11:00
UnknownShadow200
a0af35a267 Fix error when reading .wav sounds that have metadata (Thanks Odd0002) 2017-02-17 11:46:34 +11:00
UnknownShadow200
b45bb70785 some micro optimisations 2017-02-07 22:53:54 +11:00
UnknownShadow200
1ab8982e7a Optimise adv mesh builder 2017-02-07 21:46:46 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
75f0a73841 Style: Indent catch and switch properly. 2016-12-02 15:31:34 +11:00
UnknownShadow200
250ab7f417 Do same for launcher 2016-11-27 14:50:45 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
d837e52724 Better indentation 2016-08-30 12:49:24 +10:00
UnknownShadow200
874de2ce9b An invalid .ogg file should not crash the whole client. (Thanks JplaysClassic) 2016-08-20 10:04:19 +10:00
UnknownShadow200
6b2651b8fb Split up Utils.cs into Utils.cs and Utils.Math.cs, also use our own ToLower() method that does not make any extra memory allocations. 2016-08-15 20:00:57 +10:00
UnknownShadow200
2e04b086e8 Fix music thread crashing on .NET 2.0 without a service pack. (Thanks winsupermario) 2016-07-01 11:11:23 +10:00
UnknownShadow200
bd8c56954d Don't crash if 'use music' is true and no .ogg files exist in audio directory. 2016-06-28 13:55:56 +10:00
UnknownShadow200
d6266ed61e Normalise line endings to end this madness. (Thanks Jjp137) 2016-06-11 17:56:37 +10:00
UnknownShadow200
41a85c95c1 Make selected block outline a bit better. 2016-06-09 00:26:39 +10:00
UnknownShadow200
fba550f3c2 Use generic BlockChanged event instead of hardcoding behaviour in PickingHandler. 2016-05-21 15:06:38 +10:00
UnknownShadow200
4841e84923 Fix sponge not properly updating blocks in singleplayer (Thanks andreja6), partially addresses #205. Fix music thread lagging on some computers due to not buffer enough data ahead of time (Thanks funzrey). 2016-05-20 15:14:19 +10:00
UnknownShadow200
442d72bd6b More usage of IGameComponent 2016-05-08 18:53:52 +10:00
UnknownShadow200
1e3fad5930 Make all game components handle new map / new map loaded. 2016-05-01 11:23:38 +10:00
UnknownShadow200
2bb67cd2f1 More usage of IGameComponent, modularise OnLoad. 2016-04-27 17:06:55 +10:00
UnknownShadow200
e51aefe4d7 Fix padding issues, also be more helpful when using 'OpenGL build with Intel GPU on windows.' 2016-04-19 10:17:24 +10:00
UnknownShadow200
3716e9f88e Read from the .wav files now, but still need to convert the old .bin to .wav list. 2016-04-16 20:23:59 +10:00
UnknownShadow200
a78205c45a Add copyright notices to every source file. 2016-03-26 13:51:42 +11:00
UnknownShadow200
3df2a4165f Quick fix for last commit borking chat. 2016-03-26 00:26:59 +11:00
UnknownShadow200
bb2f4a9271 More robustly handle audio device creation errors. Fixes #136. 2016-03-26 00:15:29 +11:00
UnknownShadow200
06b0562695 Touchup launcher a bit and make default height 40 pixels smaller, also fix clicking 'use sounds' multiple times causing the client to crash. 2015-12-31 15:26:04 +11:00
UnknownShadow200
998768b9f7 Fix crashing when using OpenAL backend (Thanks Vladcosmonaut) 2015-12-28 15:33:03 +11:00
UnknownShadow200
f03148555e Use absolute instead of relative paths, launching ClassicalSharp from terminal works properly now. 2015-12-27 22:51:26 +11:00
UnknownShadow200
dfa5662f99 Sounds work now. 2015-12-17 22:08:47 +11:00
UnknownShadow200
3cdb1d381f Default speed modifier is now 7, move first item slightly down in server list, other buttons should only be selectable by enter when user first moves the mouse (Thanks FabTheZen) 2015-12-10 10:55:42 +11:00
UnknownShadow200
6e85434945 Fix FPS limit crashing, fix music playing at half speed, more work on sounds. 2015-12-03 21:16:48 +11:00
UnknownShadow200
2e317c4b99 Add proper sounds, fix block models, remove vertical water on map edges. 2015-12-03 20:35:40 +11:00
UnknownShadow200
4ccbc900a1 Option to hide block in hand, make back to X smaller and move quit game to right of it, use waithandle instead of Thread.sleep so music thread doesn't keep client alive. 2015-11-30 08:08:32 +11:00
UnknownShadow200
0503a418a0 Update SharpWave to latest version, use WinMM for audio output on windows. 2015-11-28 09:40:59 +11:00
UnknownShadow200
bb6dfcb678 Play step sounds. 2015-11-28 08:54:43 +11:00
UnknownShadow200
4d7ca25459 Add partially working dig sounds. 2015-11-27 22:38:43 +11:00
UnknownShadow200
f864d0e527 Add somewhat working music support. 2015-11-27 18:01:32 +11:00
UnknownShadow200
04c47d493d Setup framework for AudioManager class. 2015-11-27 07:33:56 +11:00