Jump to bottom

Closed Thread Icon

Preserved Topic: Augut 20lines Javascript Contest - Save the Princess - comments (Page 2 of 2) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22762" title="Pages that link to Preserved Topic: Augut 20lines Javascript Contest - Save the Princess - comments (Page 2 of 2)" rel="nofollow" >Preserved Topic: Augut 20lines Javascript Contest - Save the Princess - comments <span class="small">(Page 2 of 2)</span>\

 
kastner
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 08-29-2004 21:27

Hum... thats VERY interesting... my friend at work had a REALLY tough time playing my newer game - and he has sp2 - maybe I should check out that SP2 thread in this forum. - I really don't think I changed the game much (just graphics iirc)

EDIT: just checked it here - this is an xp running in vmware, with only 512mb ram to share (382 allocated to xp), i.e. 6
sp 1... and it flies....
also the "SP2" thread, didn't help too much - if anyone has any ideas, I'm all ears

(Edited by kastner on 08-29-2004 21:32)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-29-2004 21:41

BillyRayPreachersSon: It seems the problem comes from either XP or the SP2 as I've no problem with IE 6.0 and Win2K.

kastner: I've improved my score, and just saved the princess in 354 moves.

kastner
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 08-30-2004 02:14

Jeeze, I'm gonna have to try again...
how many moves are you finishing level 1 and 2 in? I'm doing 1 in 13 and 2 in just under 40 I thik

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-30-2004 03:15

I'll try to make an entry tomorow. Obviously other entries are welcome. And it's not forbidden to submit several entries

kastner: I just played again and noted the number of moves displayed at the end of each level :
level 1 -> 9 moves
level 2 -> 50 moves
level 3 -> 70 moves
level 4 -> 99 moves
level 5 -> 145 moves
level 6 -> 192 moves
level 7 -> 220 moves
level 8 -> 246 moves
level 9 -> 274 moves
level 10 -> 318 moves



(Edited by poi on 08-30-2004 03:47)

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 08-30-2004 03:39

I think I am seriously missing out on something, since I just get a Mario on a standard-looking Mario level that continues into infinity... so I can walk forever but nothing interesting happens...

And sorry Poi, no entry this month for me. Been too busy.

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

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-30-2004 04:00

The entries so far are:



Iron Wallaby: too bad you have no time this month. The game your tried is the Mario Bros 2 remake, but the score I anounced are for the D-star game.

kastner
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 08-30-2004 22:20

p01: WOW, thats crazy - I guess you're all about making things smallers - even if its number of moves

Right now my computer is down at home (mine.metaatem.net). I'm going to host it elsewhere, but change dns. so it should be back up tonight

BillyRayPreachersSon
Nervous Wreck (II) Inmate

From: London
Insane since: Jul 2004

posted posted 08-31-2004 13:34

Well - I figured out how to sto it redrawing the screen after each move.

My Internet settings for IE caching were set to check for new content "Every visit to the page". Changing this to "Automatically" fixed this issue.

Strange!

Dan

TwoD
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Aug 2004

posted posted 08-31-2004 18:46

Hi all.

First time I post here but some of you might know me from the javascript-games.org forum as Henrik.
I saw this post a few weeks ago and decided to see what was possible in 20 lines...
My first idea when I learned about this month's theme was of course a SMB clone in just 20 lines.
The problem was that I didn't have the time nor the graphic skills to make it perfect
Kastner came close but he seems to have a problem with collisions.
Since I couldn't do the graphics I was going for the physics instead and managed to (atleast partially)
solve the problem in a sketch version of my entry with some moving squares.

However, things came up and I had to stop coding long before I felt happy about the result

Here's the sketc: www.geocities.com/therulers3000/filer/sketch.htm
It's not 20 lines since it's not finished but I wanted to show Kastner that it can be done quite easily. (This is just one way of doing it btw)
Credit goes to Poi for his superb kayboard handler, would never have thought about that lol.

I did start on a 'final' version but it looks completely different and has a huge object structure with all the game data in it on a single line
and it will take a lot of time to complete.
Neither of the versions were meant as entries to this months competition since I'm not sure the rules would allow execssive use of isNaN() in anonymous functions within multidimensional arrays to put eveything on a single line.

The main problems I have left to solve is actually research related. I've been unable to find/make good sprites so I would need a graphics artist or some really good sprites.
And, I've not been able to work out the details in the SMB 'physics engine', like how fast Mario jumps/falls/runs.
(I even hooked up my NES to the comp to record it and analyze it in slowmotion, but the video quality was too poor.)
If anyone has this info I'd really appreciate if they would share it, maybe then I'll finish the final version of JavScript Super Mario Bros in 20 lines.

(Edited by TwoD on 08-31-2004 18:48)

kastner
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 08-31-2004 19:04

TwoD: WOW, awesome job. I did get some collision detection working, but never got around to implementing it - or optimizing it. I really think it would be super hard to make what I have so far into 20 lines...

here is as far as I got:
http://mine.metaatem.net/20_lines/princess3/

Also - I got all my sprites online - just did a search for "mario sprites" in google, then went to "images"...

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 08-31-2004 19:23

Well done, TwoD. Collision detection of that sort is very tricky to get working.

The only improvements I can think of for your engine are A) proper gravity (so he accellerates as he falls), and B) a parabolic shape to his jumping, so he doesn't seem to simply warp higher really fast, but rather jumps in a parabolic shape.

I do have to say, though, very nice work.

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

TwoD
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2004

posted posted 08-31-2004 19:54

Thank you

The other version has better gravity but it's hard to make it match the original game...
I don't know how to do parabolic jumping (I'm pretty bad at english maths but I assume parabolic has something to do with a curve) and I'm not sure that's what Nintendo used.
Mario knows some pretty hard moves...

Kastner, nothing seems to happen after the level loads. I have IE6 on winXP (not SP2).
The sprites i found online were incomplete and of poor quality
If I only could rip them from the actual game cartridge lol

I think almost any game could be compressed to 20 lines if you use the same tricks with huge objects I used for the other version of my clone.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-31-2004 20:31

TwoD: Welcome in the Asylum. Glad to see you here. Btw, do you have any news from Scott Porter ? That's really sad that javascript-games.org disappeared.

Your SMB clone is well done. Afaik, the jumps in the 2 first opus(es?) of the Mario Bros serie have no physic. The player goes up at a constant speed, till a certain relative position, as long as the button is pressed, then falls down at the same constant speed.

Regarding the collision detection, in february 2003 I wrote a script handling the collision of squares of arbitrary size ( shame on me, it's IE only and have some preloading problems ). It should be fairly easy to make a platform game with it.

Now, I have to move my *ass* and code/design an entry in 3.5 hours
And again, any new entries are welcome.

kastner
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 08-31-2004 20:32

Yea, I had to clean up the sprites I used... feel free to steal mine
http://mine.metaatem.net/20_lines/princess2/sprites.gif
or
http://mine.metaatem.net/20_lines/princess2/sprites.zip

I didn't test my collision on ie - I kind of abondend the whole thing :/

(Edited by kastner on 08-31-2004 22:41)

TwoD
Obsessive-Compulsive (I) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 08-31-2004 20:51

I would if I could kastner, seems to be a problem with the links...

I'm not so sure about that Poi, the lowest jump height in Mario seems to be 1 block (16px) but the height is not increased by 16px all the time and you can 'hang' for a while near the maximum jumnp height (4 blocks/64px). However, this height is increased slightly when running which means you can for example crush the ceiling on level 1-2 when running on the coinboxes but not when standing still...
Then again, it's a bit hard to determine the exact height since Mario is standing 1px below the floor and doesn't hit a box above him until his whole
hand is on it. (Been playing a lot of NES 8bit and GameBoy Color lately lol)

Thanks for the link, I think I've seen that script before on javascript-games.org so I know what it looks like but I couldn't get it running now...
I'm sorry to say that there's been no news from Scott...
I spoke to Brent Silby a while ago and he said Scott probably got tired of it. Brent was planning on buying the domain name, and he even placed a bid on it I think, to resurrect the site.
Brent is on www.def-logic.com btw.

/TwoD

kastner
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 08-31-2004 22:42

Very sorry TwoD, I edited the first post, here they are again:
http://mine.metaatem.net/20_lines/princess2/sprites.gif
http://mine.metaatem.net/20_lines/princess2/sprites.zip

I'm *really* looking forward to both of your entries, and next months theme!

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 09-01-2004 01:58

*rolling drums* Augut 20lines Javascript Contest - Save the Princess - Winner(s)

« Previous Page1 [2]

« BackwardsOnwards »

Show Forum Drop Down Menu