Preserved Topic: Augut 20lines Javascript Contest - Save the Princess - comments (Page 1 of 2) |
|
---|---|
Paranoid (IV) Inmate From: France |
posted 08-01-2004 23:15
This month, the goal is to make a game in which we'll have to "Save the Princess". quote: Hope we'll all have fun with this topic. |
Nervous Wreck (II) Inmate From: London |
posted 08-03-2004 14:54
Can we use duct tape, too? |
Nervous Wreck (II) Inmate From: London |
posted 08-03-2004 18:12
I have a question regarding the 20 lines competition... code: if (expression) execFunction();
|
Paranoid (IV) Inmate From: France |
posted 08-03-2004 18:56 |
Nervous Wreck (II) Inmate From: London |
posted 08-04-2004 16:48
Just one more question... Although I think I already know what the answer will be, but just thought I'd check anyway code: obj.property1 = foo;
code: obj = {property1:foo, property2:bar }
|
Paranoid (IV) Inmate From: USA |
posted 08-04-2004 16:51
I would say so; it's an assignment, and a single assignment is a single line. |
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 08-04-2004 18:20
Unfortunately, according to most interpretations of the rules, the "," is not allowed to be used to allow more than one assignment on one line. |
Nervous Wreck (II) Inmate From: London |
posted 08-04-2004 19:36
Originally I had the Princess in the top-left corner, but it was far too easy |
Paranoid (IV) Inmate From: France |
posted 08-08-2004 23:00 |
Paranoid (IV) Inmate From: France |
posted 08-11-2004 02:24
*bump* |
Obsessive-Compulsive (I) Inmate From: UK |
posted 08-14-2004 17:55
Sorry to throw a spanner in the works so soon after arriving, but I've made a start on my entry and realised that allowing the object notation above (or even just literal arrays, for that matter) opens up the way to some quite blatant cheating: code: var dummy = {foo1: myDiv = document.createElement('div'), foo2: myOtherDiv.appendChild(myDiv), foo3: ...}
|
Paranoid (IV) Inmate From: USA |
posted 08-14-2004 19:01
Simple solution: don't cheat. |
Obsessive-Compulsive (I) Inmate From: UK |
posted 08-15-2004 01:52
quote:
|
Nervous Wreck (II) Inmate From: London |
posted 08-15-2004 13:30
Nice - I've not seen that 3D perspective used since my 8-bit Atari days... So a quick nostalgia trip for me |
Obsessive-Compulsive (I) Inmate From: UK |
posted 08-15-2004 16:55
It's mainly just that I like to do things according to W3C standards, of which PNG is one, even if it means waiting for A Certain Popular Browser to catch up in its support. To me, continuing to use GIF to accommodate IE is a bit like insisting that all your DHTML stuff must work in Netscape 4. |
Neurotic (0) Inmate Newly admitted From: |
posted 08-16-2004 13:40
I like solutions that work in whatever browser (for whatever logical reason) I am forced to use. I hear your comments about PNG use - but to then go ahead and submit an entry which doesn't work in "the most used browser in the world" just because your version of GIMP doesn't support it... well... I call that laughably short-sighted and petty. |
Paranoid (IV) Inmate From: France |
posted 08-16-2004 14:17
Jeffy: I really doubt that's any kind of elitism. Actually many people here feel concerned about web standards and accessibility, but for these little contests we generally focus on the features and consider the standards compliancy as the cherry on the cake. And after all we all have at the very least one version of each major browser available on our OS. It's not a huge pain to paste an URL in another browser or simply right-click and click on "OPEN IN XYZ BROWSER". |
Neurotic (0) Inmate Newly admitted From: |
posted 08-16-2004 16:19
Poi... quote:
|
Paranoid (IV) Inmate From: France |
posted 08-16-2004 16:59
Actually many entries in the 20 lines contests are cross browser. But the intenssive CPU usage implied by the previous themes put IE ( and its not easily crawling rendering engine ) in a predominant position. But I'm a FireFox freaks too and always try my best to make my stuffs work in both IE and FireFox. |
Obsessive-Compulsive (I) Inmate From: UK |
posted 08-16-2004 21:23
Since this PNG vs GIF thing isn't something I'm sufficiently bothered about to get into an argument over: |
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 08-19-2004 03:02
Im really sorry to say this, but Im probably not going to be able to enter anything again. Unfortunately, Im being taken on a boat tomorrow. Im going to spend my birthday and the day I get my GCSE results away from my family, and without any form of computer or TV, so I wont really get a chance to program? |
Nervous Wreck (II) Inmate From: London |
posted 08-24-2004 17:05
kastner, |
Obsessive-Compulsive (I) Inmate From: |
posted 08-24-2004 19:06
Sure thing ... to do level 2, you have to use your ghost (hit space bar). |
Obsessive-Compulsive (I) Inmate From: |
posted 08-24-2004 19:35
Ok, just finished http://oos.moxiecode.com/examples/d_star/index.html, and I finished copying the boards, so unless I missed a unit (up to 7 are 100% known good), then ALL the levels are beatable. Its wierd, I think the origional game had like 4 levels, and they are MUCH harder then the rest of them. I think the OOS guy added them. They're still fun tho! |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 08-25-2004 00:48
kastner: love that game! |
Paranoid (IV) Inmate From: France |
posted 08-25-2004 01:30
kastner: Your game is really cool. If you could change a bit the sprites to match the topic, it'd rock. code: /* 01 */ var level = 1; into this code: /* 01 */ var board = [ There's also a trick with Strings variables. To nest the declaration in another statement we need is to "nullify" the value of a string. Since there's all the chances that the string do not represent a numerical value we can't use a parseFloat() to convert the string before multiplying it by zero. But we can use the isNaN() function and then multiply the result by zero |
Obsessive-Compulsive (I) Inmate From: |
posted 08-25-2004 01:45
Woah... thanks for the tips, I did the first on you mentioned, and that gives me 3 lines to try and get some of the other features in (reset will be in there soon) |
Obsessive-Compulsive (I) Inmate From: |
posted 08-25-2004 02:13
Who would have thought graphics would make it more fun!, I shamelessly ripped of some mario sprites, let me know what you think. I think the only usability aspect missing is the smooth motion animation! |
Nervous Wreck (II) Inmate From: London |
posted 08-25-2004 11:39
Kastner - I just get loads of JS errors in IE now. |
Obsessive-Compulsive (I) Inmate From: |
posted 08-25-2004 17:49
Yea, I see that.... |
Paranoid (IV) Inmate From: France |
posted 08-25-2004 18:07
kastner:Yep, we may say what we want, but the graphism have a real impact of the fun factor and thus on the gameplay. As for the problem in IE, have you tried to "nullify" the declaration of the array instead of that of the other variables ? ATM I don't really know, I tried : code: var board = [ (4+0*(level=1)+0*(width=2)+0*(height=3)), 5, 6, 7 ] in FireFox 0.8 and IE 6.0.2800, and in both the ouput was: |
Obsessive-Compulsive (I) Inmate From: |
posted 08-25-2004 18:14
Ok, I figured it out, I shouldn't have asked until after I played around - turns out that the line |
Paranoid (IV) Inmate From: France |
posted 08-25-2004 18:43 |
Obsessive-Compulsive (I) Inmate From: |
posted 08-25-2004 19:32
Woah, 456??? I didn't finish my own verison yet, but the flash one took me 980 or so! |
Obsessive-Compulsive (I) Inmate From: |
posted 08-25-2004 23:38
I started another game, not sure if I want to finish it as its already like 10 lines without any board data / game logic... |
Obsessive-Compulsive (I) Inmate From: |
posted 08-26-2004 01:39
and a much "heavier" version (about 26 lines by now), space or "up" is the other control |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 08-26-2004 02:05
current level: 10 - 871 moves |
Obsessive-Compulsive (I) Inmate From: |
posted 08-26-2004 03:21
Good Job, Hugh |
Obsessive-Compulsive (I) Inmate From: |
posted 08-26-2004 06:38
I think I'm gonna move this discussion, b/c this is nowhere NEAR 20 lines |
Nervous Wreck (II) Inmate From: London |
posted 08-29-2004 20:27
kastner, |
[1] 2 — Next Page »