# HG changeset patch # User Christopher Rogers # Date 1306829308 0 # Node ID 02597576cb1ba3863b98f7eafaa0f45410c20ba7 # Parent d885e7a20459257dc7a45b1b28dbc63836c9b5b5 jstetris: Fixed jstetris to work with source dvd when offline. Added index.html to stuff so only JsTetris.js file is needed. Also there is no need for compile_rules with this one anymore. diff -r d885e7a20459 -r 02597576cb1b jstetris/receipt --- a/jstetris/receipt Tue May 31 07:09:26 2011 +0000 +++ b/jstetris/receipt Tue May 31 08:08:28 2011 +0000 @@ -4,27 +4,17 @@ VERSION="1.1.0" CATEGORY="games" SHORT_DESC="Tetris game in javascript" +TARBALL="JsTetris.js" MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://javascript.internet.com/games/Tetris.html" - -# Rules to configure and make the package. -compile_rules() -{ - mkdir -p $src - cd $src - _TARBALL=$PACKAGE-$VERSION.tar.gz - if [ ! -s ${SOURCE_REPOSITORY:-$SRC}/$_TARBALL ]; then - wget -O index.html $WEB_SITE - wget $(dirname $WEB_SITE)/JsTetris.js - tar cvzf ${SOURCE_REPOSITORY:-$SRC}/$_TARBALL index.html JsTetris.js - fi -} +WGET_URL="http://javascript.internet.com/games/$TARBALL" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/www/tetris $fs/usr/share/applications cp $src/* $fs/var/www/tetris + cp $stuff/index.html $fs/var/www/tetris chown -R 80.80 $fs/var/www/tetris cat > $fs/usr/share/applications/tetris.desktop < + + + +JsTetris - javascript tetris game + + + + + +
+
+
+

JsTetris 1.1.0

+ +
+
+
+
+
+
+
+
Game Over
+
+ + + + + + + + + + + + + + + + + + + + + +
Level:1
Score:0
Lines:0
APM:0
Time:0
+
+
+
+
+
+ Help x +
+
+ Controllers:
+ up - rotate
+ down - move down
+ left - move left
+ right - move right
+ space - fall to the bottom
+ n - new game
+ r - reset
+
+ Rules:
+ 1) Puzzle speed = 80+700/level miliseconds, the smaller value the faster puzzle falls
+ 2) If puzzles created in current level >= 10+level*2 then increase level
+ 3) After puzzle falling score is increased by 1000*level*linesRemoved
+ 4) Each "down" action increases score by 5+level (pressing space counts as multiple down actions) +
+
+
+
+ Highscores x +
+
+
+
+ Note: these scores are kept in cookies, they are only visible to your computer, other players that visit this page see their own scores. +
+
+
+ +
+ + + + + + + + + + \ No newline at end of file