<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fighters Club Roguelike Game</title>
<meta name="description" content="A stylish 2D roguelike fighter club game. Run, fight, level up, and choose your upgrades!">
<meta name="keywords" content="game, roguelike, fighter, club, 2D, battle, ancient, weapons">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
body, html {
height: 100%;
margin: 0;
font-family: 'Press Start 2P', cursive;
background: #1e1e1e;
color: #fff;
user-select: none;
}
canvas {
display: block;
background-color: #111;
margin: auto;
image-rendering: pixelated;
}
#game-info {
text-align: center;
margin-top: 10px;
}
</style>
<link rel="canonical" href="https://calculator.tools/app/fighters-club-roguelike-game-762/">
<meta charset="utf-8">
</head>
<body>
<canvas id="gameCanvas" width="800" height="600"></canvas>
<div id="game-info">
<p>Health: <span id="playerHealth">100</span></p>
<p>Score: <span id="playerScore">0</span></p>
<button id="restart">Restart Game</button>
</div>
<script>
(function() {
const canvas = document.getElementById('gameCanvas');
const ctx = canvas.getContext('2d');
const tileSize = 32;
const player = {
x: 5,
y: 5,
health: 100,
score: 0,
attack: 10,
sprite: '😃'
};
const monsters = [];
const monsterTypes = ['😈', '👹', '👺', '🐉'];
const weaponTypes = ['🗡️', '⚔️', '🔪', '🛡️'];
const gameSize = { width: canvas.width / tileSize, height: canvas.height / tileSize };
let gameActive = true;
// Draw the player
function drawPlayer() {
ctx.font = tileSize + 'px Arial';
ctx.fillText(player.sprite, player.x * tileSize, (player.y + 1) * tileSize);
}
// Draw monsters
function drawMonsters() {
for (const monster of monsters) {
ctx.fillText(monster.sprite, monster.x * tileSize, (monster.y + 1) * tileSize);
}
}
// Game loop
function gameLoop() {
if (!gameActive) return;
ctx.clearRect(0, 0, canvas.width, canvas.height);
drawPlayer();
drawMonsters();
requestAnimationFrame(gameLoop);
}
// Initialize game
function initGame() {
player.x = Math.floor(gameSize.width / 2);
player.y = Math.floor(gameSize.height / 2);
player.health = 100;
player.score = 0;
updateGameInfo();
monsters.splice(0, monsters.length); // Clear monsters array
spawnMonsters();
gameActive = true;
requestAnimationFrame(gameLoop);
}
// Update game info
function updateGameInfo() {
document.getElementById('playerHealth').textContent = player.health;
document.getElementById('playerScore').textContent = player.score;
}
// Spawn monsters
function spawnMonsters() {
for (let i = 0; i < 5; i++) {
monsters.push({
x: Math.floor(Math.random() * gameSize.width),
y: Math.floor(Math.random() * gameSize.height),
health: 50,
sprite: monsterTypes[Math.floor(Math.random() * monsterTypes.length)]
});
}
}
// Handle player movement
document.addEventListener('keydown', function(event) {
if (!gameActive) return;
switch (event.key) {
case 'ArrowUp': player.y = Math.max(0, player.y - 1); break;
case 'ArrowDown': player.y = Math.min(gameSize.height - 1, player.y + 1); break;
case 'ArrowLeft': player.x = Math.max(0, player.x - 1); break;
case 'ArrowRight': player.x = Math.min(gameSize.width - 1, player.x + 1); break;
}
});
// Restart button
document.getElementById('restart').addEventListener('click', initGame);
// Start the game
initGame();
})();
</script>
<script type="text/javascript"> var localStoragePrefix = "ct-762"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>
These are apps made by the community!
Calculator Tools allows you to instantly create and generate any simple one page web app for
free and immediately have it online to use and share. This means anything! Mini apps,
calculators, trackers, tools, games, puzzles, screensavers... anything you can think of that the
AI can handle.
The AI uses Javacript, HTML, and CSS programming to code your app up in moments. This currently
uses GPT-4 the latest and most powerful version of the OpenAI GPT language model.
Have you ever just wanted a simple app but didn't want to learn programming or pay someone to
make it for you? Calculator Tools is the solution! Just type in your prompt and the AI will
generate a simple app for you in seconds. You can then customize it to your liking and share it
with your friends.
AI has become so powerful it is that simple these days.
It uses GPT-4 which is the most powerful model for ChatGPT.
Calculator Tools does not remember things from prompt to prompt, each image is a unique image
that does not reference any of the images or prompts previously supplied.