Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Sand - 10 line

Author
Message
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 18th May 2003 16:11
This is my sand program of - if i count correctly - 10 lines
Any ideas on what to put in remaining 10 lines would be appreciated.
There is a bug in the deletion of blocks where they dont disappear which i am trying to solve.
[left mousebutton] - make block
[right mousebutton] - delete block
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 18th May 2003 16:26
Now it works for DBPro, too.
Nice effect, but not all blocks disappear, when I click with the right mouse button on them.

God is real, unless declared integer.
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 18th May 2003 16:30
Thats the bug i said about in the first one - im not exactly sure why it happens since the block stops blocking the sand but is still visible. Thus sand simply goes through it.
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 18th May 2003 16:49
Fixed the bug of blocks not disappearing
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 18th May 2003 18:17
it's pretty good

Bu$herie
How many civilians is he going to kill ? he's going to burn in hell, and I hope that his pain will make him inderstand !
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 18th May 2003 19:41
thats impressive!!!

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Whisper Wind
21
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 18th May 2003 19:52 Edited at: 18th May 2003 19:55
Wow thats really good. For the next ten lines, maybe you could make the little sand particles bounce a bit? And a restart button too.
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 18th May 2003 22:32 Edited at: 18th May 2003 22:36
Ive added a slight bounce to the sand which is proportional to the amount of time that it has been in freefall. [and without using another line ].


As for a restart button i dont see the need - as soon as the sand hits middle of the bottom of the screen it comes out the top again. If the sand isnt going through very quick, draw a funnel above the very middle of the bottom of the screen. This will make the landing sand get to the middle pixel and thus get back to the top of the screen far faster.
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 18th May 2003 22:35
Prehaps it would be better as source code than a snippet
Whisper Wind
21
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 18th May 2003 23:02
Now that you've got the physics coded, you could try and make it into a game. Maybe you have to get all of the sand into a certain area with a limited amount of blocks or something? And you can still have a free form mode like what you have now. Or, maybe you could make some boxes that rotate around slowly to show off your physics.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 21st May 2003 21:35
maybe you could give the user different tools, for instance a straight line like the girder in worms 2 that could be angled how you wanted to make controlling the sand easier

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Joey Bob
20
Years of Service
User Offline
Joined: 24th May 2003
Location:
Posted: 25th May 2003 08:09
That's really cool, and impressive fo only 10 lines of code
medwayman
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 25th May 2003 17:14
thats cool well done
pugmartin
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: United Kingdom
Posted: 25th May 2003 22:30
Try this one...

http://members.aol.com/pugmartin/pugmartins_sand

...I think you`ll like it...

20,000 pixels now!

Ive compiled it so everyone can try it.

@England 5 Germany 1

Mind if i try n have a play with it?

Good basis for a game here somewhere...

England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 25th May 2003 22:40
Sure try what you want with it
I thought i could make it into a game as oppose to an effect but have had little luck in the way of actually making anything that works.
Any game is often to easy - such as dropping it on a fixed place
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 26th May 2003 01:02
This is an attempt to turn the sand effect into a game
Simply direct the sand into the cart at the bottom of the screen using blocks.
40% is needed to advance to the next level where the cart gets quicker
Should you lose 60% of the sand ,thus failing the level it simply repeats that level of speed.
Sometimes the sand jumps through the blocks which is something im currently trying to fix.
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 26th May 2003 01:18
To PugMartin:
Cant seem to get your version to work
I renamed it to a .exe file extension before running - possibly the problem but it wouldnt run without me doing so.
Upon opening it quits immediately i.e the icon appears and then disappears.

Could just be my computer but i tried it on two and it didnt work on either.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 26th May 2003 12:57
its actually quite a good game, i got to the second level,

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
medwayman
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 27th May 2003 03:06
Cool game
I can’t always create the blocks, but I managed to get to level 2.
This has the potential to be a very cool puzzler
well done
pugmartin
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: United Kingdom
Posted: 27th May 2003 18:58
Well heres the code in raw format if you want to try it.

Dunno if DBC can deal with memblock commands though so thats why i did the compiled version.

Anyway, try this code. I think maybe the reason it didnt work for you was possibly the resolution(?). Just change the screenx,screeny,screend in the code to select a res suitable for your pc. Make sure to select a feasible one though, as if its wrong(wrong dimensions etc) you'll get some odd results. Hope you like it. This is using 15000 bits of sand. Once i convert the whole code to an even faster routine, i reckon i could get 30000 easily.

At the minute, im also working on a pressure based water system too, so they could be interesting together...

Let me know what you think

pugmartin
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: United Kingdom
Posted: 4th Jun 2003 04:38
Anybody seen England 5 Germany 1 about?!

I wanna know if he`s done owt else with this

UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 4th Jun 2003 16:34
great! reminds me of lemmings

Life is a terminal disease.
You never survive it.
pugmartin
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: United Kingdom
Posted: 5th Jun 2003 08:37
Yes mate. Thats the kind of idea ive got.

Gimme a little while n ill show you all what ive got going...

England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 11th Jun 2003 17:29
No thats the only thing i ever got around to doing with it - it was meant to be more of an effect than a game. I look forward to seeing the game your making out of it.
pugmartin
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: United Kingdom
Posted: 14th Jun 2003 02:52
Hello again!

Where you been man?

You`ll have to let me know your real name sometime if i ever do get anything done, wouldnt b right to not include you in the credits.

Been really busy with other things lately so no time im afraid, but ive just been trying little things out for when i get around to it. Definatley got some ideas that`d be fun though. Im thinking a sort of lemmings type puzzle game mixed with the clever ideas from the incredible machine? Good game that.

Keep in touch with enything else you create as `just an effect`, soemtimes they can provide the best coding examples to everyone. And besides, they look pretty...

Tommeh
20
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 15th Jun 2003 16:31
Very good and only 10 lines
xtom
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 15th Jun 2003 17:11
cool effect
Blanka
21
Years of Service
User Offline
Joined: 26th Feb 2003
Location: United Kingdom
Posted: 18th Jun 2003 17:16
thats sooo cool i love it man, i hopes you win this month, this is awsome !

England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 22nd Jun 2003 21:48
- Pugmartin
Ive put my name in my profile if you want to put it in the credits
I might make a few new things now that my exams have finished and i have a bit of free time again
England 5 Germany 1
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: England
Posted: 22nd Jun 2003 21:52
On another note - Does anyone know why some posts are coloured red - and how they get to be that way. This one now has a red folder when i look at it on the forum list.
Mentor
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 23rd Jun 2003 00:28
means a hot topic, you got lotsa feedback in a short time

Mentor.

parisg
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location:
Posted: 23rd Jun 2003 01:49
awesome snip !!

Login to post a reply

Server time is: 2024-04-25 03:20:22
Your offset time is: 2024-04-25 03:20:22