Skip to content

Instantly share code, notes, and snippets.

View jittarao's full-sized avatar

Raghavender Rao Jitta jittarao

View GitHub Profile
@CoolS2
CoolS2 / top_links.md
Last active September 13, 2024 07:23
Tops
@eonist
eonist / My_favorite_ai_coding_prompts.md
Last active September 14, 2024 22:52
My_favorite_ai_coding_prompts.md

The art of prompt coding 🦾

Visitors GitHub Gist stars

Apps used: Cursor.so / github copilot chat / Amazon Q / codeium

img

⚠️️ Before you disregard the idea of prompt coding ⚠️️ Don't! Because everyone will be prompt-coding soon enough.

@HipHopHuman
HipHopHuman / incremental-game-loop.md
Last active September 19, 2024 10:04
How to make a game loop for your idle game

How do I make a game loop for my Idle Game?

Interval-Based Resource Generators

So, you want to build an idle/incremental game in JavaScript and you’ve read on the internet that setInterval is the way to go when it comes to handling resources that automatically generate over time.

You get started, you write down your setInterval function, you set it to trigger once every 1000 milliseconds, and every time it triggers, you add 1 to the player’s total resource count. Perfect. It works.

Uh-oh.