| Server IP : 217.160.0.212 / Your IP : 216.73.217.5 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/play/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
#@42 Non-nil means use glyphs when available.
(defvar gamegrid-use-glyphs t (#$ . 84))
(make-variable-buffer-local 'gamegrid-use-glyphs)
#@41 Non-nil means use color when available.
(defvar gamegrid-use-color t (#$ . 222))
(make-variable-buffer-local 'gamegrid-use-color)
#@34 Name of the font used in X mode.
(defvar gamegrid-font "-*-courier-medium-r-*-*-*-140-100-75-*-*-iso8859-*" (#$ . 358))
(make-variable-buffer-local 'gamegrid-font)
#@41 Indicates the face to use as a default.
(defvar gamegrid-face nil (#$ . 528))
(make-variable-buffer-local 'gamegrid-face)
(defvar gamegrid-display-options nil nil)
(make-variable-buffer-local 'gamegrid-display-options)
(defvar gamegrid-buffer-width 0 nil)
(make-variable-buffer-local 'gamegrid-buffer-width)
(defvar gamegrid-buffer-height 0 nil)
(make-variable-buffer-local 'gamegrid-buffer-height)
(defvar gamegrid-blank 0 nil)
(make-variable-buffer-local 'gamegrid-blank)
(defvar gamegrid-timer nil nil)
(make-variable-buffer-local 'gamegrid-timer)
(defvar gamegrid-display-mode nil nil)
(make-variable-buffer-local 'gamegrid-display-mode)
(defvar gamegrid-display-table nil nil)
(make-variable-buffer-local 'gamegrid-display-table)
(defvar gamegrid-face-table nil nil)
(make-variable-buffer-local 'gamegrid-face-table)
(defvar gamegrid-buffer-start 1 nil)
(make-variable-buffer-local 'gamegrid-buffer-start)
#@32 Number of high scores to keep.
(defvar gamegrid-score-file-length 50 (#$ . 1445))
(make-variable-buffer-local 'gamegrid-score-file-length)
#@145 A directory for game scores which can't be shared.
If Emacs was built without support for shared game scores, then this
directory will be used.
(defvar gamegrid-user-score-file-directory (locate-user-emacs-file "games/") (#$ . 1591))
(defvar gamegrid-grid-x-face nil)
(defvar gamegrid-mono-x-face nil)
(defvar gamegrid-mono-tty-face nil)
#@29 Desired glyph height in mm.
(defvar gamegrid-glyph-height-mm 7.0 (#$ . 1935))
#@113 Calculate appropriate glyph size in pixels based on display resolution.
Return a multiple of 8 no less than 16.
(defalias 'gamegrid-calculate-glyph-size #[0 "\301 \203! \302 \203! \301 \303\302 !\245\211_\304\305\\\306\245!\306_\307]\207\307\207" [gamegrid-glyph-height-mm display-pixel-height display-mm-height float floor 4 8 16] 5 (#$ . 2020)])
#@53 Generate the XPM format image used for each square.
(defalias 'gamegrid-xpm #[0 "\300 \211\301\245\302_Z\303\304\305\"r\211q\210\306\307\"\216\310\311\211#c\210\312\211W\203a \211T\313c\210Z\312\211W\203@ \314\315c\266\211T\262\202. \266\312\211W\203U \314\316c\266\211T\262\202C \210\317c\266\211T\262\202 \210\310\320\321\322\"\321\323\"\321\324\"$\312\211W\203\205 \314c\266\211T\262\202s \266\312\211W\203\335 ZS\313c\210\312\211W\203\250 \314\315c\266\211T\262\202\226 \210Z\312\211W\203\277 \314\316c\266\211T\262\202\255 \266\313c\210SU\204\322 \325c\266\202\326 \326c\266\211T\262\202\210 \210\327 *\207" [gamegrid-calculate-glyph-size 8 2 generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] format "/* XPM */\nstatic char *noname[] = {\n/* width height ncolors chars_per_pixel */\n\"%s %s 3 1\",\n/* colors */\n\"+ s col1\",\n\". s col2\",\n\"- s col3\",\n/* pixels */\n" 0 "\"" nil "-" "+" "\",\n" "\"%s%s%s\",\n" make-string 45 46 43 ",\n" "\n};\n" buffer-string] 11 (#$ . 2377)])
#@49 Generate XBM format image used for each square.
(defalias 'gamegrid-xbm #[0 "\300 \211\301\245S\302_Z\303\304\305\"r\211q\210\306\307\"\216\310\311\211#c\210\312\211W\203? \313\314Z\315\"\314\316\"P!\210\317c\210\211T\262\202 \210\314\315\"\314\316\"\320\321\322C\323\302\245\324\"C#\"\320\321\322C\323 \302\245\325\"C#\"\312\211W\203\214 \313\326\327\"\327=\203 \202\200 !\210\317c\210\211T\262\202j \266\312\211W\203\277 Z\313\314\315\"\314Z\316\"P!\266\211SU\204\265 \317c\210\202\270 \330c\210\211T\262\202\217 \210\331 *\207" [gamegrid-calculate-glyph-size 4 2 generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] format "/* gamegrid XBM */\n#define gamegrid_width %s\n#define gamegrid_height %s\nstatic unsigned char gamegrid_bits[] = {\n" 0 gamegrid-insert-xbm-bits make-string 49 48 ", \n" apply concat append make-list "10" "01" logand 1 " };\n" buffer-string] 14 (#$ . 3478)])
#@263 Convert binary to hex and insert in current buffer.
STR should be a string composed of 1s and 0s and be a multiple of
8 in length. Divide it into 8 bit bytes, reverse the order of
each, convert them to hex and insert them in comma separated C
format.
(fn STR)
(defalias 'gamegrid-insert-xbm-bits #[257 "\211G\300\245\301\211W\2054 \302\300_\300_\300\\O!\303\304\"\305\306\"c\210SU\204+ \307c\210\266\211T\262\202 \207" [8 0 reverse string-to-number 2 format "0x%02x" ", "] 8 (#$ . 4470)])
#@14
(fn EVENT)
(defalias 'gamegrid-event-x #[257 "\300\301!!@\207" [posn-col-row event-end] 4 (#$ . 4978)])
(byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put gamegrid-event-x speed -1 put byte-optimizer byte-compile-inline-expand] 5)
#@14
(fn EVENT)
(defalias 'gamegrid-event-y #[257 "\300\301!!A\207" [posn-col-row event-end] 4 (#$ . 5233)])
(byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put gamegrid-event-y speed -1 put byte-optimizer byte-compile-inline-expand] 5)
#@20
(fn COLOR SHADE)
(defalias 'gamegrid-color #[514 "\300\301_!\211\302H_\303H_\304H_\305\306$\207" [floor 255 0 1 2 format "#%02x%02x%02x"] 11 (#$ . 5488)])
#@13
(fn FACE)
(defalias 'gamegrid-set-font #[257 "\205 \3011 \302\"0\207\210\303\207" [gamegrid-font (error) set-face-font nil] 4 (#$ . 5660)])
#@19
(fn FACE COLOR)
(defalias 'gamegrid-setup-face #[514 "\300\"\210\301\"\210\302!\210\303\304\"\207" [set-face-foreground set-face-background gamegrid-set-font set-face-background-pixmap nil] 5 (#$ . 5813)])
(defalias 'gamegrid-make-mono-tty-face #[0 "\300\301!\302\303\"\210\207" [make-face gamegrid-mono-tty-face set-face-inverse-video t] 4])
#@14
(fn COLOR)
(defalias 'gamegrid-make-color-tty-face #[257 "\2119\203\n \211J\202 \211\300\301\302\"!\303!\304\"\210\207" [intern format "gamegrid-color-tty-face-%s" make-face gamegrid-setup-face] 7 (#$ . 6171)])
(defalias 'gamegrid-make-grid-x-face #[0 "\300\301!\302!\210\207" [make-face gamegrid-x-border-face gamegrid-set-font] 3])
(defalias 'gamegrid-make-mono-x-face #[0 "\300\301!\302\303!\211\204 \304\305 \236\243\262\306\"\210\207" [make-face gamegrid-mono-x-face face-foreground default foreground-color frame-parameters gamegrid-setup-face] 5])
#@14
(fn COLOR)
(defalias 'gamegrid-make-color-x-face #[257 "\300\301\"\302\303\304\"!\305!\306\"\210\207" [gamegrid-color 1.0 intern format "gamegrid-color-x-face-%s" make-face gamegrid-setup-face] 7 (#$ . 6745)])
#@39
(fn DATA-SPEC-LIST COLOR-SPEC-LIST)
(defalias 'gamegrid-make-face #[514 "\303!\303!\304\267\202/ \305!\207\204 \306 \207 \204 \307 \207\310!\207\n\204- \311 \n\207\312\207" [gamegrid-grid-x-face gamegrid-mono-x-face gamegrid-mono-tty-face gamegrid-match-spec-list #s(hash-table size 5 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (color-x 12 grid-x 16 mono-x 25 color-tty 34 mono-tty 38)) gamegrid-make-color-x-face gamegrid-make-grid-x-face gamegrid-make-mono-x-face gamegrid-make-color-tty-face gamegrid-make-mono-tty-face nil] 6 (#$ . 6968)])
#@14
(fn COLOR)
(defalias 'gamegrid-colorize-glyph #[257 "\300\301\302\303\304 \305\306\307\310\311\n\312\"B\313\311\314\"B\315\311\f\316\"BE\257\301\317\303\320 \305\306\321\311\n\316\"\322\311\f\323\"\257\nD!\207" [find-image :type xpm :data gamegrid-xpm :ascent center :color-symbols "col1" gamegrid-color 0.6 "col2" 0.8 "col3" 1.0 xbm gamegrid-xbm :foreground :background 0.5] 15 (#$ . 7554)])
#@13
(fn SPEC)
(defalias 'gamegrid-match-spec #[257 "\211@A@\301=\204! <\203 >\204! 9\205\"