Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - p01

Pages: [1]
1
It's a little quiet here. Let's post something.

Other there at the Ozone Asylum we have some 20 lines contests in JavaScript. It's a really fun exercise. The topic last month was about dynamics. I made some kind of hypnolgow ( always loved hypnoglow :P ) but the most interesting piece I delivered and am polishing now, though still in 20 lines is:


Castle Wolfenstein - an homage to Wolfenstein 3D in 20 lines of JavaScript


Before you ask : it doesn't work in IE. Works great in Opera 9.5 ( sorry don't have 9.2 at home ), and I'm investigating why FF3 chokes on it.

2
Java,JS & Flash / [JS] Scrollers
« on: September 29, 2007 »
Recently CLANKY asked about scroll texts in JavaScript. As this might be interesting for others, I figured this discussion deserves its own thread so the informations are easy to find.

Quote
The basic idea behind scroll texts using web standards relies in CSS.

First you need a container in non static position ( i.e.: in absolute, relative or fixed ) and overflow:hidden so that it will allow to position and clip the nested content. Which content is in position:absolute; Finally initiate the regular update of the position of the content using a setInterval( functionHandle, delay );

The offsetWidth and offsetLeft properties returns the width and left respectively of an element. Use them to place the content as you wish within its container.

Check out the attachement to see a Scrollers manager ( working in IE, Opera, FireFox and Safari ) able to handle any number of scroll texts with custom types of scroll. Notice it's one out of many ways to do that, also the code can be enhanced to allow certain tags ( e.g. img, strong, em, ... ), user interaction, callback when a certain position is reached, ... Candies, karma, credits and/or  a notice would be appreciated if someone uses this tiny Scrollers manager.  ;)


Hope that helps,
:cow:

3
The time has come to, finally, release 3D TOMB II, the DOOM-like in 4k of JavaScript I initially made for the5k 2004.


The whole game now weighs 4003 bytes, all files included. The controls are X,C to strafe, SPACE to fire, the arrows to move around. And here is a downsized screenshot:

 


/!\ Due to a bug in Safari and Gecko's handling of the zIndex, the game doesn't work as expected in Safari, FireFox and co. But it works like a charm, on a semi-recent computer, in IE and Opera.


Hope you'll enjoy it.

4
Shockwave said my site is worth posting here, so here it comes:

http://www.p01.org/ features the productions I made or made a guest part for on Atari and PC, plus lots of JS things ( mostly for small size contests such as 5k, 20lines, 256b, ... and some article(s) )


Hope you'll find something interresting there.

5
General chat / *sigh* coders can be so anal.
« on: March 27, 2007 »
I got asigned to write some coding guidelines for our team at work. I didn't had time last week so I worked ~6 hours on sunday to write them.

A few people have bitched all day because I said one CAN ( as in not SHOULD or MUST ) spare the curly braces for obvious single statements that do not induces another block ( aka something insanely obvious or a continue; break; or return; statement. )

And of course the same people also bitched about me endorsing the use of 1 TABs per indentation instead of N spaces, and they have a hard time acknowledging that one can even align asignments using TABs. Duh!


AAAAAAAAAaaaaaaaaaaahh!


I just need to evacuate the (ridiculous) stress they put on me after a whole day spent arguing on IRC and across 40+ mails on our internal mailing list. Finger pointing their anal behavior and inability to read by mail didn't help lowering the pressure. Hopefully(!), tomorrow is another day.

6
GFX & sound / sound synthesis ?
« on: March 20, 2007 »
Has anybody worked on a sound synthesis or know some links/ressources about it ?

Sound synthesis/programming has always been a bit mysterious to me. I've watched a few seminars by KB, Gargaj and the likes but I'm musically impaired :p

Pages: [1]