跳过导航
Make a game in C. No engine needed.
0:00 / 0:58

Make a game in C. No engine needed.

Prabhjot Singh Lamba

@PrabhjotSL1711 位关注者

在 X 上查看
2,051 个赞下载原帖

293,261 次观看

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

51 条评论

评论来自 X (Twitter) 上的原帖

  • NFTmachine 🤖 的头像

    @boobs_scary

    that's not a game.

    33 个赞

  • 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 个赞

  • Daniel Moore 的头像

    @dizlexic

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

    30 个赞

  • 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 个赞

  • Torvid 的头像

    @Torvid21

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

    16 个赞

  • Prabhjot Singh Lamba 的头像

    @PrabhjotSL

    Nice! Looks like cotton candy.

    3 个赞

  • 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 个赞

  • Sos "Buy Lazy Kickers" Sosowski 的头像

    @Sosowski

    You could easily 100x those numbers

    11 个赞

  • Prabhjot Singh Lamba 的头像

    @PrabhjotSL

    Will increase and see what happens.

    5 个赞

  • 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 个赞

  • 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 个赞

  • Sos "Buy Lazy Kickers" Sosowski 的头像

    @Sosowski

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

    1 个赞

  • 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 个赞

  • robot 2.0 的头像

    @alightinastorm

    bro did you just farm me 😭😭😭

    3 个赞

  • 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 个赞

  • Three.js 的头像

    @threejs

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

    2 个赞

  • Prabhjot Singh Lamba 的头像

    @PrabhjotSL

    @alightinastorm Skipped a few steps to save time 🙂

    1 个赞

  • Three.js 的头像

    @threejs

    @alightinastorm Where can we play your game? 🙏

  • Prabhjot Singh Lamba 的头像

    @PrabhjotSL

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

    1 个赞

  • Three.js 的头像

    @threejs

    @alightinastorm Live link please.

    1 个赞