EmployeeNumber8
Members-
Posts
30 -
Joined
-
Last visited
-
Days Won
2
EmployeeNumber8 last won the day on April 10 2013
EmployeeNumber8 had the most liked content!
Contact Methods
-
Website URL
https://github.com/gamedev8?tab=repositories
Profile Information
-
Gender
Not Telling
EmployeeNumber8's Achievements
Newbie (1/14)
12
Reputation
-
Issues with Input
EmployeeNumber8 replied to GravityGamesInteractive's topic in Coding and Game Design
You missed the "this" keyword when you assign to leftPressed and rightPressed I'm going to assume it was just a typo. We've all done it haha. -
Chris made a good observation, so I've modified the code snippet. However, there is absolutely nothing "wrong" about using uppercase.
-
To make it a bit more "object oriented", you could revise it such that the internals of Rectangle are private. I'm sure you'll find several ways to achieve this. Here is a one way. var CreateRectangle = function(left, top, right, bottom){ //private state var width = right - left; var height = bottom - top; var getArea = function () { return width * height; } return { getArea: getArea };}
-
EmployeeNumber8 reacted to a post in a topic: Flexible Particle System
-
Haha very cool. Good work man!
- 18 replies
-
- ecological
- recycling
-
(and 5 more)
Tagged with:
-
EmployeeNumber8 reacted to a post in a topic: Learning to write (good) JavaScript - resources for beginners
-
Ok cool. Thanks.
-
Is there a way to submit tutorials/articles in here? Lots of smart guys here... it would be cool if we could create tutorials for newcomers. Something similar to the articles section on the gamedev.net forums.
-
Are you using Chrome on Windows? Try locking your computer (windows key + "L") during the audio and see if the sound stops. It happened to me once but I forgot to submit it as a bug.
-
Chris reacted to a post in a topic: What IDE are you using?
-
+1 for Webstorm +1 for Sublime Text I'm on the same setup as Chris.
-
EmployeeNumber8 reacted to a post in a topic: How to build Reel Game using HTML5 ?
-
Emhuang33 reacted to a post in a topic: What do you think about an HTML5 Audio forum?
-
lamilar66 reacted to a post in a topic: What do you think about an HTML5 Audio forum?
-
Emhuang33 reacted to a post in a topic: What do you think about a WebGL forum?
-
Emhuang33 reacted to a post in a topic: Networking forum?
-
lamilar66 reacted to a post in a topic: What do you think about a WebGL forum?
-
EmployeeNumber8 reacted to a post in a topic: Nintendo supports HTML5 with web framework for Wii U
-
CrurnNubJuill33pdqwqtoe reacted to a post in a topic: Networking forum?
-
gin5eng reacted to a post in a topic: So you think you know JavaScript?
-
Does removeChild still keep that node in memory?
EmployeeNumber8 replied to rich's topic in Coding and Game Design
The way it is written in the MDN documentation makes sense. If you maintain a reference to the oldChild with var, then it will persist in memory. The spec doesn't seem to specify what user agents should do here regarding memory. I would assume that is beyond the scope of the spec. This is directly from MDN: -
Does removeChild still keep that node in memory?
EmployeeNumber8 replied to rich's topic in Coding and Game Design
It will get garbage collected if there are no references to it. I remember confirming this last year in Chrome, Firefox, Opera and IE8+ Just be mindful the this open bug for Chrome regarding memory leaks. If you see memory usage go through the roof, then it may be the bug... and not the fact that you adding/removing many DOM elements. Hopefully they fix it soon - very annoying! -
Define "harder to scale". I've found it quite easy to scale. When you talk about what the language was designed for, and the async model - those arguments are purely academic... but in the real world, companies like eBay, 37signals, Cloud9, Yahoo!, LinkedIn, Flickr, Microsoft , Twitter (on a small scale), Instagram (I think)... are all using nodejs on the server side. These are companies that really have to deal with massive scaling. By your own admission, you've only "tried" it. Show some real world examples of how/why nodejs is a poor choice for scaling. Projects, applications, companies using nodejs
-
EmployeeNumber8 reacted to a post in a topic: So you think you know JavaScript?
-
EmployeeNumber8 reacted to a post in a topic: So you think you know JavaScript?
-
EmployeeNumber8 reacted to a post in a topic: Networking forum?
-
EmployeeNumber8 reacted to a post in a topic: How important is IE7/IE8 support for you?
-
@BlueMagic You should post a separate topic in the Audio forum for Howlerjs
-
How important is IE7/IE8 support for you?
EmployeeNumber8 replied to rich's topic in Coding and Game Design
I'll support any obsolete browser, but it will cost the client more.