not any parictular reasoning. I think it would be cool to have
it go to a screen where it's drawn with the game's font in a
window with some stuff in the background and the
charecter shaking his head.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
SetErrorScript("ErrorScript()");
function ErrorScript() {
var error = GetError();
while (!IsKeyPressed(KEY_ENTER))
GetSystemFont().drawText(0, 0, "Error: " + error);
FlipScreen();
}
}
Could be interesting, a better way might be to think of some
sort of error handling, maybe have errors throw exceptions
(although exceptions can be annoying when you don't care
about them)
Any thoughts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Javascript already has a decent try/catch/finally structure.
I'd be happy if Sphere's functions threw an exception which
could be caught, rather than just exiting.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=387078
Hmm, how would the error screen become customizeable,
any reason why?
Logged In: NO
not any parictular reasoning. I think it would be cool to have
it go to a screen where it's drawn with the game's font in a
window with some stuff in the background and the
charecter shaking his head.
Logged In: YES
user_id=387078
Hmm...
SetErrorScript("ErrorScript()");
function ErrorScript() {
var error = GetError();
while (!IsKeyPressed(KEY_ENTER))
GetSystemFont().drawText(0, 0, "Error: " + error);
FlipScreen();
}
}
Could be interesting, a better way might be to think of some
sort of error handling, maybe have errors throw exceptions
(although exceptions can be annoying when you don't care
about them)
Any thoughts?
Logged In: YES
user_id=7212
I like the idea of an error script... I like exceptions
better, but an error script is MUCH better than the way
things are currently done.
Maybe it could return a value to say whether to keep going
or not... so people could avoid errors. (oh no, it's
starting to be like QBasic)
Logged In: NO
Javascript already has a decent try/catch/finally structure.
I'd be happy if Sphere's functions threw an exception which
could be caught, rather than just exiting.