Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 7

Author Topic: Winner's small games thread  (Read 7217 times)

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: sand dunes *updated*
« Reply #30 on: January 15, 2010, 03:38:47 am »

Spoiler (click to show/hide)

Is that what you were asking for?
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

winner

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #31 on: January 15, 2010, 10:00:05 am »

Spoiler (click to show/hide)

Is that what you were asking for?

Yes thank you, and it works for me...
For that small program, pressing 'q' exited the program, while for the larger one it does nothing?
Logged
The great game of Warlocks!

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: sand dunes *updated*
« Reply #32 on: January 15, 2010, 01:05:11 pm »

Orange, are you *sure* it's not working?  I stared at it for a while and thought WASD wasn't working.  The movement scrolls the screen (it wraps), not the player, so with all the chaos it's hard to tell when you are moving.  Trying placing a wall (it will be underneath you, so don't hit the button more than once), then moving.  Also, T and R should have a noticeable effect.

winner, apart from color, the thing I would like to see most is the ability to slow down the wind instead of just making the application run slower.

It would probably take an entirely different model, but modeling wind-based erosion of rock faces would be fun to watch.  I wish I knew fluid dynamics.
Logged
EMPATHY - being able to feel other peoples' stuff.

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: sand dunes *updated*
« Reply #33 on: January 15, 2010, 02:35:54 pm »

It doesn't even move though.
The initial frame is all I ever see.

Also, I'll add color if you'd like that.
I just wish it would work for me.
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

winner

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #34 on: January 15, 2010, 03:14:21 pm »

ok now r and R control the wind speed.

To make wind erosion interesting I would have to make a wind direction for each square instead of the whole map.  Sounds fun.

Color would be awesome, I tried the ansi color codes but they didn't work with this method. So there is something wrong with the display code? Can I see a screenshot of the latest version (not) running?
« Last Edit: January 15, 2010, 03:15:53 pm by winner »
Logged
The great game of Warlocks!

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: sand dunes *updated*
« Reply #35 on: January 15, 2010, 04:02:57 pm »

Sure:
Spoiler (click to show/hide)

Also, curses has its own color handling thing.
I can send you an example.
Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

winner

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #36 on: January 15, 2010, 05:46:57 pm »

hmm so wind() isn't running.  Print() is running just fine I think. Here is a simpler version, could you try running it to see if the problem remains? (a screen shot of this one would help).
thank you very much for your help, I would love an example of how to do color.
Spoiler (click to show/hide)
« Last Edit: January 15, 2010, 09:54:55 pm by winner »
Logged
The great game of Warlocks!

Hippoman

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #37 on: January 15, 2010, 06:28:50 pm »

Am I supposed to see this?
Spoiler (click to show/hide)
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: sand dunes *updated*
« Reply #38 on: January 15, 2010, 06:54:00 pm »

Curses.h! You made me download it!
Logged
Eh?
Eh!

winner

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #39 on: January 15, 2010, 06:56:21 pm »

Am I supposed to see this?
Spoiler (click to show/hide)
Yes, that means that program works (I should probably add a line to take care of the periods accumulating).
I don't know what is making the main program not work for you.
« Last Edit: January 15, 2010, 07:40:40 pm by winner »
Logged
The great game of Warlocks!

Hippoman

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #40 on: January 15, 2010, 07:49:36 pm »

I made a very simple sand dune simulator that runs from the terminal it's very fun to watch.  Because of an artifact of the code the dunes do not like to get above a height of 9.  Also dunes move upwind.

basically my code goes like this.
h= your height.  The chance of one unit of sand being blown away from you is 1/h
If you get to a height of 9 or greater, one unit of your sand is added to every square touching you.

'?' to show controls
SPACE to dismiss
Spoiler (click to show/hide)

srand48 was never declared. That code doesn't compile.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

winner

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #41 on: January 15, 2010, 08:18:03 pm »

<cstdlib> is the library that contains rand() and srand( )
<stdlib.h> is a synonym.

if you have those libraries then it should compile.  I don't have enough knowledge to fix most problems
« Last Edit: January 15, 2010, 08:31:09 pm by winner »
Logged
The great game of Warlocks!

Hippoman

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #42 on: January 15, 2010, 09:04:14 pm »

I doesn't.
Why don't you upload your entire code?
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

winner

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #43 on: January 15, 2010, 09:15:38 pm »

Stdlib is a standard library in fact it's name stands for "standard library".  When you remove the "48" from srand48, does it still cause problems?
Logged
The great game of Warlocks!

Hippoman

  • Bay Watcher
    • View Profile
Re: sand dunes *updated*
« Reply #44 on: January 15, 2010, 09:45:25 pm »

Yes it's same as before:
Spoiler (click to show/hide)
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads
Pages: 1 2 [3] 4 5 ... 7