Skip to content

Commit

Permalink
door open sound
Browse files Browse the repository at this point in the history
  • Loading branch information
soojeongmin committed Jul 5, 2024
1 parent cefdb8f commit 70214b0
Show file tree
Hide file tree
Showing 35 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Main/hostelDoor.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

function preload() {
this.load.image('hostelDoor', 'images/hosteldoorcrop.png');
this.load.audio('hostelDoorOpen', 'sounds/문열기4.mp3');
this.load.audio('hostelDoorOpen', 'sounds/철문여는소리.wav');
this.load.audio('bgm', 'sounds/in-the-embrace-of-darkness-197925.mp3');
}

Expand Down
Binary file removed Main/sounds/문열기4.mp3
Binary file not shown.
File renamed without changes.
Binary file added TheHostel/game/locker/imgForClue1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/locker/imgForClue2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/locker/imgForClue3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/locker/imgForClue4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions TheHostel/game/locker/lockerScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const patternbox = document.querySelector(".patternbox");
patternbox1.addEventListener("click", (e) => {
cnt1++;

patternbox1.style.backgroundImage = `url('imgForClue_0${cnt1}.png')`
patternbox1.style.backgroundImage = `url('imgForClue${cnt1}.png')`
patternbox2.style.backgroundRepeat = 'no-repeat';
patternbox1.style.backgroundSize = 'cover';

Expand All @@ -30,7 +30,7 @@ const patternbox = document.querySelector(".patternbox");
patternbox2.addEventListener("click", (e) => {
cnt2++;

patternbox2.style.backgroundImage = `url('imgForClue_0${cnt2}.png')`;
patternbox2.style.backgroundImage = `url('imgForClue${cnt2}.png')`;
patternbox2.style.backgroundRepeat = 'no-repeat';
patternbox2.style.backgroundSize = 'cover';

Expand All @@ -41,7 +41,7 @@ const patternbox = document.querySelector(".patternbox");
patternbox3.addEventListener("click", (e) => {
cnt3++;

patternbox3.style.backgroundImage = `url('imgForClue_0${cnt3}.png')`
patternbox3.style.backgroundImage = `url('imgForClue${cnt3}.png')`
patternbox3.style.backgroundRepeat = 'no-repeat';
patternbox3.style.backgroundSize = 'cover';

Expand All @@ -52,7 +52,7 @@ const patternbox = document.querySelector(".patternbox");
patternbox4.addEventListener("click", (e) => {
cnt4++;

patternbox4.style.backgroundImage = `url('imgForClue_0${cnt4}.png')`
patternbox4.style.backgroundImage = `url('imgForClue${cnt4}.png')`
patternbox4.style.backgroundRepeat = 'no-repeat';
patternbox4.style.backgroundSize = 'cover';

Expand Down
1 change: 0 additions & 1 deletion TheHostel/game/rushhour/rushhour.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
<button id="back-button">Back</button>

<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/2.6.2/phaser.min.js"></script>
<!-- <script src="rushhour.js"></script> -->
<script src="rushhour_main.js"></script>

</body>
Expand Down
Binary file added TheHostel/game/rushhour/rushhourtoken.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/game/rushhour/tokenimages/token9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified TheHostel/image/images/leftwall/거울.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/동전상자.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/메뉴판.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified TheHostel/image/images/leftwall/왼쪽벽열린선반.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/티비0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/티비1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/티비2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/티비3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TheHostel/image/images/leftwall/티비4.png
Binary file added TheHostel/image/pointer2.png
Binary file added TheHostel/image/pointer3.png
2 changes: 1 addition & 1 deletion TheHostel/js/02_the_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function handleOverlayClick(event, area) {
}
// 웨이터 영역 클릭 시 동작
else if (area.id === 'waiter-area' && checkAreaClick(area) && !buttonDisplayed) {
imageElement.src = '../image/images/barpage/말하는웨이터_수정.PNG';
imageElement.src = '../image/images/barpage/말하는웨이터.PNG';
otherAreaClicked = true;
addCloseButton();
removeClickableAreas(); // 영역 제거
Expand Down
18 changes: 9 additions & 9 deletions TheHostel/js/05_left_wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ window.onload = function() {

if(coinClick) {
const leftWallImage = document.getElementById('left-wall-image');
leftWallImage.src = '../image/images/leftwall/동전올려진상자_배경.PNG';
leftWallImage.src = '../image/images/leftwall/동전올려진상자.PNG';
setTimeout(() => {
leftWallImage.src = '../image/images/leftwall/최종열린상자_배경.PNG';
leftWallImage.src = '../image/images/leftwall/최종열린상자.PNG';
setTimeout(() => {
window.location.href = '../HTML/Ending.html';
}, 2000);
Expand All @@ -27,12 +27,12 @@ window.onload = function() {
// 클릭 가능한 영역을 추가하는 함수
function addClickableAreas() {
const clickableAreas = [
{ id: 'menu', x: 203, y: 142, width: 120, height: 160, image: '../image/images/leftwall/메뉴판_수정.PNG' },
{ id: 'menu', x: 203, y: 142, width: 120, height: 160, image: '../image/images/leftwall/메뉴판.PNG' },
{ id: 'pianokey', x: 399, y: 206, width: 210, height: 160, image: '../image/images/leftwall/피아노건반.PNG' },
{ id: 'mirror', x: 712, y: 78, width: 160, height: 190, image: '../image/images/leftwall/거울_수정.PNG' },
{ id: 'mirror', x: 712, y: 78, width: 160, height: 190, image: '../image/images/leftwall/거울.PNG' },
// { id: 'flowerpot', x: 703, y: 360, width: 130, height: 379, image: '../image/images/leftwall/꽃화분.PNG' },
{ id: 'television', x: 75, y: 342, width: 170, height: 160, image: '../image/images/leftwall/티비_1.PNG' },
{ id: 'green_drawer', x: 67, y: 537, width: 370, height: 220, image: '../image/images/leftwall/왼쪽벽열린선반_수정.PNG' },
{ id: 'green_drawer', x: 67, y: 537, width: 370, height: 220, image: '../image/images/leftwall/왼쪽벽열린선반.PNG' },
// { id: 'chest', x: 298, y: 417, width: 100, height: 100, image: '../image/images/leftwall/열린상자_빈.PNG' },
{ id: 'grandfather_clock', x: 1010, y: 141, width: 126, height: 419, href: '../game/clock/clock.html' },
{ id: 'grandfather_drawer', x: 971, y: 633, width: 212, height: 95, image: drawerUnlocked ? '../image/images/leftwall/서랍속반지.PNG' : '' }
Expand Down Expand Up @@ -209,14 +209,14 @@ function addTVArea() {
});

otherAreaClicked = true;
imageElement.src = '../image/images/leftwall/티비_0.gif';
imageElement.src = '../image/images/leftwall/티비0.gif';
addCloseButton();
removeClickableAreas(); // 영역 제거

// 티비 화면 자동 전환
interval = setInterval(function () {
i++;
imageElement.src = `../image/images/leftwall/티비_${i}.png`;
imageElement.src = `../image/images/leftwall/티비${i}.png`;

if (i === 4) {
i = 0;
Expand All @@ -232,7 +232,7 @@ function addTVArea() {
} else {
interval = setInterval(function () {
i++;
imageElement.src = `../image/images/leftwall/티비_${i}.png`;
imageElement.src = `../image/images/leftwall/티비${i}.png`;

if (i === 4) {
i = 0;
Expand Down Expand Up @@ -280,7 +280,7 @@ function handleGreenDrawerClick() {

// 동전 상자 이미지 표시 함수
function showCoinBox() {
imageElement.src = '../image/images/leftwall/동전상자_배경.PNG';
imageElement.src = '../image/images/leftwall/동전상자.PNG';
}

// 초기 영역 추가
Expand Down

0 comments on commit 70214b0

Please sign in to comment.