Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
keshav2010 committed Mar 8, 2024
1 parent 2a7e907 commit 291d59e
Show file tree
Hide file tree
Showing 5 changed files with 1,718 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules/
dist/
node_modules/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN npm install -g tsx
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "run", "deploy"]
CMD ["npm", "run", "start"]
1,644 changes: 1,644 additions & 0 deletions dist/bundle.js

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<html>

<head>
<title>Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script defer src="bundle.js"></script></head>

<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-8" id="app">
</div>

<div class="col-sm-4" style="background-color: #eee; height:100vh; display:flex; flex-direction:column;">
<div class="card" style="flex:0.2">

<h4>RealTimeStrategy IO-Game Project (0.0.2 BUILD)</h4>
<ol>
<li>MMB => Create Soldier</li>
<li>hold leftclick n drag = select soldiers</li>
<li>right click => move selected soldiers or order em to attack</li>
<li>MouseWheel=>Zoom In/Out, Arrow Keys => Move Camera Around</li>
</ol>
<p>Developer @ Discord <strong>pronoob2010</strong></p>

<p>Still in very initial phase</p>

</div>
<div class="card container">
<button class="btn-primary" style="max-width: 150px;">READY</button>
</div>
<div class="card container">
<h2>spawn units</h2>
<div class="card" style="display: flex; flex-direction: row; overflow-x: auto;">
<button class="btn-primary"> SPEARMAN</button>
<button class="btn-primary"> KNIGHT</button>
<button class="btn-primary"> MESSENGER</button>
</div>
</div>
<div class="card" style="flex:1">
<div class="card-header d-flex justify-content-between align-items-center p-3">
<h5 class="mb-0">IN-GAME Notifications</h5>
</div>
<div class="card-body chat-body" data-mdb-perfect-scrollbar="true"
style="position: relative; height: 100%; min-height:250px; overflow-y: scroll;">

</div>
<div class="card-footer text-muted d-flex justify-content-start align-items-center p-3">
<div class="input-group mb-0">
<input type="text" class="form-control" placeholder="Type message" id="chat-message" />
<button class="btn btn-warning" type="button" id="send-chat-btn"
style="padding-top: .55rem;">
Send
</button>
</div>
</div>
</div>
</div>
</div>

</div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.ts",
"scripts": {
"build": "webpack --config webpack.config.js --watch",
"start": "tsx watch gameserver/index.ts",
"start": "tsx gameserver/index",
"dev": "webpack --config webpack.config.js --watch && tsx watch gameserver/index.ts",
"deploy": "npx webpack --config webpack.config.js && tsx gameserver/index",
"test": "ts-jest",
Expand Down

0 comments on commit 291d59e

Please sign in to comment.