Code

Discussion on Classic Memory Game

Discussion on Classic Memory Game

By
Cart 271 sales

animike does not currently provide support for this item.

48 comments found.

Hi, I just purchased the memory card game. Unfortunatly, I see that it needs to be hosted on a server to function. Is there any way you could send me a version that can work without needing an internet connection? I am trying to bundle this into a program that will be on computers without internet, so it needs to work all locally. Let me know asap. Thanks!

Sent you an email. I do not have time to work on this at the current time. The code would need to use JSON vs XML to get that to work.

Hi, I just downloaded the game and it does not work with Internet Explorer 9 and Chrome. I’m running locally before uploading to the server. Please, it’s urgent, our client wants a quick answer.

I wait your response. Thank you.

Try uploading to your server. It doesn’t work locally.

Thank you. It´s solved

Having a blast with this one – I made a php file that writes the xml on the fly… it pulls the cards from a database which means I can now have more than just xx amount in the mix.

In my setup there are 24 cards ( 12 sets) but in the database, there are many more so the user gets a different experience each time they play…

It also pulls an advertisers ad out of the database list and uses that ad for the background slowly displaying the ad as the cards get matched and removed… then at the end, it puts the link to the advertisers site and the member can earn cash and / or points for viewing the ad…

I think the next thing will be to add a category for certain holidays and then on an admin panel make it to where those can be turned on or off…

Maybe even set it up to where if you find a certain match within so many tries the prize doubles…

The other thing it does is when a member is logged in, it tracks their tries and displays the last 10 players scores and then the highest scores – or in this case the lowest # of tries… Then we will give away weekly, monthly, quarterly etc prizes based on those stats…

Thanks for developing this Mike – it has opened up a ton of creative ideas and even the basic version, my members love it!

Awesome!!! Thanks for posting your experience. Feel free to add a link to your work in the comments to gain more exposure!

This is what the people visiting the website would see http://www.rumorcentral.info/news/star/memory/

The internal version is set up and working and will available on the members side once I get the buttons set up for the paid advertisers.

Here is the youtube link to how the banner maker and ad campaign for this is set up http://www.youtube.com/watch?v=ou0RqdrIEuE

Thanks again Mike

If I make this game only available for my paid members, is that okay?

I guess so. Not sure what the exact policy of the site is? I think if you were selling the source code it would be an issue. That’s not what you are doing, right?

Thats exactly right. Not selling the source code, just making the game available to my paid members

Go for it.

Is there a way to get a license to charge for use of this game?

Hi, I would like to extend the time the two mis-matched cards show to the player before they turn back over. I know I can slow the flipping speed – by changing ‘hidespeed’ but I would like there to be a longer pause before the mis-match begins to flip back. thanks

you have to edit the code in the js/memory.js file (around line 205):

//it is NOT a match window.setTimeout(function() { spinCardBack(cardOne); spinCardBack(cardTwo); cardOne = cardTwo = undefined; currClickID = null; clickready = true; },1000);

Change the 1000 to something larger… 1000 = 1 second

Be sure your html file is pointing to memory.js, not memory-min.js

Hello: We buy your code and it works great; however i just want to know if there is a way to redirect the user to an url when all cards are matched (Instead of opening a message window)

Thanx in advance Enrique Collado Telemundo PR

You can get that affect by editing the memory.js file. There is a function called youwin (line ~219). If you get rid of all the code (or comment it out) and then put something like:

window.location = ‘http://animike.name';

Ya that is what I am looking at now; actually since this is part of a dynamic app w/ 10 different units teaching Spanish, I’m looking at swapping out your img field for SVG – then using a plugin called SVG InnerHTML

https://github.com/phaistonian/SVGInnerHTML

to manually set the text fields from XML -that way your cool card flip gets preserved nicely :)

Thanks for the fast reply; I’d be happy to send you my code when I’m done, although I’m using Visual Studio Blend so I’ve already adjusted it a bit for the Win8 platform.

Hello I’d like to use WORDS for 1 of the images, so you match a word and an image rather than 2 images.

Do you know how I could do that?

thanks in advance!

Stacey

Can you create another image with the words you want to use? You can link up two different images to be “matched”

Hello – I would like the game over div to appear higher on the page. How do I change the positioning exactly? Right now it seems to position in the middle of the memory div. Thank you!

in memory.js line 238 is adds the style for the message at the end:

$(”.gameover_bg”).css({‘top’:middle*100+”%“})

if you change that top value to something like:

$(”.gameover_bg”).css({‘top’:50px}) or something simliar, you can move it higher on the page. NOTE : a top value is measured from the top of the div.

Let me know if you have questions. Thanks for purchasing.

Helo, is there a way to ask for player name and email? Interested to put this as facebook game. thanks

Nope. what you see is all there is. Thanks.

Hi, could one change the code to include a card “C” and have the goal of the game to pick the 3 of them in order, i.e. A_B_C? If this wouldn’t be too expensive to do, I would like to buy the rights and hire you to do the tweeking…

Hey. Thanks for looking. Unfortunately at this time this is not a project I can tackle. It is an interesting idea and the logic sounds challenging, but I’ve recently taken on a new job and don’t have the bandwidth for a project like this. Thanks.

Hey bro,

Great script. Exactly what I was looking for. Getting ready to rate, but first…

Any thoughts on making it responsive?

Shouldn’t be too hard, except for the image in the background. I would probably recommend trying to find a different solution for bg image.

on second thought, i don’t know… you know coding… it is really all trial and error. I didn’t give a responsive version too much thought, and i’ve learned a lot more since i coded this version. I was thinking that if you wanted the cards themselves to scale, you may need do some recoding of the way the original file is built. keep me posted.

Hi, Is it possible to have a timer for this game and count the number of match? /Ulf

That would have to be coded. Doesn’t come with the default package.

Hi! Is it possible to add a margin between the cards? If I do it using .card class, a scroll bar appears on the right… Thank You

hmm. try adding extra spacing the xml’s cardH and cardW

HI animike, Just bought the script , just wondering if you could provide the unminified version of the script?

oh sorry, just found the unminified script, it’s actually included, thanks~

hi animike, First of all, great script! I was wondering if it was possible to start a timer at the beginning of the game and stops at the gameover page. So you get the attempts and gametime.

That is something completely separate from my script and would need to be implemented by you or a third party. Thanks for the feedback.

I am trying to load the game through fancybox lightbox but it wont work. Can you help?

Let me take a look today. Thanks.

Hey I was able to get this to work out of the box with fancybox… The game needs to be uploaded to a server in order to work. It will not work on a local drive. Let me know if you get it working.

Brilliant – thanks for your help

Also, do any of the licenses allow us to rebrand???

Thanks

You can do what ever you like to the images, both front and back. I provide the psd to make changing the graphics a little bit easier.

Sorry, i menat who the game is written by – white label rights??

I’m not sure. What are you hoping to do with the game?

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey