Closed Thread Icon

Topic awaiting preservation: November 20lines Javascript Contest - Arcade Scrollers - Entries Pages that link to <a href="https://ozoneasylum.com/backlink?for=23943" title="Pages that link to Topic awaiting preservation: November 20lines Javascript Contest - Arcade Scrollers - Entries" rel="nofollow" >Topic awaiting preservation: November 20lines Javascript Contest - Arcade Scrollers - Entries\

 
Author Thread
TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 11-06-2004 12:02

This month's theme is: Arcade Scrolling Games.

Everybody has atleast once played the old classic arcade games where you take on the role as a
space captain commanding your ship through a two-dimensional scrolling universe.
Time to make your own action filled scroller, but this time in 20 lines.
To make it a bit easier for those w/o graphic skills (like me),
it doesn't have to be a space theme, and you also choose the scrolling direction.

BUT, you can't scroll just horizontally or vertically!

The rest is up you you.

quote:
a code monkey said once:
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:
--------------------------------------------------------------------------------
This month's theme is: Arcade Scrolling Games.

Everybody has atleast once played the old classic arcade games where you take on the role as a
space captain commanding your ship through a two-dimensional scrolling universe.
Time to make your own action filled scroller, but this time in 20 lines.
To make it a bit easier for those w/o graphic skills (like me),
it doesn't have to be a space theme, and you also choose the scrolling direction.

BUT, you can't scroll just horizontally or vertically!

The rest is up you you.

quote:
a code monkey said once:
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.

e]

The comments belong in this thread, the entries in threa3] November 20lines Javascript Contest - Arcade Scrollers - Entrik]

/TwoD--------------------------------------------------------------------------------



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.




The entries belong in this thread, the comments in thread November 20lines Javascript Contest - Arcade Scrollers - Comments

/TwoD

(Edited by TwoD on 11-06-2004 12:08)

(Edited by TwoD on 11-06-2004 15:09)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-08-2004 06:40

Ok, I've decided to move my ass this time.
I've begun a minimalist remake of Shadow of the Beast. To *bump* this contest here comes the preliminary result. I'll update it until the end of november. Hope you'll like it.

Shadow of the Beast




(Edited by poi on 11-08-2004 07:53)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-17-2004 21:07

*bump*

keyboard control added.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-20-2004 22: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.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-21-2004 00:18

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 11-21-2004 00:41

Doesn't fully work in Mozilla.

Make z-Index an integer value (Math.floor()), and I think that will fix 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 11-21-2004 00:49

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 11-21-2004 01:05

in November 20lines Javascript Contest - Arcade Scrollers - Comments guys

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-22-2004 09:26

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.

Blaise
Bipolar (III) Inmate

From: London
Insane since: Jun 2003

posted posted 11-22-2004 12:29

Oops! comment taken to comments thread!

(Edited by Blaise on 11-22-2004 12:31)

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-30-2004 23:49

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.

TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 12-01-2004 22:55

Well, since me and InI had to give up and there were no other entries (wow, this was harder than I thought lol)...

The winner is Poi with Shadow of the Beast!

Well, atleast I learned something from trying to code my entry and I bet InI and Poi did too, and that's a big part of the contest

Congrats to the winner and those who atleast tried!

/TwoD

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 12-02-2004 14:15

Thank you. I'm sad there was so few entries. InI's idea was quite interresting, and yours may have been entertaining too.
Anyway, I hope more inmate will rumble in the December 20lines Javascript Contest - Colors - Entries

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 12-02-2004 16:21

congrats, poi!

only thing i was wondering is why the camera goes down when you jump up?

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 12-02-2004 16:52

Thanks.
Hum, well the camera goes down when you jump for several reasons :

  1. to match the rule set by TwoD saying that the entry must scroll in both directions
  2. to follow the movement of the beast
  3. because it looks cool with the parallax
  4. it was easier to redraw some parts of the stone wall and fence than the clouds



« BackwardsOnwards »

Show Forum Drop Down Menu