Skip to content

Commit

Permalink
Tekken dropped for now, renamed it to chalkBoard.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhardwaj-Himanshu committed May 10, 2024
1 parent 8531582 commit 929cbd3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
19 changes: 9 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ <h2>Space Invaders</h2>
</a>
</div>
</div>
<div class="grid JS">
<h2>ChalkBoard</h2>

<img class="space-image" src="./static/jsTekken_favicon.svg" />
<div class="buttons">
<a href="./jsTekken/jsTekken.html" target="_blank">
<button style="font-family: JetBrains Mono">ChalkBoard</button>
</a>
</div>
</div>
<div class="grid React">
<h2>Travel Landing Page</h2>
<img class="travel-landing-image" src="./static/travel_favicon.svg" />
Expand Down Expand Up @@ -108,16 +117,6 @@ <h2>Currency Convertor</h2>
</div>
<span class="Incomplete-heading"> * Broken or Needs Servicing </span>
<div class="Incomplete">
<div class="grid JS">
<h2>Tekken</h2>

<img class="space-image" src="./static/jsTekken_favicon.svg" />
<div class="buttons">
<a href="./jsTekken/jsTekken.html" target="_blank">
<button style="font-family: JetBrains Mono">Tekken</button>
</a>
</div>
</div>
<div class="grid JS">
<h2>Chess</h2>
<img class="chess-image" src="./static/jsChess_favicon.svg" />
Expand Down
2 changes: 1 addition & 1 deletion jsTekken/jsTekken.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"
rel="stylesheet"
/>
<title>JS Tekken</title>
<title>JS ChalkBoard</title>
</head>
<body>
<canvas id="canvas"></canvas>
Expand Down
11 changes: 9 additions & 2 deletions jsTekken/jsTekken.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ const context = canvas.getContext('2d');

context.font = '10px MonoSpace';
context.fillStyle = 'white';
context.fillText('Delete this text, via moving players', 50, 50);

const heading = context.fillText(
'Delete this text, via moving players',
50,
50
);
const enteredText = prompt('Enter something here?');
const messageToBeDeleted = context.fillText(`${enteredText}`, 50, 70);
// ----------------------------------------------------------------------------------

// -----------------------------SCREEN ON LOAD FUNCTIONS ----------------------------
Expand Down Expand Up @@ -240,3 +245,5 @@ const enemy = new Sprite({
y: 0,
},
});

console.log('Only F12 pressers, know this is supposed to be Fighting Game.');
2 changes: 1 addition & 1 deletion static/jsTekken_favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 929cbd3

Please sign in to comment.