Recovering When ICE Is Broken

It is surprisingly easy to break a web browser. If you create a sphere with a million chunks, the browser will break. If you create a recursive function with no stopping point (we’ll talk about those in Chapter 5, Functions: Use and Use Again), the browser will break.

If the browser is broken, then the ICE Code Editor is broken, right?

Well, yes, but there’s an easy way to fix it: add ?e or ?edit-only to the URL so that you’re looking at http://gamingjs.com/ice/?e. This is edit-only mode for ICE.

Fix the last thing that you typed to break ICE, and then remove the edit-only question mark from the URL so that you’re back at http://gamingjs.com/ice/. Now you should see the preview again.

On some computers, you may ...

Get 3D Game Programming for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.