![]() |
2048 Game for XBMC - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291) +---- Thread: 2048 Game for XBMC (/showthread.php?tid=189964) Pages:
1
2
|
2048 Game for XBMC - sphere - 2014-03-22 Hi, in case you don't know 2048, its a small puzzle game which is very popular at the moment, you can play it e.g. here: http://gabrielecirulli.github.io/2048/ Be warned, it makes addicted ![]() I created a XBMC Version of it and would be happy if some of you could test it, it is still not finished but the game logic is complete (except you can't win). Here are the rules and controls: - If tiles with same value overlap they join into one tile with double value - goal is to get the 2048 tile (not implemented yet) but you will see your own highscore - After any (successful) move a new random tile is spawn - you loose when no moves are available - Press up/down/right/left to move the tiles - Press menu to exit I implemented it as dialog so you can play while commercial breaks, listening to music and so on... Later it will be possible to change the size and location of the dialog. You can download version 0.0.2 here: http://goo.gl/v5zrH3 I don't want to have it public yet so I decided to post it here first to get some feedback - tell me if you don't like such threads here (team internal) and I will move or delete it. regards, sphere RE: 2048 Game for XBMC - Koying - 2014-03-22 Hehe, very cool. 2048 is a great time killer / waster ![]() RE: 2048 Game for XBMC - da-anda - 2014-03-22 Nice, didn't know that game but seems really addictive. Will give it a try. btw - we need a games extension point - having them mixed with program addons or scripts is meh. I like all your games btw - movie quiz has some navigation oddities though. And seeing this game reminded me of my Flash game attempts 10 years ago: - http://images.elements-net.de/flash/breakout.swf - http://images.elements-net.de/flash/parallax2.swf (you have to click and hold in order to move - and you can click some objects) - http://projects.elements-net.de/puzzle/puzzle_fl6.swf (I'd like to see such a game using f.e. movie posters/fanart) RE: 2048 Game for XBMC - Koying - 2014-03-22 First remarks: - How do you close the game? ![]() - Apparently, you don't add a random tile when a "merge" happens. The original game always adds a tile. RE: 2048 Game for XBMC - sphere - 2014-03-22 (2014-03-22, 14:34)da-anda Wrote: Nice, didn't know that game but seems really addictive. Will give it a try.MovieQuiz is not from me ![]() Interesting games you made ![]() (2014-03-22, 14:41)Koying Wrote: First remarks: Read my initial post: "Press menu to exit" ![]() Regarding the missing add, you are right, you found a bug, thanks! RE: 2048 Game for XBMC - Koying - 2014-03-22 (2014-03-22, 15:10)sphere Wrote: Read my initial post: "Press menu to exit"Sorry about that. I have to improve my diagonal reading skills ![]() May I suggest adding at least "BACK" as a way to exit, if possible. Seems more natural. [edit] Well, "ContextMenu" doesn't work (on keyboard / Win). Not sure what MENU key I'm supposed to press.. RE: 2048 Game for XBMC - wsnipex - 2014-03-22 damn you, I just wasted 2h on this ![]() RE: 2048 Game for XBMC - sphere - 2014-03-22 (2014-03-22, 15:18)Koying Wrote:Good idea, i changed it to exit on back. Menu (which is "m" on keyboard) now restarts the game. context-menu will open the move-and-resize-mode later.(2014-03-22, 15:10)sphere Wrote: Read my initial post: "Press menu to exit"Sorry about that. I have to improve my diagonal reading skills Quote:Apparently, you don't add a random tile when a "merge" happens. The original game always adds a tile.Btw, I cant seem to reproduce this, could you please re-check (2014-03-22, 15:20)wsnipex Wrote: damn you, I just wasted 2h on thisHehe, you wasted the time in the original browser game or in my xbmc add-on? ![]() RE: 2048 Game for XBMC - Koying - 2014-03-22 (2014-03-22, 16:02)sphere Wrote:Sure:Quote:Apparently, you don't add a random tile when a "merge" happens. The original game always adds a tile.Btw, I cant seem to reproduce this, could you please re-check https://www.dropbox.com/s/frgsjvotfjb3aeg/Capture%20d%27%C3%A9cran%202014-03-22%2015.18.45.png UP https://www.dropbox.com/s/cht3y0x7zxhctst/Capture%20d%27%C3%A9cran%202014-03-22%2015.18.53.png No added tile. On your 0.0.1, obviously. RE: 2048 Game for XBMC - Koying - 2014-03-22 If not already on your TODO, would be great to have some kind of auto-save, too, if possible. A 2048 game tends to last longer than a commercial break ![]() RE: 2048 Game for XBMC - sphere - 2014-03-22 Here is version 0.0.2: http://goo.gl/v5zrH3 Changelog: 0.0.2 - changed: restart game on menu-key, exit with back-key - changed: switch icon and tile pictures (to be pixel_perfect) - fixed: potential missing random tile spawn RE: 2048 Game for XBMC - da-anda - 2014-03-22 @sphere - with "movie quiz" I was referring to "what the movie" (had a 50% chance to guess the right name ![]() BTW - "back" should exit any of your games. Don't assume everybody has a keyboard and tons of buttons available. I was trapped several times. Also, don't catch/misuse any playback related buttons, there might be music playing in the background ![]() RE: 2048 Game for XBMC - Koying - 2014-03-22 Oh, the no added tile is probably due to: Code: 17:02:40 T:13752 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- I indeed have no "addon_data\script.game.2048" directory (on Windows, still). RE: 2048 Game for XBMC - sphere - 2014-03-22 (2014-03-22, 18:10)Koying Wrote: Oh, the no added tile is probably due to: Thanks! That is the reason. I re-uploaded a fixed version 0.0.2, could you try again? Btw, now the highscore should also be stored between sessions ![]() RE: 2048 Game for XBMC - Koying - 2014-03-22 Got an error while installing the zip, but the bug is solved ![]() Note that I get this when exiting. Code: 17:49:42 T:11656 ERROR: EXCEPTION: Object should be of type Control |