[
{
"search": "// Game code goes here",
"replace": "// Game code goes here\n\n// Variables\nlet playerX = 0;\nlet playerY = 0;\nlet isJumping = false;\nlet jumpCount = 0;\nlet crackSize = 0;\nlet cameraOffsetX = 0;\nlet cameraOffsetY = 0;\n\n// Keyboard event listener\n\n// Mouse event listener\n\n// Game loop function\n\n// Move player function\n\n// Jump function\n\n// Start the game loop\n"
},
{
"search": "// Keyboard event listener",
"replace": "// Keyboard event listener\ndocument.addEventListener(\"keydown\", function(event) {\n if (event.key === \"ArrowUp\") {\n movePlayer(\"up\");\n } else if (event.key === \"ArrowDown\") {\n movePlayer(\"down\");\n } else if (event.key === \"ArrowLeft\") {\n movePlayer(\"left\");\n } else if (event.key === \"ArrowRight\") {\n movePlayer(\"right\");\n } else if (event.key === \" \") {\n jump();\n }\n});"
},
{
"search": "// Mouse event listener",
"replace": "// Mouse event listener\ndocument.addEventListener(\"mousemove\", function(event) {\n cameraOffsetX = event.clientX;\n cameraOffsetY = event.clientY;\n});"
},
{
"search": "// Game loop function",
"replace": "// Game loop function\nfunction gameLoop() {\n if (isJumping) {\n if (jumpCount === 1) {\n // Perform super jump\n jumpCount = 2;\n playerElement.style.transform = `translate(${playerX}px, ${playerY}px) scale(1.5)`;\n console.log(\"Super Jump!\");\n } else if (jumpCount === 2) {\n // Perform skydive\n playerElement.style.transform = `translate(${playerX}px, ${playerY}px) scale(0.5)`;\n console.log(\"Skydiving!\");\n }\n }\n\n if (playerY > 0) {\n // Fall and create crack\n crackSize += playerY;\n console.log(\"Crack Size: \" + crackSize);\n crackElement.style.transform = `translate(-50%, -50%) scaleY(${crackSize / 100})`;\n }\n\n // Apply camera follow\n const playerElement = document.getElementById(\"player\");\n playerElement.style.transform = `translate(${playerX}px, ${playerY}px)`;\n\n const cameraElement = document.getElementById(\"camera\");\n cameraElement.style.transform = `translate(${playerX - cameraOffsetX}px, ${playerY - cameraOffsetY}px)`;\n\n requestAnimationFrame(gameLoop);\n}"
},
{
"search": "// Move player function",
"replace": "// Move player function\nfunction movePlayer(direction) {\n if (direction === \"up\") {\n playerY -= 10;\n } else if (direction === \"down\") {\n playerY += 10;\n } else if (direction === \"left\") {\n playerX -= 10;\n } else if (direction === \"right\") {\n playerX += 10;\n }\n}"
},
{
"search": "// Jump function",
"replace": "// Jump function\nfunction jump() {\n isJumping = true;\n jumpCount = 1;\n}"
},
{
"search": "// Start the game loop",
"replace": "// Start the game loop\nconst playerElement = document.getElementById(\"player\");\nconst crackElement = document.getElementById(\"crack\");\ngameLoop();"
}
]
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.