Navigation überspringen
Make a game in C. No engine needed.
0:00 / 0:58

Make a game in C. No engine needed.

Prabhjot Singh Lamba

@PrabhjotSL1711 Follower

Auf X besuchen
2.051 LikesHerunterladenOriginalbeitrag

293.261 Aufrufe

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

51 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von NFTmachine 🤖

    @boobs_scary

    that's not a game.

    33 Likes

  • Profilbild von Prabhjot Singh Lamba

    @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

  • Profilbild von Daniel Moore

    @dizlexic

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

    30 Likes

  • Profilbild von Prabhjot Singh Lamba

    @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

  • Profilbild von Torvid

    @Torvid21

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

    16 Likes

  • Profilbild von Prabhjot Singh Lamba

    @PrabhjotSL

    Nice! Looks like cotton candy.

    3 Likes

  • Profilbild von Torvid

    @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

  • Profilbild von Sos "Buy Lazy Kickers" Sosowski

    @Sosowski

    You could easily 100x those numbers

    11 Likes

  • Profilbild von Prabhjot Singh Lamba

    @PrabhjotSL

    Will increase and see what happens.

    5 Likes

  • Profilbild von Sos "Buy Lazy Kickers" Sosowski

    @Sosowski

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

    2 Likes

  • Profilbild von bonzaj/plastic

    @bonzajplc

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

    1 Like

  • Profilbild von Sos "Buy Lazy Kickers" Sosowski

    @Sosowski

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

    1 Like

  • Profilbild von Crayz

    @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

  • Profilbild von robot 2.0

    @alightinastorm

    bro did you just farm me 😭😭😭

    3 Likes

  • Profilbild von Prabhjot Singh Lamba

    @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

  • Profilbild von Three.js

    @threejs

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

    2 Likes

  • Profilbild von Prabhjot Singh Lamba

    @PrabhjotSL

    @alightinastorm Skipped a few steps to save time 🙂

    1 Like

  • Profilbild von Three.js

    @threejs

    @alightinastorm Where can we play your game? 🙏

  • Profilbild von Prabhjot Singh Lamba

    @PrabhjotSL

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

    1 Like

  • Profilbild von Three.js

    @threejs

    @alightinastorm Live link please.

    1 Like