Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb SnackMan - my first javascript game.

    I learned JavaScript from the free resources on the internet. As my first project using the DOM I set out to make a game. My first version was compatible with IE only, but recently I revisited the code and made the game compatible with Mozilla/Firefox as well. I've learned alot about Javascript, and the DOM, and cross browser support...

    Click Here to Play SnackMan

    If you have a slow connection you may have to refresh the page a few times to get all of the scripts cached. I thought I had that problem fixed, but I guess not.

    Note: It had music and sound effects, but the game ran horibly slow in Firefox with them enabled... The game runs more smoothly in IE.

    I wrote the level editor for SnackMan in Javascript as well.

    Comments? Suggestions? Let me know what you think.
    Last edited by VortexCortex; Oct 28th, 2005 at 10:55 AM.

  2. #2
    Regular Coder
    Join Date
    Apr 2005
    Posts
    213
    Thanks
    2
    Thanked 1 Time in 1 Post
    Thats not bad at all. I have a few suggestions though:

    disable the context menu

    change the collision detection (ghost vs snackman) so that it collides closer to the middle instead of the edge. This gives a better effect of being "eaten".

    Try to put more of your scripts into external files *.js This will allow better cacheing

    disable selection and dragging on page.

    change the mouse cursor to hidden when it hovers the map.

    you could also reduce download time by replacing the different word gifs with a text filter gradient (IE only). Or lower you standards slightly by not using a gradient at all (use blue text). Not as pretty but it would load faster.

    All in all though, the game is pretty solid. Good work.

  3. #3
    Regular Coder
    Join Date
    Oct 2005
    Posts
    196
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I played it for a bit while in class and must say it's a pretty good game. No big comments or suggestion, the guy on top said most of it.

  4. #4
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The level title "Green is Mean" has me wondering how the different colored monsters behave differently. Good graphics and variety among levels.

  5. #5
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeň, Sweden
    Posts
    5,578
    Thanks
    0
    Thanked 83 Times in 74 Posts
    On my Mac at the moment (900MHz G3 with 640 MiB RAM). Your game ran nicely in newest ff1.5 version. Safari had some problems with speed changes during play. Game is stuck on loading scene in op9, without the bar moving. Nothing in the JavaScript console to indicate why, however.
    liorean <[[email protected]]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •