-
Notifications
You must be signed in to change notification settings - Fork 10
Object Architecture
BOHYEON SEO edited this page Nov 21, 2019
·
3 revisions
component
βββ Login //λ‘κ·ΈμΈ νμ΄μ§
β βββ index.js
β βββ Button.js
βββ Lobby //λ‘λΉ νμ΄μ§
β βββ index.js
β βββ Info
β β βββ index.js
β βββ RoomList
β β βββ index.js
β β βββ RoomInfo.js
β βββ CreateRoomModal
β βββindex.js
βββ Room //λ£Έ νμ΄μ§
βββ index.js
βββ GameArea
β βββ index.js
βββ ChatArea
βββ index.js
- .jsλ μ»΄ν¬λνΈ, λλ ν 리λ μ»΄ν¬λνΈ λ¬Άμ
- lobby
- roomList
- roomInfo
- name
- numOfPlayer
- state
- roomInfo
- roomList
- room
- playerList
- player
- nickname
- character
- location
- state
- isMaster
- player
- state
- quiz
- question
- time
- winnerList
- nickname
- chatList
- chat
- nickname
- message
- chat
- playerList
- ROOM_CREATE // λ‘λΉμμ λ£Έμ΄ μμ±λμμ λ
- ROOM_MODIFIED // μΈμ λ³κ²½μ΄λ νμ±ν/λΉνμ±ν
- ROOM_ENTER // μκΈ°κ° λ€μ΄μμ λ
- PLAYER_ENTER // λ€λ₯Έ νλ μ΄μ΄ λ€μ΄μμ λ
- PLAYER_EXIT // λ€λ₯Έ νλ μ΄μ΄ λκ°μ λ
- PLAYER_MOVE // νλ μ΄μ΄ μμ§μ
- GAME_START // κ²μμ΄ μ²μ μμλμμ λ
- QUIZ // μλ‘μ΄ λΌμ΄λ (λ¬Έμ μΆμ )
- TIME_COUNT // μκ° μΉ΄μ΄νΈ
- TIME_OUT // μκ°μ΄ λλμ λ΅ κ³΅κ°, νλ½ μ λλ©μ΄μ
- GAME_OVER // μ°μΉμ νμ
- CHAT // μλ‘μ΄ μ±ν
- PLAYER_NUMBER // μ΄μμλ νλ μ΄μ΄ μ, κ΄μ νλ μ΄μ΄ μ λ³κ²½
βββ server
βββ app.js
βββ bin
β βββ www
βββ database
β βββ connection.js
β βββ user.js
β βββ quiz.js
β βββ nickname.js
βββ middlewares
β βββ passport.js
β βββ isAdmin.js
βββ event
β βββindex.js
βββ controller
β βββ index.js
βββ models
β βββ user.js
β βββ quiz.js
β βββ nickname.js
β βββ lobby.js
β βββ room.js
β βββ player.js
β βββ game.js
βββ routes
β βββ index.js
β βββ login.js
β βββ lobby.js
βββ util
βββ index.js
- socketμΌλ‘ model μ¬μ©ν΄μ μλΉμ€ μ§ν
- user
- μ μ κ²μ
- κ΄λ¦¬μμΈμ§ νμΈ
- quiz
- ν΄μ¦ 10κ° κ°μ Έμ€κΈ°
- nickname
- λλ€μ μ‘°ν©ν΄μ 20κ° κ°μ Έμ€κΈ°
- lobby
- playerList
- player
- roomList
- room
- νλ μΌ: νλ μ΄μ΄ κ΄λ¦¬, λ£Έμ μ 보λ₯Ό μ΄μ©ν΄μ 컨νΈλ‘€λ¬μκ² μ 보λ₯Ό μ 곡
- playerList
- room
- name
- id
- gameState
- roomState
- masterPlayer
- playerList
- player
- chatLog
- nickname
- message
- νλ μΌ: νλ μ΄μ΄μ μ 보λ₯Ό μ΄μ©ν΄μ 컨νΈλ‘€λ¬μκ² μμ μ μ 보λ₯Ό μ 곡, νλ μ΄μ΄ κ΄λ¦¬, λ‘λΉμκ² λ£Έ μ 보λ₯Ό μ 곡
- player
- socketId
- nickname
- character
- isAlive
- locationInField
- νλ μΌ: λ‘λΉ, λ£Έμκ² μμ μ μ 보λ₯Ό μ 곡
- game
- quizList
- round
- νλ μΌ: ν΄μ¦λ₯Ό λΆλ¬μ€κ³ , μ λ΅μ μκ³ μλ€. 컨νΈλ‘€λ¬μκ² ν΄μ¦μ μ λ΅μ μ 곡