|
|
#271 | |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
Code:
/* Name: Draughts game
Original code (c) Ben Chenoweth
Initial version: March 2011
*/
tmp = function() {
var Draughts = {
name: "Draughts",
title: "Draughts",
description: "Board game",
icon: "GAME",
activate: function () {
kbook.autoRunRoot.sandbox._icon = Core.config.compat.NodeKinds.getIcon("GAME",0);
kbook.autoRunRoot.sandbox._title = Draughts.title;
kbook.autoRunRoot.sandbox.getSoValue = Core.system.getSoValue;
kbook.autoRunRoot.sandbox.hasNumericButtons = Core.config.compat.hasNumericButtons;
kbook.autoRunRoot.path = Core.config.addonsPath + "Draughts/draughts.xml";
kbook.autoRunRoot.enterIf(kbook.model);
},
actions: [{
name: "Draughts",
group: "Games",
icon: "GAME",
action: function () {
Draughts.activate();
}
}]
};
Core.addAddon(Draughts);
};
try {
tmp();
} catch (e) {
// Core's log
log.error("in Draughts.js", e);
}
Sincerely, Ben. |
|
|
|
|
|
|
#272 |
|
Enthusiast
![]() ![]() Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
|
BenChen
Please make/adapt minisweeper , if possible
|
|
|
|
|
|
#273 |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
|
|
|
|
|
|
#274 |
|
Enthusiast
![]() ![]() Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
|
BenChen
And for not needs modify kBookIcon.png and xxx_config.js after add new games/applications place game/app icon to game/app directory |
|
|
|
|
|
#275 | |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
However, Mark has an idea that would mean the GAME icon would be used if the game-specific icon is not available. Sincerely, Ben. |
|
|
|
|
|
|
#276 | |
|
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
previous for mark, flag, free next for check surrounding and size (center for 300/505) for step on But isn't there a tap on and clear all surroundings, too? If so, could be hold-size/center. So that taping the square will only highlight it. On the other hand I am thinking of enhanced "tap-control". Tap-and-hold should be easy to dedect if PSEUDOCODE: Code:
onMouseDown
{ downtick = now}
onMouseUp
{ if (now - downtick > 1000 mS) { call hold-func}
else { call click func} }
Again PSEUDOCODE: Code:
else { if( timer == undefined) {
CPUcanSleep(false);
start timer(500, timercallback);}
clickcount++ }
timercallback {
kill timer;
delete timer;
CPUcanSleep(true);
if (clickcount==1 ) {call click func}
else { if (clickcount>1) { call doubleclick func}}
clickcount=0;
}
So tap could be used for mark, flag, free tap-and-hold = check surrounding double-tap = step on no idea for step on an clear surrounding. Comments anybody? Maybe I can work on this next weekend, but (as Ben says) don't hold your breath. PS: Additionaly core-functionality/code in Sim dosn't use /compat/ and /lang/ scripts. This should be enabled, too. Last edited by Mark Nord; 03-30-2011 at 02:45 PM. |
|
|
|
|
|
|
#277 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
|
Perfect. I forgot to copy the folder AppAssets
Last edited by surquizu; 03-30-2011 at 05:05 PM. |
|
|
|
|
|
#278 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
|
Ben, to incluide the new modifications of the games on the reader (for example PRS 505) is it necesary to copy the script appassets too?
thanks |
|
|
|
|
|
#279 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
|
|
|
|
|
|
|
#280 |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
@VICTORSJG, yes as surquizu says, you must copy the AppAssets folder as well. All the games now use these common files. This saves space and actually makes it easier to maintain.
|
|
|
|
|
|
#281 |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
New game: XO-Cubed
Hi everyone,
You'll find a new game in the FSK repository now. It's "XO-Cubed", otherwise known as "3-d Four In A Row" or "3-d Tic-Tac-Toe". Note that this is an alpha release. It has NOT yet been tested on a Sony Reader, but it appears to work fine in the Sim. Also, currently only 2-player mode works. But I will be starting on AI when I get the chance, so stay tuned! Enjoy! Sincerely, Ben. |
|
|
|
|
|
#282 | |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
And I've tested it on my Reader. All good! Sincerely, Ben. |
|
|
|
|
|
|
#283 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
|
Ben, i've downloaded the all repository with mercurial with the new modifications, and when i push key number three to run oxcubed nothing occure.
Last edited by VICTORSJG; 04-01-2011 at 02:20 PM. |
|
|
|
|
|
#284 |
|
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 526
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
What screen resolution are you using? I thought I modified the sim menu files correctly, but I only tested one resolution.
|
|
|
|
|
|
#285 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
|
The 800 pixel, with yours new modification for 800 pixel and prs 950. works fine.
Thanks Last edited by VICTORSJG; 04-01-2011 at 02:39 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fsk error, code = -13 | Brian Charles | Sony Reader | 4 | 04-23-2010 04:21 PM |
| Fsk error code= -43 | shrktank | Sony Reader | 1 | 12-24-2009 09:32 AM |
| Just a silly tweak: AUTORUN.INF for Windows | Rootman | Kindle Developer's Corner | 3 | 12-04-2009 10:17 AM |
| Request for test in Windows XP | kovidgoyal | Calibre | 5 | 08-26-2009 01:14 PM |
| Windows Develpment Environment issue | itimpi | Calibre | 20 | 01-17-2009 07:15 PM |