Just starting out with JS...
I'm sure there's ways to shorten this down, but I'm fairly pleased with it
http://www.jetshack.com/ecgame.htm
Any suggestions / pointers would be welcome...
Just starting out with JS...
I'm sure there's ways to shorten this down, but I'm fairly pleased with it
http://www.jetshack.com/ecgame.htm
Any suggestions / pointers would be welcome...
Alert boxes are very annoying. Try writing out information to the screen. Also, why does it switch to black?
I agree
Haven't learned how yet... I think that's two chapters ahead of where I'm at now. As soon as I learn how I will... Well probably not to that script as it was just an example of where I was at at that point....
seemed like the easiest way to hide the instructions.
I've started a new script, need to add a timer to it. It's a clone of a "Digitor" machine...
Choose a type of math problem then you're presented with 10 of those problems. the score is kept and then presented after the final question is answered.
generates 2 random numbers (currently with a max value of 12)
addition problems were straight forward
subtraction problems are tested to make sure that the first number is larger than the second number so that there aren't any negative answers.
multiplication problems were straight forward.
division problems - multiplied the 2 random numbers together to get the dividend then use the dividend and one of the 2 random numbers in the problem. This makes sure that you end up with simple integers.
![]()
I agree about the black, and the alerts, though I can understand using alerts. The black is just confusing. uh... what do I do now? Etc.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
It's getting better...
www.jetshack.com/digitor2.04.htm
Bookmarks