Sand Game

Discussion in 'Computer Games and General Discussion' started by Sausage Head, Apr 24, 2011.

Apr 24, 2011

Sand Game by Sausage Head at 3:33 PM (2,890 Views / 0 Likes) 28 replies

  1. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    I made a "falling sand game" with Java (or actually Processing) in the past 3 days.


    [​IMG]
    It's a screenshot


    I based it on the source code from Pyro Sand. I made some personal changes:
    • Removed the sources (Sand, water, salt, oil)
    • Made the menu smaller (Bigger playfield)
    • Removed the pen-type menu (Size of sources and stuff)
    • Removed some unrealistic elements (Spout, well, plant, eraser is now right-click)
    • Removed the element C4 (I plan to keep only one solid element, "wall")
    • Added lava, acid and propane-gas
    • Added mouse-click related stuff (Left click: size 2 draw, middle click: size 4 draw, right click: size 4 erase)
    • Added screenshot ability (Key "C")
    • Added clear function (Backspace)
    • Probably more, but I forgot

    The reason I'm posting this is because I have no ideas of what elements to add. I've done almost nothing today and yesterday, and my goal was to make a clone of Powder Game without the wind physics and only realistic elements.
    If you want to see a specific element in the game, please tell me. It has to be a realistic element, with programmable physics. No life-forms. (I know, this is stupid to say, but ha55i (Creator of Powder Game) added "bird" in his game as an element. It's useless, and it lags like hell)

    The current version is the first public release, it's a stable, so everything that's implemented as of now will keep that way. You will need the Java Runtime Environment-thing to be able to execute Java Archives (JAR), so make sure you have it before asking why it doesn't work. (It's not like I expect this from people on here, but still, I'll say it anyway)

    Download
    Note that this is my first project with Java/Processing, so it's probably not fully optimized.
    I might release the source code (if anyone is interested) when I stop working on it.
     


  2. Berthenk

    Member Berthenk Epitome of Awesomeness

    Joined:
    May 16, 2008
    Messages:
    1,314
    Country:
    Netherlands
    Wow, this looks cool! Nice work!

    Played around with it for a bit, some feature requests:
    • A way to change cursor brush size
    • A way to differentiate propane from the background
    • Some explanation on buttons in the game/program itself
    Good luck with this game!
     
  3. prowler

    Member prowler Sony

    Joined:
    Jul 14, 2009
    Messages:
    9,473
    Location:
    Ragol
    Country:
    United Kingdom
    oh wow. i actually tried clicking the options on the screenshot.

    the heat is getting to me.
     
  4. OmegaVesko

    Member OmegaVesko GBAtemp Regular

    Joined:
    Mar 28, 2011
    Messages:
    257
    Country:
    Yugoslavia
    It's actually really fun, keep going!
     
  5. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    That could've happened to anybody. "It's a screenshot" doesn't really say it's a screenshot, does it? [​IMG]



    Again, right now I'm stuck. I can't think of any elements to add. If you have any ideas, please tell me.
     
  6. AlanJohn

    Member AlanJohn くたばれ

    Joined:
    Jan 6, 2011
    Messages:
    3,425
    Location:
    Canada,New Jersey
    Country:
    Ukraine
    Very impressive for an 8 year-old boy [​IMG]
     
  7. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    thenks u very much
     
  8. Gameking-4

    Member Gameking-4 Demon of the mist

    Joined:
    Mar 28, 2011
    Messages:
    127
    Location:
    Breda, Netherlands
    Country:
    Netherlands
    -glue
    -gel

    molten iron maybe, if your capable of making it hard when it hits anything...
     
  9. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    Nice ideas, I might be able to implement glue.
    But what would gel do?

    I think molten iron is almost the same as concrete, but with some physics changed. Here's my view on iron:
    If iron (solid element, like wall) gets hit by lava, it turns into molten iron. It sinks to the bottom of the lava, and when it hits wall, iron or water (and maybe other liquids) it turns into iron.
    How does that sound? I think I can implement that easily.
     
  10. Gameking-4

    Member Gameking-4 Demon of the mist

    Joined:
    Mar 28, 2011
    Messages:
    127
    Location:
    Breda, Netherlands
    Country:
    Netherlands
    gel, a thick fluid which makes thing go slow? turns into water when thouched by hot things?

    sound like a good idea! exactly what I had in mind.
     
  11. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    Gel can only slow down things that are touching it -- which means only a small amount of the targeted liquid will be slowed down. It won't be possible to make the liquid "blend" into the gel, so I don't think it will be any useful if it's implemented.

    I'm going to implement the iron and molten iron now. Thanks for the idea.
    Do you have a preference of where it should be located in the menu? Just asking, I organized the menu as it is now based on... well, nothing, really.
     
  12. Wizerzak

    Member Wizerzak Because I'm a potato!

    Joined:
    May 30, 2010
    Messages:
    2,784
    Location:
    United Kingdom
    Country:
    United Kingdom
    Very nice, needs something to make it unique from the others though.

    I've got a few ideas for improvements:
    >Pre-made levels, i.e start with a floor or ceiling etc.
    >Help
    >Block (cannot be destroyed by the elements)

    Also, i found a few bugs (sort of)
    >When you set fire to nitro the explosion covers the interface (maybe deliberate?)
    >When you're holding the mouse button down (placing an element) if you move mouse over the interface it changes element (can get annoying when drawing floors or wildly placing nitro [​IMG] )
     
  13. Joe88

    Member Joe88 [λ]

    Joined:
    Jan 6, 2008
    Messages:
    11,184
    Location:
    NYC
    Country:
    United States
  14. Berthenk

    Member Berthenk Epitome of Awesomeness

    Joined:
    May 16, 2008
    Messages:
    1,314
    Country:
    Netherlands
    I'd prefer it this way: iron turns fluid in fire/lava/explosion(?), and turns solid once it's cooled down (by anything, sand, water/any cold liquid). Maybe make it turn solid over an amount of time?
    How about the number pad for changing the brush size?
    And I guess you're right about propane being invisible.
    Also, a button on the interface that triggers a new window displaying information about the game, its elements and controls?
     
  15. Gameking-4

    Member Gameking-4 Demon of the mist

    Joined:
    Mar 28, 2011
    Messages:
    127
    Location:
    Breda, Netherlands
    Country:
    Netherlands
    this is true, also it goes away when you click on it. so not a major problem

    EDIT: thunder/electricity would be a good element
    maybe a better screenshot [​IMG] where you're doing stuff
     
  16. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    I'll add your idea. That will mean that if iron is hit by fire or lava, it will become molten iron. It will not get solid by hitting other solid elements, but by water and such, or over time.

    A button in-game will probably not happen, for the same reason as why I deleted the old pen-type menu (the yellow menu in Pyro Sand), but a documentation (HTML, with pictures) in seperate files will probably happen.
    Still, I don't see why anyone would need much explanation. Is it because nobody here is familiar with falling sand games/powder game?
     
  17. Berthenk

    Member Berthenk Epitome of Awesomeness

    Joined:
    May 16, 2008
    Messages:
    1,314
    Country:
    Netherlands
    Don't underestimate Sop...
    On a serious note though, indeed, there might be some people out there that aren't familiar with powder games.
    Also, any input on changing the brush size using the number pad?
     
  18. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    Ok, the documentation will come (as a seperate file, once the game has a load of elements)

    Changing the brush size with the numpad is be possible, but where will it display the current brush size?
     
  19. Berthenk

    Member Berthenk Epitome of Awesomeness

    Joined:
    May 16, 2008
    Messages:
    1,314
    Country:
    Netherlands
    Make it display the brush size next to the version number on the program bar thing. Like this:
    Sand Game -- Version 1 Size: x
    I guess that would be the best option to make the interface less cluttered.
     
  20. Sausage Head
    OP

    Banned Sausage Head Lord Sausage LXIX

    Joined:
    Oct 28, 2010
    Messages:
    1,677
    Location:
    alanjohn check ur pm
    Country:
    Netherlands
    Ok, I'll put it in the window title.
    But, if I ever make the game as an applet (in the browser, not displaying a window), it can't be seen.
    I guess it won't matter that much, as it'll lag more in browsers.

    Update: iron physics have been completed.
    I can't really explain the physics, so you'll have to check it when the new version is released (glue will probably be included).

    Update 2: Glue isn't coming in the next update. It's harder than expected.
    I'm looking for new elements.
     

Share This Page