Closed Thread Icon

Topic awaiting preservation: July 20lines Javascript Contest - Terrain (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22404" title="Pages that link to Topic awaiting preservation: July 20lines Javascript Contest - Terrain (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: July 20lines Javascript Contest - Terrain <span class="small">(Page 1 of 1)</span>\

 
Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-02-2004 13:51

Well, I made my destination safely and have some free time, so lets start the July contest!
For this month, terrain is the topic.

From voxel heightmapping to fractal landscapes to Lemmings to Worms, anything you would like to do with terrain is free game. (Creativity is a huge plus as far as my judging goes!)

20line counting rules, quoted from P01:

quote:
As usual, the main rule is to make your script in 20 lines of (effective) code.
Comas shouldn't be used to execute several instructions on the same line
See the code sample below to illustrate the basic rules :

code:
--------------------------------------------------------------------------------
<script type="text/javascript">

document.body.onclick = function()
{
/* 01 */ val = prompt( 'enter a number' );
/* 02 */ for( i=0; i<10; i++ )
{
/* 03 */ alert( stupidFunction( val, i ) )
}
}

function stupidFunction( a, b )
{
/* 04 */ return a>b?a:b; // I said it was a stupid function
}

</script>
--------------------------------------------------------------------------------

The document.body.onclick = function() does not count as a line as it's not some effective code and the function call could be put in the BODY tag ( or anyother HTML tag ).
The declaration of the stupidFunction() does not count either for the same reasons.
The coma in the line /* 03 */ is ok, since it simply separates the parameters of a function.



As usual, there is a thread for comments here:
http://www.ozoneasylum.com/22403

Have fun!

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-02-2004 15:29

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

BillyRayPreachersSon
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jul 2004

posted posted 07-02-2004 16:26

Hi,

I'm just wondering if these contests are open to anyone? I've just stumbled across this forum, and think I'm going to like it here ;o)

Thanks!
Dan

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-02-2004 16:46

BillyRayPreachersSon: Welcome on board.
Yep, that friendly contest is open to all inmates.

BillyRayPreachersSon + InI: Could you please, leave your comments about the contest in July 20lines Javascript Contest - Terrain - Comments, for clarity reasons. Thanks in advance

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-02-2004 23:59

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-03-2004 01:00

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-04-2004 18:19

http://www.rpi.edu/~laporj2/media/code/landscape.html

3D Rotating Landscape. Generating the landscape takes a little while, so be patient with it.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-08-2004 23:45

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-10-2004 00:46

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

smonkey
Paranoid (IV) Inmate

From: Northumberland, England
Insane since: Apr 2003

posted posted 07-10-2004 18:48

Ok, you may want to kill me or shout at me here, but doing all this cool stuff has huge pitfalls in terms of speed and processor intensiveness etc. Has anyone ever thought that this contest thing would be cool done using actionscript instead and then the results could be faster and smoother and nice.

I know this is a javascript forum, but if you are going to spend time writing experiements for fun it would be cool if they were distributed through a more suitable medium - I know flash isn't that great, but for this sort of stuff it is better - I guess the best would be C or Java, then maybe Director or something, but in terms of widescale usage, flash seems a better medium for this sort of stuff.

Ok, now I've said it you can just ignore me and we'll all get back to enjoying the coolness of such Javascript doobrees.

SCRWD//MULTIMEDIA PORTAL

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-10-2004 18:57

This dicussion belongs in the comments thread. I would like to direct all comments there.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-19-2004 18:44

*bump* About a week and a half left, if anyone else wants to get in on it.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

MajorFracas
Nervous Wreck (II) Inmate

From:
Insane since: Jul 2003

posted posted 07-28-2004 06:28

Here is my first-ever entry.

Rather crude, but I'm just happy to have it working.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-28-2004 14:38

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-29-2004 01:09

COPTER CRUISE



InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-29-2004 02:13

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 07-31-2004 06:08

Ok, entries closed!

And the winner is.......

*drumroll*

*suspense*

*awkward silence*

*random guy shouting, "GET ON WITH IT!"*

P01! For his, frankly, stunning display of using rendering effectively AND adding interactivity into an extremely fun 14 lines. Extremely impressive!

Runner up going to MajorFracas for his interesting Flash-looking entry. Hope to see you join in with us again!

Special thanks to all other participants (uh, InI and I ). Kudos to InI and p01 for their implementations of scrolling terrain... I tried doing so myself, but my attempts failed miserably. You guys got it working nicely, however, so nice job.

Looking forward to next month's topic, then!

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

(Edited by Iron Wallaby on 07-31-2004 06:09)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-01-2004 23:24

Thank you pals. If I manage to optimize "copter cruise" on Gecko, I'll certainly add some features to make a more interesting game.
As I already said in the July 20lines Javascript Contest - Terrain - Comments, the others entries where pretty cool. I wish wrayal finishes his bouncing ball entry. Anyhow, the new Augut 20lines Javascript Contest - Save the Princess - entries is open.

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 08-02-2004 13:44

Yeah, Im really sorry about that. I just had the most frustrating day of coding ever. You ever get any of those?
It really wasnt much to look at, but I might pick it up again at some point, probably re-write from scratch. Congratulations on winning. Now how to to save a princess....

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

« BackwardsOnwards »

Show Forum Drop Down Menu