Author Topic: Old JavaScript Code  (Read 2091 times)

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Old JavaScript Code
« on: January 29, 2013 »
Many, many years ago (6 or 7?) I created some games in JavaScript, and I've been looking back at them for code examples.

Most of the resources on my old "After School Programmers" site are out dated, but there are a couple of challenging games on there for IE only. If I get time I'll update them for all browsers.

The games are on http://asp2.barcodebattler.co.uk/MyGames/index.php and are accessable from a drop down menu with "Pie Rats of the Caribbean" as the default option. The best ones are Mole Mash and Lone Invader.
« Last Edit: January 29, 2013 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Old JavaScript Code
« Reply #1 on: January 29, 2013 »
I have developed a newer version of my JavaScript event handler code which should run under IE, FireFox and Chrome.

There may be problems under older versions of FireFox, so please test this out and let me know if it works in FireFox, and which version of FireFox you have tested it with.

To test this, please download and extract the files, then run the web page in FireFox and press your arrow keys. The red square should move accordingly.

I have tested it on FF 15, so hopefully it should run well for all later versions at least.

(edit) The attachment has been superceded.
« Last Edit: January 30, 2013 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1199
  • Karma: 230
    • View Profile
    • Homepage
Re: Old JavaScript Code
« Reply #2 on: January 29, 2013 »
Works fine on Chrome and FF 16.0.2. :)

Lone Invader and Mole Mash were great btw, got 515 points in mole mash.
« Last Edit: January 29, 2013 by Kirl »
www.kirl.nl
Challenge Trophies Won:

Offline Yaloopy

  • Death From Above
  • DBF Aficionado
  • ******
  • Posts: 2869
  • Karma: 35
    • View Profile
    • UltraPaste
Re: Old JavaScript Code
« Reply #3 on: January 30, 2013 »
I've been playing Pie Rats all night!
Fuck L. Ron Hubbard and fuck all his clones.
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Old JavaScript Code
« Reply #4 on: January 30, 2013 »
Wow ... great set of javascript games.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Old JavaScript Code
« Reply #5 on: January 30, 2013 »
Thanks guys - this was before the Canvas was widely supported, so the programming is quite crude, but they work as games.

I've been testing my template under FF 17 and it works, so I'm confident that it should be fine for newer versions (I've turned automatic updates off for FF).

(edit) I have added mouse tracking in the form of four green lines which follow the mouse. I have tested it in IE9, Chrome and FF 15, 17 and 18, and it seems to work for all of them.

Time for me to update the old games and make some interactive demos.
« Last Edit: January 30, 2013 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Old JavaScript Code
« Reply #6 on: February 05, 2013 »
Well Done Javascript and some interesting games that you have :)

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Old JavaScript Code
« Reply #7 on: February 08, 2013 »
Thanks Hotshot,

I've almost got the code updated for Firefox and Chrome.
You are our 9001st visitor.
Challenge Trophies Won: