Skip to content

Commit

Permalink
feat: avatar 동적으로 렌더링
Browse files Browse the repository at this point in the history
  • Loading branch information
donghyun1998 committed Mar 12, 2024
1 parent 989b659 commit 6f1fe92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/online-game/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function OnlineGame($container, info) {
// TODO: avatar 하드코딩된거 나중에 수정하기 중복 코드 gameutils.js로 따로 빼기
this.render = () => {
$container.innerHTML = `
${scoreBar()}
${scoreBar(info.data.data, myMatch)}
${toast()}
<div class="in-game" style="height: 100vh; width: 100vw; background-image: url('../../../assets/images/ingame_background.png'); background-size: cover"></div>
<canvas id="gameCanvas" style="position: absolute; top: 12vh; left: 6%; width: 88%; height: 88%;border-left: 3px dotted white; border-right: 3px dotted white;"></canvas>
Expand Down

0 comments on commit 6f1fe92

Please sign in to comment.