Author Topic: Powder Game  (Read 47030 times)

0 Members and 3 Guests are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Powder Game
« Reply #135 on: January 25, 2011, 06:10:24 pm »
Cool! And also, I would think an nspire port is deserving as well....:P

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Powder Game
« Reply #136 on: January 25, 2011, 06:21:12 pm »
...the greyscale looks really cool...

That's monochrome :p

Thanks though.
« Last Edit: January 25, 2011, 06:21:31 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Powder Game
« Reply #137 on: January 28, 2011, 09:39:11 pm »
Looks nice :D I'm glad you work on this again :D

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Powder Game
« Reply #138 on: January 28, 2011, 10:24:28 pm »
Builderboy should write a tutorial on physics for calc games.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Powder Game
« Reply #139 on: January 30, 2011, 08:18:40 pm »
I thought he did already? ???

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Powder Game
« Reply #140 on: January 30, 2011, 09:17:41 pm »
I thought he did already? ???
He might have, and I just missed it.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Powder Game
« Reply #141 on: January 31, 2011, 01:22:56 am »
I kinda did, but the physics for this sand wouldn't be covered in it, as it is just pseudo-physics, a simple algorithm that really has no basis in real fluid dynamics :P

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Powder Game
« Reply #142 on: January 31, 2011, 06:15:22 pm »
I kinda did, but the physics for this sand wouldn't be covered in it, as it is just pseudo-physics, a simple algorithm that really has no basis in real fluid dynamics :P
Do you have a link to your physics tutorial? Would you be willing to write one for fluid dynamics?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Powder Game
« Reply #143 on: January 31, 2011, 06:45:19 pm »
I kinda did, but the physics for this sand wouldn't be covered in it, as it is just pseudo-physics, a simple algorithm that really has no basis in real fluid dynamics :P

I hate to correct you on this, but it has a lot more to do with actual fluid dynamics than you think. Of course, the random direction isn't exactly realistic, but the cellular automata model is a very suitable choice.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Powder Game
« Reply #144 on: January 31, 2011, 08:08:46 pm »
Here is the link: Note its not completely finished :P I really should start writing some more lessons

http://ourl.ca/4279/79303

As for the fluid dynamics, of course it isn't completely far away from realistic physics, it isn't exactly very realistic either.  Pressure is ignored completely, as is illustrated in the diagram below.  In real world physics, the water line would be even, but the physics I implemented would leave the water at levels similar to the diagram.  Then again, while it may not be realistic when it comes into the actual equations and things like viscosity and pressure, it does present a very nice and quick method for on calc simulation :) There might even be some other sets of rules that are equally simple and result in better fluid movement.

On the subject of physics, I just had an idea for physics for sand in your game.  Here would be the rules, with lower rule numbers being higher priority:
1) If block below is empty, move down
2) If block below is fluid, swap fluid and this block
3) If block to the right/left and down is empty, move to that position

Maybe instead of a fluid dynamics, I could write about the power of pixel based physics for simulating large physical elements :D
« Last Edit: January 31, 2011, 08:13:29 pm by Builderboy »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Powder Game
« Reply #145 on: February 01, 2011, 11:16:21 pm »
It would be cool if new tutorials were added into that one. :D

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Powder Game
« Reply #146 on: February 02, 2011, 12:59:41 am »
Some just were :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Powder Game
« Reply #147 on: February 02, 2011, 06:24:51 pm »
Really? I didn't see new ones today. ???

http://ourl.ca/4279 (No last edit date)
« Last Edit: February 02, 2011, 06:25:06 pm by DJ Omnimaga »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Powder Game
« Reply #148 on: February 16, 2011, 10:01:13 pm »
Lost the entire physics engine to some sort of data corruption. It was in need of a complete overhaul anyway.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: Powder Game
« Reply #149 on: February 16, 2011, 10:01:37 pm »
You posted the source code, you know...