From 739f1168954e496862c6023aaca915dcf87d38e9 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Sun, 29 Apr 2018 12:00:30 -0700 Subject: [PATCH] Added rotate sound Next required thing: Collision check --- content/sounds/switch.wav | Bin 0 -> 13498 bytes main.cpp | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 content/sounds/switch.wav diff --git a/content/sounds/switch.wav b/content/sounds/switch.wav new file mode 100644 index 0000000000000000000000000000000000000000..4268c8157483fe56d306eb66fb743e17b44e69b2 GIT binary patch literal 13498 zcmeH`yKYob3`HFXFY#0)Xg~)@5$|mp+ZGYqys--iZ5Ex|_6%{>A~N0B<}2Rvq<#4vaWaShsB@n~lPgi2 zvT0njh_@CI+nn7!saF>9)FLih#5J1+?^T|jUm~8{G(K9yC5zCGo^{`^Eh4^>Z}tMA zIo8E_=GXASrg79FK3jyo2hVH2boU+n ze?brRaGv|}F61r!y_voI4)k9nM-O_-gPFRV6XrQ^PP&}uy=X6<3G2kv(D|`W%yZFh z+Ql>LdI!&X_zvPc(?j1G=PO^S(VtP<7!|cu8lQZ;CZ8Xs&8-R zT;@$**2PmVtE*74~%*0byoM-aVV_lqQ@|+XaJ9y3>)+?+z*6FLdXZC0ZX7=(-#B*MpXKKj1s*}$! zwOA+L!kS~BxFNZk6Hg6sRc7xHtn*{8<}%N!S3GCLRk>#eYS4q<40&PB5vyM1p5APS zjB~Gw*Br%orNO$mA-S3(-@@`?pSXE) zrbn)Y=kfm6Y|Gc{ny-3Q_pFE9tXNu}rIB&;Wv^y>^AHdAWSE|+XPno_3u|U?J>xUZ zb$TB8a*kXJ_jvX6wtTrSbvZ|VRxCZvi>oqw7lkYDj30A{OrIRR$j^#1y^Nbx|6p!0 zC%`+(@M2tRRqjxC^;f7X+@qqIv2)K3-aF>g>%Hv#+1YSs)-#^mtT^)^x8IoWvESYY zev3PSWxH4I)56uMXs)U+ikGkFd7njTQMU)r`##lt&kjAk^wS)4T%W!M{p#FcIK=uugTh!ZD9^{3&gE-I2@Nl0VJm&879aFbQtF;5` cJ(xT6%&}J*(^b literal 0 HcmV?d00001 diff --git a/main.cpp b/main.cpp index c9fa0d1..4a94c71 100644 --- a/main.cpp +++ b/main.cpp @@ -40,6 +40,7 @@ static G3D::RealTime inputTime = 0; static int FPSVal[8] = {10, 20, 30, 60, 120, 240, INT_MAX,1}; static int index = 2; static std::string cameraSound = ""; +static std::string clickSound = ""; static std::string dingSound = ""; static float TIMERVAL = 60.0F; static int SCOREVAL = 0; @@ -294,6 +295,7 @@ void RotateButtonListener::onButton1MouseClick(BaseButtonInstance* button) { if(selectedInstance != NULL) { + AudioPlayer::PlaySound(clickSound); if(selectedInstance->className == "Part") { PhysicalInstance* part = (PhysicalInstance*) selectedInstance; @@ -1509,6 +1511,7 @@ void App::main() { fntdominant = GFont::fromFile(GetFileInPath("/content/font/dominant.fnt")); fntlighttrek = GFont::fromFile(GetFileInPath("/content/font/lighttrek.fnt")); cameraSound = GetFileInPath("/content/sounds/SWITCH3.wav"); + clickSound = GetFileInPath("/content/sounds/switch.wav"); dingSound = GetFileInPath("/content/sounds/electronicpingshort.wav"); sky = Sky::create(NULL, ExePath() + "/content/sky/"); cursorid = cursor->openGLID();