forked from edspencer/extjs-solitaire
-
Notifications
You must be signed in to change notification settings - Fork 0
Solitaire in Ext JS Red/Green for Amblyopia Training
sorenfalch/extjs-solitaire
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Solitaire in ExtJS Simple port of the windows Solitaire game for Ext JS. Runs locally, no need for server except to serve the files. About: * 35Kb of JavaScript, 15Kb minified. * < 1300 lines including generous comments, JSDOC and whitespace * Written for ExtJS 2.2. Custom build at http://extjs.cachefly.net/builds/ext-cdn-400.js * Roughly 25 hours work, mainly spent trying to find information about D&D in ExtJS. To do: * Save game state to cookie so as not to lose between refreshes * Make 'New Game' functionality work properly (as in not refresh the whole window!) * Make a 'cool' animation for the end * Add a 'hint' option which flashes a card Bugs: * initialiseDragSource called after each render of each card, is probably leaking memory (see FIXME at conditional at beginning of that method) * There seems to be an event firing leak when double clicking cards. Before they are moved they fire the event several times. * Currently using a hack in Card.getBestMatch as it will occasionally throw an error (winner.overlap is null). Should be able to remove the try/catch block here * Can't currently double-click a card in the Deck, only on top of a Stack Changelog: 18/12/2008: * Allowed double-click on a top card to stack to automatically put it onto appropriate suitstack if the move is permitted * When moving a revealed card from a stack, any cards on top of it will also move * Using a custom build of ExtJS as only a small part of the framework is used here * Changed deck cycling direction (bottom card moved to top instead of top to bottom) * Updated top menu with links to view source and download from Github * Reorganised files, took all classes out of the Ext.ux namespace * Added time taken and score to bottom status bar 04/01/2008: * Updated DragDropMgr to use intersect instead of point * When multiple cards are dragged they are now all shown in the drag proxy 05/01/2008 * Finished styling UI components
About
Solitaire in Ext JS Red/Green for Amblyopia Training
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 99.9%
- Ruby 0.1%