Skip navigation
Make a game in C. No engine needed.
0:00 / 0:58

Make a game in C. No engine needed.

Prabhjot Singh Lamba

@PrabhjotSL1.7K followers

Visit on X
2,051 likesDownloadOriginal post

293,261 views

Make a game in C. No engine needed. 100,000 particles at 300+ fps.

51 Comments

Comments from the original post on X (Twitter)

  • NFTmachine 🤖's profile picture

    @boobs_scary

    that's not a game.

    33 likes

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    It is. Particles are people you need to save, green zone is the safe zone before the world auto destructs due to nuclear explosion, you have 60 secs to save atleast 50% of the population.

    75 likes

  • Daniel Moore's profile picture

    @dizlexic

    yeah, that doesn't really look like a game at all. looks like you wrote a physics demo.

    30 likes

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    It has rules, objective, conflict, time pressure, win and loose condition, input and player agency. And is very fun to play and challenging even though it's not a game of the year.

    28 likes

  • Torvid's profile picture

    @Torvid21

    or just offload it to the GPU and do millions of particles at similar frame rates x>

    16 likes

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    Nice! Looks like cotton candy.

    3 likes

  • Torvid's profile picture

    @Torvid21

    surprisingly simple, every update each particle is moved so it's 4 pixels away from the next on in the list. (in like 512 long strands or so)

    2 likes

  • Sos "Buy Lazy Kickers" Sosowski's profile picture

    @Sosowski

    You could easily 100x those numbers

    11 likes

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    Will increase and see what happens.

    5 likes

  • Sos "Buy Lazy Kickers" Sosowski's profile picture

    @Sosowski

    If you don’t do particle-particle interactions you could pump this all the way until you clog the bandwidth.

    2 likes

  • bonzaj/plastic's profile picture

    @bonzajplc

    @PrabhjotSL Particle without interactions and especially collisions when given some radius are super boring. 300k with collisions are doable on cpu

    1 like

  • Sos "Buy Lazy Kickers" Sosowski's profile picture

    @Sosowski

    @PrabhjotSL Id do a density map instead of doing one-on-one interactions tho

    1 like

  • Crayz's profile picture

    @CrayzNotCrazy

    So happy this is catching on. Building from scratch means every decision, quirk, bug, and result is unique to the developer and their creative workflow, games are better this way.

    6 likes

  • robot 2.0's profile picture

    @alightinastorm

    bro did you just farm me 😭😭😭

    3 likes

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    I made this in C to see what can be done with minimal dependencies. You quoted godot vs unity tweet with threejs, I took it one step further, no need for even threejs. I have no interest in farming, don't even have a blue tick account.

    9 likes

  • Three.js's profile picture

    @threejs

    @alightinastorm The logical next step would have been JavaScript though.

    2 likes

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    @alightinastorm Skipped a few steps to save time 🙂

    1 like

  • Three.js's profile picture

    @threejs

    @alightinastorm Where can we play your game? 🙏

  • Prabhjot Singh Lamba's profile picture

    @PrabhjotSL

    @alightinastorm Works on any operating system that a browser runs on 🙇🏻‍♂️

    1 like

  • Three.js's profile picture

    @threejs

    @alightinastorm Live link please.

    1 like