Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Balatro: rearrange cards and Jokers as in the game
Mason363fe7c60b6789f
diff --git a/docs/play.md b/docs/play.mdindex ee7bd8d1..945ce8f8 100644--- a/docs/play.md+++ b/docs/play.md@@ -190,7 +190,7 @@ Don't floor it the whole way: too much gas flips the car.| **EXE** | Play hand || **⌫** | Discard || **Shift** | Sort by rank or suit |-| **Alpha + Left / Right** | Move a Joker or a card |+| **Alpha** | Pick up a card or Joker to move it with Left / Right, then OK || **Toolbox** / **Var** | Run info / your deck || **Back** | Options |diff --git a/games/balatro/README.md b/games/balatro/README.mdindex 20cb23c0..58e98f30 100644--- a/games/balatro/README.md+++ b/games/balatro/README.md@@ -55,7 +55,7 @@| EXE | Play Hand || ⌫ | Discard || shift | Sort the hand by rank or by suit |-| alpha + left / right | Move a Joker or a card |+| alpha | Pick up a card, Joker or consumable to move it: left / right carry it, OK puts it down || toolbox | Run Info (poker hands, blinds, vouchers) || var | View your deck || Hold OK or EXE | Speed up scoring |diff --git a/games/balatro/lang/fr.txt b/games/balatro/lang/fr.txtindex de20fa55..a47e6c51 100644--- a/games/balatro/lang/fr.txt+++ b/games/balatro/lang/fr.txt@@ -633,7 +633,7 @@ Wins \004 Victoires \004Seed \004 Graine \004CONTINUE CONTINUERBack Retour-\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 + \004left/right\020 move a Joker or card\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win! \004Flèches\020 aller entre cartes, Jokers et boutons\n\004OK\020 choisir une carte, ou prendre un Joker/objet\n puis \006Vendre\020, \003Utiliser\020, \005Acheter\020...\n\004EXE\020 \002Jouer la main\020 \004DEL\020 \003Défausser\020\n\004shift\020 trier la main par valeur ou couleur\n\004alpha\020 + \004gauche/droite\020 déplacer un Joker ou une carte\n\004Boîte à outils\020 Infos partie \004var\020 voir le jeu\n\004Retour\020 retour / Options \004Accueil\020 sauver, quitter\nMaintiens \004OK\020 ou \004EXE\020 pour accélérer le score.\n\nJoue des mains de poker : score = \002Jetons\020 x \003Multi\020.\nBats le score de chaque Blind avant d'être\nà court de mains. Achète des Jokers en boutique\net bats la Blind de boss de l'Ante 8 pour gagner !+\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 pick up a card or Joker to move it,\n \004left/right\020 to carry it, \004OK\020 to put it down\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win! \004Flèches\020 aller entre cartes, Jokers et boutons\n\004OK\020 choisir une carte, ou prendre un Joker/objet\n puis \006Vendre\020, \003Utiliser\020, \005Acheter\020...\n\004EXE\020 \002Jouer la main\020 \004DEL\020 \003Défausser\020\n\004shift\020 trier la main par valeur ou couleur\n\004alpha\020 prendre une carte ou un Joker,\n \004gauche/droite\020 déplacer, \004OK\020 poser\n\004Boîte à outils\020 Infos partie \004var\020 voir le jeu\n\004Retour\020 retour / Options \004Accueil\020 sauver, quitter\nMaintiens \004OK\020 ou \004EXE\020 pour accélérer le score.\n\nJoue des mains de poker : score = \002Jetons\020 x \003Multi\020.\nBats le score de chaque Blind avant d'être\nà court de mains. Achète des Jokers en boutique\net bats la Blind de boss de l'Ante 8 pour gagner !How to play Comment jouerCredits CréditsInspired by \004Balatro\020 by LocalThunk.\nNot affiliated with LocalThunk or Playstack.\n\nCard, Joker and interface art adapted\nfrom Balatro by LocalThunk.\nRules and card texts follow the game.\nFont: \004m6x11\020 by Daniel Linssen.\n\nMade by \004Mason Chen\020 as part of NumPlay.\n\nPlease support the original game! Inspiré de \004Balatro\020 de LocalThunk.\nSans lien avec LocalThunk ni Playstack.\n\nImages des cartes, Jokers et interface\nadaptées de Balatro de LocalThunk.\nRègles et textes des cartes comme le jeu.\nPolice : \004m6x11\020 de Daniel Linssen.\n\nFait par \004Mason Chen\020 pour NumPlay.\n\nSoutiens le jeu original !@@ -761,3 +761,5 @@ Three of a Kind BrelanTwo Pair Double pairePair PaireHigh Card Carte haute+move déplacer+put down poserdiff --git a/games/balatro/lang/zh.txt b/games/balatro/lang/zh.txtindex aa61e870..16a143e8 100644--- a/games/balatro/lang/zh.txt+++ b/games/balatro/lang/zh.txt@@ -634,7 +634,7 @@ Wins \004 胜场 \004Seed \004 种子 \004CONTINUE 继续Back 返回-\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 + \004left/right\020 move a Joker or card\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win! \004方向键\020 在牌、小丑牌和选项间移动\n\004OK\020 选择牌,或选中小丑牌/物品后\n 选择\006出售\020、\003使用\020、\005购买\020等\n\004EXE\020 \002出牌\020 \004DEL\020 \003弃牌\020\n\004shift\020 按点数或花色整理手牌\n\004alpha\020 + \004左/右\020 移动小丑牌或牌\n\004工具箱\020 牌局信息 \004var\020 查看牌组\n\004返回\020 返回/选项 \004主页\020 保存并退出\n按住\004OK\020或\004EXE\020可加快计分\n\n打出扑克牌型:得分 = \002筹码\020 x \003倍率\020\n在出牌次数用完前达到每个盲注的分数\n在商店里购买小丑牌\n击败第8底注的Boss盲注即可获胜!+\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 pick up a card or Joker to move it,\n \004left/right\020 to carry it, \004OK\020 to put it down\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win! \004方向键\020 在牌、小丑牌和选项间移动\n\004OK\020 选择牌,或选中小丑牌/物品后\n 选择\006出售\020、\003使用\020、\005购买\020等\n\004EXE\020 \002出牌\020 \004DEL\020 \003弃牌\020\n\004shift\020 按点数或花色整理手牌\n\004alpha\020 拿起一张牌或小丑牌,\n \004左/右\020 移动它,\004OK\020 放下\n\004工具箱\020 牌局信息 \004var\020 查看牌组\n\004返回\020 返回/选项 \004主页\020 保存并退出\n按住\004OK\020或\004EXE\020可加快计分\n\n打出扑克牌型:得分 = \002筹码\020 x \003倍率\020\n在出牌次数用完前达到每个盲注的分数\n在商店里购买小丑牌\n击败第8底注的Boss盲注即可获胜!How to play 玩法说明Credits 制作者Inspired by \004Balatro\020 by LocalThunk.\nNot affiliated with LocalThunk or Playstack.\n\nCard, Joker and interface art adapted\nfrom Balatro by LocalThunk.\nRules and card texts follow the game.\nFont: \004m6x11\020 by Daniel Linssen.\n\nMade by \004Mason Chen\020 as part of NumPlay.\n\nPlease support the original game! 灵感来自LocalThunk的\004Balatro\020。\n与LocalThunk及Playstack无关。\n\n卡牌、小丑牌和界面美术\n改编自LocalThunk的Balatro。\n规则和卡牌说明同原版。\n字体:Daniel Linssen的\004m6x11\020。\n\n由\004Mason Chen\020为NumPlay制作。\n\n请购买原版游戏!@@ -762,3 +762,5 @@ Three of a Kind 三条Two Pair 两对Pair 对子High Card 高牌+move 移动+put down 放下diff --git a/games/balatro/src/game.c b/games/balatro/src/game.cindex a8dc4d02..c7c86644 100644--- a/games/balatro/src/game.c+++ b/games/balatro/src/game.c@@ -1446,6 +1446,16 @@ void move_joker(int from, int to) {R.jokers[to] = t;}+void move_cons(int from, int to) {+ if (from < 0 || to < 0 || from >= R.ncons || to >= R.ncons || from == to) return;+ cons_t t = R.cons[from];+ if (from < to)+ for (int i = from; i < to; i++) R.cons[i] = R.cons[i + 1];+ else+ for (int i = from; i > to; i--) R.cons[i] = R.cons[i - 1];+ R.cons[to] = t;+}+void move_hand_card(int from, int to) {if (from < 0 || to < 0 || from >= R.nhand || to >= R.nhand || from == to) return;uint8_t c = R.hand[from], s = R.sel[from];diff --git a/games/balatro/src/game.h b/games/balatro/src/game.hindex 1fbb41f6..9ed1f092 100644--- a/games/balatro/src/game.h+++ b/games/balatro/src/game.h@@ -222,6 +222,7 @@ int use_cons(int idx); /* 0 if it cannot be used now */int cons_can_use(int idx, int from_pack, int id);void move_joker(int from, int to);void move_hand_card(int from, int to);+void move_cons(int from, int to);void continue_endless(void);/* joker engine (jokers.c) */diff --git a/games/balatro/src/main.c b/games/balatro/src/main.cindex 9e1bcd82..d98011a6 100644--- a/games/balatro/src/main.c+++ b/games/balatro/src/main.c@@ -65,6 +65,7 @@ static int deny_t; /* "can't" feedback */enum { Z_HAND = 1, Z_JOKERS, Z_CONS, Z_BTN, Z_DECK, Z_SHOP, Z_BOTTOM, Z_SHOPBTN, Z_PACK, Z_SKIP };static int zone = Z_HAND, zi;static int focus_time, last_zone, last_zi; /* how long the focus stayed put */+int moving; /* the card in focus picked up to be moved (ui.c draws it) */extern void layout_cards(int dt, int show_hand, int hand_y);extern void draw_jokers_row(int focus_j, int focus_c, int sel_j, int sel_c);@@ -217,7 +218,7 @@ static void draw_setup(void) {}static const char help_lines[] =- T("\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 + \004left/right\020 move a Joker or card\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win!");+ T("\004Arrows\020 move between cards, Jokers, buttons\n\004OK\020 select a card, or pick a Joker/item and\n choose \006Sell\020, \003Use\020, \005Buy\020...\n\004EXE\020 \002Play Hand\020 \004DEL\020 \003Discard\020\n\004shift\020 sort the hand by rank or suit\n\004alpha\020 pick up a card or Joker to move it,\n \004left/right\020 to carry it, \004OK\020 to put it down\n\004toolbox\020 Run Info \004var\020 view deck\n\004back\020 back / Options \004home\020 save, quit\nHold \004OK\020 or \004EXE\020 to speed up scoring.\n\nPlay poker hands: score = \002Chips\020 x \003Mult\020.\nBeat each Blind's score before your\nhands run out. Buy Jokers in the shop\nand beat the Ante 8 Boss Blind to win!");static void draw_help(void) {big_panel(10, 6, 300, 228);@@ -414,7 +415,7 @@ static void round_buttons(int show) {}static void draw_focus_tooltip(void) {- if (ui_busy()) return;+ if (ui_busy() || moving) return;if (zone == Z_JOKERS && zi < V.njokers && menu_open < 0) {vitem_t *v = &V.jokers[zi];if (v->flags & JF_DOWN) return;@@ -552,6 +553,15 @@ static void move_focused(int dir) {zi = to;autosave();}+ } else if (zone == Z_CONS) {+ int to = zi + dir;+ if (to >= 0 && to < R.ncons) {+ move_cons(zi, to);+ vitem_t t = V.cons[zi];+ V.cons[zi] = V.cons[to], V.cons[to] = t;+ zi = to;+ autosave();+ }} else if (zone == Z_HAND) {int to = zi + dir;if (to >= 0 && to < R.nhand) {@@ -564,6 +574,61 @@ static void move_focused(int dir) {}}+/* Rearranging, as dragging does in the game: alpha picks up the card, Joker or consumable in focus, left and right+ carry it along its row, and OK (or alpha, or Back) puts it down. Holding alpha while pressing left or right works+ too: letting go of alpha then puts it down. */+static int moved_held;+static int can_move(void) {+ if (menu_open >= 0) return 0;+ if (zone == Z_HAND) return zi < R.nhand && zi < V.nhand && R.nhand > 1;+ if (zone == Z_JOKERS) return zi < R.njokers && R.njokers > 1;+ if (zone == Z_CONS) return zi < R.ncons && R.ncons > 1;+ return 0;+}+/* 1 when it used the keys */+static int move_input(void) {+ if (moving && !can_move()) moving = 0;+ if (!moving) {+ if (!pressed[K_ALPHA] || !can_move()) return 0;+ moving = 1, moved_held = 0;+ return 1;+ }+ if (pressed[K_LEFT] || pressed[K_RIGHT]) {+ move_focused(pressed[K_LEFT] ? -1 : 1);+ if (held(K_ALPHA)) moved_held = 1;+ return 1;+ }+ if (pressed[K_OK] || pressed[K_ALPHA] || pressed[K_BACK] || pressed[K_EXE] || (moved_held && !held(K_ALPHA))) {+ moving = 0;+ return 1;+ }+ if (pressed[K_UP] || pressed[K_DOWN] || pressed[K_BACKSPACE] || pressed[K_SHIFT]) moving = 0; /* and the key does its job */+ return 0;+}++/* the key line's part for it, under the row in focus: "alpha move", or how to put the card down */+static void move_hint(int x, int y, int right) {+ const char *k = moving ? "OK" : "alpha", *what = moving ? T("put down") : T("move");+ int kw = g_textw(k, T_SMALL) + 6, w = kw + 3 + g_textw(what, F_LABEL);+ if (right) x -= w;+ keycap(x + kw / 2, y, k);+ g_text(what, x + kw + 3, y + 1, F_LABEL, C_WHITE);+}+static void move_hints(int hand_y) {+ if (overlay || ui_busy() || !(moving || can_move())) return;+ char t[8];+ if (zone == Z_HAND) move_hint(HAND_X + HAND_W, hand_y + CH + 2, 1);+ else if (zone == Z_JOKERS) {+ char *o = fmt_int(t, R.njokers);+ *o++ = '/', fmt_int(o, joker_slots());+ move_hint(JOKER_X + g_textw(t, F_LABEL) + 6, ROW_Y + CH + 3, 0);+ } else if (zone == Z_CONS) {+ char *o = fmt_int(t, R.ncons);+ *o++ = '/', fmt_int(o, cons_slots());+ move_hint(CONS_X + CONS_W - g_textw(t, F_LABEL) - 6, ROW_Y + CH + 3, 1);+ }+}+static void do_sort(int by_suit) {R.sort_suit = (uint8_t)by_suit;sort_hand(R.sort_suit);@@ -578,10 +643,7 @@ static void round_input(void) {menu_input();return;}- if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT])) {- move_focused(pressed[K_LEFT] ? -1 : 1);- return;- }+ if (move_input()) return;if (pressed[K_EXE]) {if (!play_hand()) deny();else zone = Z_HAND, autosave();@@ -672,6 +734,7 @@ static void draw_round(int dt, int show_buttons) {fmt_int(o, hand_size());g_text(t, HAND_X + HAND_W / 2, HAND_Y + CH + 3, F_LABEL | T_CENTER, C_WHITE);if (show_buttons) round_buttons(!ui_busy() || V.nplay == 0);+ move_hints(HAND_Y);/* the selected hand, shown in the hand box before playing it */if (!ui_busy() && R.phase == PH_ROUND) {int h = preview_hand();@@ -713,6 +776,7 @@ static void draw_blind_select(int dt) {draw_sidebar();draw_jokers_row(zone == Z_JOKERS ? zi : -1, zone == Z_CONS ? zi : -1, zone == Z_JOKERS ? menu_open : -1,zone == Z_CONS ? menu_open : -1);+ move_hints(HAND_Y);int kinds[3];bs_buttons(kinds);int tip_tag = -1, tip_x = 0, tip_y = 0;@@ -782,10 +846,7 @@ static void blind_select_input(void) {menu_input();return;}- if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT])) {- move_focused(pressed[K_LEFT] ? -1 : 1);- return;- }+ if (move_input()) return;if (row_nav()) return;if (pressed[K_DOWN] || pressed[K_BACK]) zone = Z_BTN, zi = 0;if (pressed[K_OK]) menu_open = zi, menu_sel = 0;@@ -931,6 +992,7 @@ static void draw_shop(int dt) {draw_sidebar();int fj = zone == Z_JOKERS ? zi : -1, fc = zone == Z_CONS ? zi : -1;draw_jokers_row(fj, fc, zone == Z_JOKERS ? menu_open : -1, zone == Z_CONS ? menu_open : -1);+ move_hints(HAND_Y);int x = SHOP_X, y = SHOP_Y, w = SHOP_W;g_rrect(x - 1, y - 1, w + 2, 180, 7, HEXC(0x1A2224));g_rrect(x, y, w, 178, 6, C_RED);@@ -1032,10 +1094,7 @@ static void shop_input(void) {}return;}- if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT]) && zone == Z_JOKERS) {- move_focused(pressed[K_LEFT] ? -1 : 1);- return;- }+ if (move_input()) return;if (pressed[K_BACK]) {if (zone != Z_SHOPBTN) zone = Z_SHOPBTN, zi = 0;else overlay = OV_OPTIONS, ov_sel = 0;@@ -1142,6 +1201,7 @@ static void draw_pack(int dt) {g_text(t, bx + 6, by + 17, F_LABEL, C_WHITE);button(bx + bw - 42, by + 6, 36, 16, C_RED, T("Skip"), F_LABEL, zone == Z_SKIP, 1);if (with_hand) draw_hand_cards(hand_focus());+ move_hints(HAND_Y + 18);draw_menu();draw_popups();if (!ui_busy() && menu_open < 0) {@@ -1175,6 +1235,7 @@ static void pack_input(void) {menu_input();return;}+ if (move_input()) return;if (pressed[K_BACK]) {zone = Z_SKIP;return;@@ -1195,10 +1256,6 @@ static void pack_input(void) {}break;case Z_HAND:- if (held(K_ALPHA) && (pressed[K_LEFT] || pressed[K_RIGHT])) {- move_focused(pressed[K_LEFT] ? -1 : 1);- break;- }if (pressed[K_LEFT] && zi > 0) zi--;if (pressed[K_RIGHT] && zi < V.nhand - 1) zi++;if (pressed[K_UP]) zone = Z_SKIP;@@ -1543,6 +1600,7 @@ int main(void) {cash_t = 0;last_screen = screen;}+ if (overlay) moving = 0;g_begin();g_bg(1, 0);if (screen == SCR_TITLE) {diff --git a/games/balatro/src/ui.c b/games/balatro/src/ui.cindex 2f4394fa..5efb5ce8 100644--- a/games/balatro/src/ui.c+++ b/games/balatro/src/ui.c@@ -620,6 +620,13 @@ void layout_cards(int dt, int show_hand, int hand_y) {int focus_zone = 0, focus_idx = 0, focus_shake;enum { FZ_HAND = 1, FZ_JOKERS, FZ_CONS };+extern int moving; /* main.c: the card in focus picked up, to be moved */+/* the card picked up: higher, outlined in white, its shadow left on the row */+static void lifted(int x, int y, int lift) {+ g_shade(x, y, CW, CH, 3, 12);+ g_rrect(x - 2, y - lift - 2, CW + 4, CH + 4, 4, C_WHITE);+}+void draw_jokers_row(int focus_j, int focus_c, int sel_j, int sel_c) {char t[8];g_shade(JOKER_X - 2, ROW_Y - 2, JOKER_W + 4, CH + 4, 5, 9);@@ -641,6 +648,7 @@ void draw_jokers_row(int focus_j, int focus_c, int sel_j, int sel_c) {if (f != pass) continue;int lift = f ? 3 : 0;if (i == sel_j) lift = 7;+ if (f && moving) lift = 10, lifted((int)j->x, (int)j->y, lift);int fl = (j->flags & JF_DEBUFF) ? FX_DIM : 0;if (j->flags & JF_DOWN) fl |= 0x100;int sx = f ? focus_shake : 0;@@ -654,6 +662,7 @@ void draw_jokers_row(int focus_j, int focus_c, int sel_j, int sel_c) {if (f != pass) continue;int lift = f ? 3 : 0;if (i == sel_c) lift = 7;+ if (f && moving) lift = 10, lifted((int)c->x, (int)c->y, lift);draw_cons_sprite(c->id, c->ed, (int)c->x + (f ? focus_shake : 0), (int)c->y - lift, juice_scale(c->juice), 0);}}@@ -665,7 +674,8 @@ void draw_hand_cards(int focus_h) {if (f != pass) continue;vcard_t *c = &V.cards[V.hand[i]];int x = (int)c->x + (f ? focus_shake : 0), y = (int)c->y - (f ? 4 : 0), sc = juice_scale(c->juice);- if (f && sc == 256 && !V.nplay) g_rrect(x - 2, y - 2, CW + 4, CH + 4, 4, C_FOCUS); /* the D-pad cursor */+ if (f && moving) lifted(x, (int)c->y, 12), y = (int)c->y - 12;+ else if (f && sc == 256 && !V.nplay) g_rrect(x - 2, y - 2, CW + 4, CH + 4, 4, C_FOCUS); /* the D-pad cursor */draw_card(c, x, y, sc, f);}}