[QUOTE=Atomiku;32605579]
You can define a default variable for a function (if it hasn't been set) like this:
function loadjs($name, $ver = '1.6.6') {[/QUOTE]
Cheers! Works perfectly.
[QUOTE=Zack0Wack0;32604483]Hi. [URL="http://zack0wack0.com/files/jscraft/index.html"]http://zack0wack0.com/files/jscraft/index.html[/URL] It's based off of [URL="http://mrdoob.github.com/three.js/examples/webgl_geometry_minecraft_ao.html"]this[/URL] example of three.js. I just added water and terrain generation, I tried to make trees.. but they were shit.[/QUOTE]
Hey, that's pretty damn nice man. I'd love to have a play around with canvas and 3d some more, if only I wasn't so damned busy all the time. Whenever I do actually get a chance to get to my computer, i'm always freelancing or wasting time on reddit and facebook. :(
It says physics:Off - can that be toggled?
[QUOTE=Atomiku;32605665]Hey, that's pretty damn nice man. I'd love to have a play around with canvas and 3d some more, if only I wasn't so damned busy all the time. Whenever I do actually get a chance to get to my computer, i'm always freelancing or wasting time on reddit and facebook. :(
It says physics:Off - can that be toggled?[/QUOTE]
I don't believe so - it's very incomplete.
(He's in bed, I am about to be too!)
My day: "So I've coded this little blog backend from scratch, with all these nice features. I'm really proud of it! Time to move on to Wordpress"
Writing my own web server in PHP. Which is a [b]REALLY[/b] fucking retarded idea, but hopefully will give me a better understanding of the HTTP protocol.
[QUOTE=Jelly;32606064]Writing my own web server in PHP. Which is a [b]REALLY[/b] fucking retarded idea, but hopefully will give me a better understanding of the HTTP protocol.[/QUOTE]
I tried this in Node.js, just for the learning experience. Was pretty fun.
[QUOTE=TerabyteS_;32604024]It is not technically possiblre to make minecraft in Javascript. Forget about it.[/QUOTE]
lol, what? [url]https://github.com/mrdoob/three.js/[/url]
[editline]3rd October 2011[/editline]
If you're running your own servers and you're not using [url]http://puppetlabs.com/[/url] you're a dork.
[QUOTE=KmartSqrl;32606662]lol, what? [url]https://github.com/mrdoob/three.js/[/url]
[editline]3rd October 2011[/editline]
If you're running your own servers and you're not using [url]http://puppetlabs.com/[/url] you're a dork.[/QUOTE]Mind me, I didn't say that 3D can't be done in the browser, I was just saying that making a minecraft clone with all of the implications of the original game (terrain generation, chunk saving/loading, etc.) would be impossible or very hard to do.
[QUOTE=TerabyteS_;32608330]Mind me, I didn't say that 3D can't be done in the browser, I was just saying that making a minecraft clone with all of the implications of the original game (terrain generation, chunk saving/loading, etc.) would be impossible or very hard to do.[/QUOTE]
I think it's easily doable, a multidimensional array to store the map, terrain generation can be handled serverside.
[QUOTE=Fatal-Error;32608352]I think it's easily doable, a multidimensional array to store the map, terrain generation can be handled serverside.[/QUOTE]That's not a good idea for both your servers and your clients. And infinite worlds would be impossible that way.
[QUOTE=TerabyteS_;32608375]That's not a good idea for both your servers and your clients. And infinite worlds would be impossible that way.[/QUOTE]
Minecraft doesn't have infinite worlds currently anyway
Been away from HTML for a long time and got back into it yesterday. Made my very first wordpress theme. First coded it from scratch then decided to use the Shape framework and after modifying it ended up with this: [url]http://www.fishious.me/[/url]
Any comments on what I could improve?
[quote][img]http://1337.jp/_/2011/10/Fish_Tank_A_blog_about_myself_computing_technology_and_games._-_Google_Chrome-2011-10-03_20.30.06.png[/img][/quote]
make padding better
and add max/min height/widths?
Wow what resolution is that?
Working on it.
[QUOTE=MightyHaku;32609838]Wow what resolution is that?
Working on it.[/QUOTE]
just spanned it across both my 1080p monitors
Set max width and changed the padding-top, now how do I get it to centre on those huge resolutions?
[editline]3rd October 2011[/editline]
Never mind, done it :)
[QUOTE=MightyHaku;32609071]Been away from HTML for a long time and got back into it yesterday. Made my very first wordpress theme. First coded it from scratch then decided to use the Shape framework and after modifying it ended up with this: [url]http://www.fishious.me/[/url]
Any comments on what I could improve?[/QUOTE]Set a max width for the content block, around 1000px. That'll make it easier to read.
Oh, sorry I'm late.
You might want to make the footer relate in size with the main div instead of everything
Decided on putting up that hangout if anyone's interested.
[url]https://plus.google.com/hangouts/extras/talk.google.com/google%252Bfacepunch%2520webdev%2520hangout?authuser=0&hl=en&shxp=1[/url]
[QUOTE=Kwaq;32610256]You might want to make the footer relate in size with the main div instead of everything[/QUOTE]
Hmm, I can't seem to figure out a way to do this without using javascript to dynamically set it. Is that a bad thing to do?
Never mind - I got it, unset the width and set a margin-right!
What is a good php MVC framework you guys could recommend?
[QUOTE=AzzyMaster;32610941]What is a good php MVC framework you guys could recommend?[/QUOTE]
Symfony 2, FuelPHP, Kohana
I've moved the share links to the box at the bottom:
From:
[img]http://www.gabrielecirulli.com/p/20111003-214521.png[/img]
To:
[img]http://www.gabrielecirulli.com/p/20111003-233402.png[/img]
[img]http://www.facepunch.com/fp/ratings/tick.png[/img] / [img]http://www.facepunch.com/fp/ratings/cross.png[/img] ?
fuck my computer doesn't support WebGL
I am actually quite dissapointed
just bought 1g1.co & 20z.co for £6.
not really sure what I'm going to use them for, but for £6 for two domains I don't really mind!
[QUOTE=Snakess;32613647]just bought 1g1.co & 20z.co for £6.
not really sure what I'm going to use them for, but for £6 for two domains I don't really mind![/QUOTE]
look like link shortener
[QUOTE=Ac!dL3ak;32613843]look like link shortener[/QUOTE]
I was thinking this for one of them, even though there is a stupid amount around.
Is it a good idea to buy a domain from 1&1?
[editline]4th October 2011[/editline]
i mean is it ok? should i?
[editline]4th October 2011[/editline]
wait can domain names be down?
[QUOTE=zzlawlzz;32614836]Is it a good idea to buy a domain from 1&1?
[editline]4th October 2011[/editline]
i mean is it ok? should i?
[editline]4th October 2011[/editline]
wait can domain names be down?[/QUOTE]
1&1 is total shit, I used them a couple of years ago, never again
go with gandi or namecheap
[QUOTE=anton;32614976]1&1 is total shit, I used them a couple of years ago, never again
go with gandi or namecheap[/QUOTE]It was a nightmare to terminate my service with them, had to fill out a legal form and fax it to them. Didn't support ruby and didn't have cpanel either.
[QUOTE=anton;32614976]1&1 is total shit, I used them a couple of years ago, never again
go with gandi or namecheap[/QUOTE]
well my dick LITTLE brother allowed me to buy jung3o.com with his prepaid i bought with name.com :D
Sorry, you need to Log In to post a reply to this thread.