SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict khuramyz's Avatar
    Join Date
    Oct 2005
    Location
    Manchester, UK
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spot The Difference Game in JS

    Hi Guys

    I am looking for code/library (free, commercial) which can take two images and create a spot the difference game using Javascript and/or flash.
    Please help as its urgent.

    Kind Regards,
    Khuram
    Khuram Javaid
    PHP Developer and Entrepreneur
    http://www.phprad.com/

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Khuram, why would you take on an urgent task if you don't know how to do it?

    I don't think you'll find much, I'm afraid. Think about the processing involved!

    A very basic one wouldn't be hard. First of all, store the co-ordinates of where the user clicks, simple enough. Then, to see if it was right, simply compare the colour of the clicked pixel and the surrounding 8 (1 px around) or 24 (2 px around) pixels. If they aren't all exactly the same, mark it as correct.

    However, to make this smoothly done and to find all the differences won't be easy on the processing side of things, so I'd rule JS out simply because it's very demanding on the user. If you did it with Java or Flash, you could have the co-ordinates of the non-matches predetermined and you could have a circle drawn around it; though I have the feeling that, in JS, it would be a bit clumsy.

    Sure, STD apps can be found, though they were usually made at a high price.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    SitePoint Addict khuramyz's Avatar
    Join Date
    Oct 2005
    Location
    Manchester, UK
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Jake

    The job was more or less given to me. But thats not the problem.
    The problem is I cant even find a good commercial app for this as I want something very simple yet elegant. Can you suggest me an option for this as I have been raking the internet for long for this without any success.

    Thanks
    Khuram Javaid
    PHP Developer and Entrepreneur
    http://www.phprad.com/


Tags for this Thread

Bookmarks

Posting Permissions

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