Adapting a Game for Mys?
Hey. I found an open-source game called 2048. It's under the MIT license. (I'm pretty sure this means that any mods we make will be open source as well.)
I want to adapt the code to make it look like this game- with the pictures instead of numbers. (I can't use that site to make it because of their TOS.) I've figured out that it probably would be edited in the style folder, but can anyone help me decode it? Also, I would like to do one of two things: send score to get promocode to get money, or have you automatically earn funds as you're playing. There would need to be a cap on this, obviously. Thank you in advance for any help you can provide! |
Okay, so I think the file I want is main.css in the style folder. I found this section:
HTML Code:
.tile { |
On Chrome, I opened up the game, right clicked a tile that had an image, and at the bottom of Chrome's right click menu there is a listing that says 'Inspect Element'. From there I just examined the css that modified the title. The tiles are probably dynamically given images via Javascript/jQuery, but the css looks like this when a tile has an image:
Code:
.tile-1 .tile-inner { You'd be better off finding a different free source version of 2048 that already has images. ( Also this??? I think this was used to build the FR version with images. ) |
Darn. So there's no way I can edit the CSS myself? I was sure it was possible...
|
You'll have to find wherever in the source is pointing to the actual images and swap those links out for your own. I've yet to find where that is.
|
Theoretically you should be able to edit the css if you have full access to the source file. It may be hidden somewhere though, not every script has a css folder or theme folder that you can identify immediately.
|
Well, it's been fully shared on gitHub: https://github.com/gabrielecirulli/2048
It has a style folder with 3 css files in it. I think it was in that stretch of code from above? |
All times are GMT -5. The time now is 07:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.