Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7559149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:33:50+00:00 2026-05-30T12:33:50+00:00

i already gone through other web game cheating question on this forum but i

  • 0

i already gone through other web game cheating question on this forum but i did not get answer for my problem that’s why i am posting it under a similar title.

Here is the issue:

i am developing a web -based game in which three similar boxes are shown on the web page by using simple html.

<img src="box.jpg" />
<img src="box.jpg" />
<img src="box.jpg" />

now with use of jquery.path plugin i am rotating these boxes on random path and as per game requirements at the end of the animation a user need to identify the position of the middle box by clicking on of the three boxes.

but if a user using firebug or chrome web developer tools then by just inspecting the dom’s elements he/she can easily identify the position of the middle box.

so please give me suggestion to resolve this issue.

P.S.

i am mainly using simple jquery animations because i want to make game compatible to older browser also,so is it better to use canvas or css3 animation in my situation?will they resolve this kind of cheating issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:33:51+00:00Added an answer on May 30, 2026 at 12:33 pm

    try considering the use if javascript closures. Although it can be tracked by a JS debugger, learning to use the debugger would be a higher level knowledge than just peering into the source or the DOM tree.

    build an object that has a private scope. using that object, create the 3 images you need. assign these 3 images to 3 private variables in that object. only that object knows which image is which. you don’t even need to give them distinction in it’s attributes since you can track them in the object using those 3 private variables.

    In my example, i’m using the $.data() which is viewable. although they can know the ID of the box, they don’t know the value of the target variable inside the closure.

    consider randomizing the target value instead and place whatever box that has that value in the middle. that way, they won’t be tracking, the same box all the time.

    var game = (function(){
    
        //set which box is the target
        //they will never know this value
        //i sugest including this in randomizing
        var target = 1;
    
        //storage variable for the boxes
        var boxes = {};
    
        //retrieve data stored and check with target
        var check = function(element){
            var boxID = $(element).data('boxID');
    
            //check if a match
            if(boxID === target){
                alert('got me!');
            } else {
                alert('not me!!!');
            }
    
        }
    
        //create 3 boxes and store them in boxes object
        for(var i = 0; i < 3 ; i++){
    
             //create box HTML and store it in a variable
             //notice that all boxes will have this very same HTML
             var box = $('<img src="box.jpg" />');
    
             //store the box identifier using $.data()
             //at least in this manner, you are not storing 
             //the id as an attribute
             box.data('boxID',i);
    
             //if your plugin looks like "element.path()"
             //plug it to every box created
             box.path({
                 options:value....
             });
    
             //add handler for checking
             box.on('click',function(){
                 check(this);
             });
    
             //store in the private variable
             boxes['box'+ i] = box
    
             //append box to the display, in this case, the body.
             $('body').append(box);
        }
    
        //your "pathing" function
        var randomize = function(){
            //do your random path stuff here
            //access boxes using: boxes.box1, boxes.box2 and so on...
            //they are jQuery objects already so you can use jQuery functions on them
        };
    
        //return public accessible methods and functions
        return {
            randomize : randomize //expose the randomize function
        }
    
    }());
    

    after this, just call game.randomize() to do your path stuff (since only randomize is available publicly in the code)

    tried logging the game object as well as the divs, no sign of the real target.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've gone through the other answers for this kind of question, nothing has really
I actually posted this question because I found similar questions but not a perfect
First let me say, I have gone thoroughly through all other solutions to this
I have already gone through some codings, and I found some interrupts in uploading.
I'm new to iPhone development.I have already gone through some of the exploring pages
I'm doing something similar to the following code. I have already gone through AddtoStructFunction()
I've actually asked about this already in this post although we've gone back to
I am trying to generate emails with HTML content. this content has already gone
I have gone through the code of mutex, but it is giving me errors
I'm making a standard JQuery .ajax call, already jumped through hoops to get it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.