OZONE Asylum
Forums
OZONE
3D TOMB II : a DOOM-like in 4k of JavaScript.
This page's ID:
29323
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[b]reisio:[/b] Thanks for the offer. I already fixed my [i]ab[/i]use of the z-index. The issue was that the [url=http://www.w3.org/TR/CSS21/visuren.html#z-index]CSS 2.1 specification of z-index[/url] says it must be either [i]auto[/i], [i]inherit[/i], or an [i]integer[/i] value. It doesn't specify what to do when given an "invalid" value such as a string, a length ( a float followed by a unit, e.g. em, ex, pt, ... ), a float ... In 3D TOMB II, when I compute the size and distance of the entities ( items and creatures ), I get a float. I was using this value as is to set the z-index of the entities because it's always worked fine in IE and Opera ( the only browsers were the game is really playable anyway ). These two seem to round the float value. But Firefox and Safari are more strict here. All I had to do to fix the issue was to cast the float to an integer, and tweak the code a bit to make sure the compressed size remains the same so I don't have to edit the FAQ and other pages mentionning the file size :p [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_neon88x31.gif[/img][/sigrotate][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »