Server IP : 111.118.215.189 / Your IP : 3.128.31.200 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/play/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:37 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/play/snake.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'gamegrid) #@42 Non-nil means use glyphs when available. (defvar snake-use-glyphs-flag t (#$ . 573)) #@41 Non-nil means use color when available. (defvar snake-use-color-flag t (#$ . 664)) #@29 Name used for Snake buffer. (defvar snake-buffer-name "*Snake*" (#$ . 753)) #@34 Width of used portion of buffer. (defvar snake-buffer-width 30 (#$ . 835)) #@35 Height of used portion of buffer. (defvar snake-buffer-height 22 (#$ . 916)) #@24 Width of playing area. (defvar snake-width 30 (#$ . 999)) #@25 Height of playing area. (defvar snake-height 20 (#$ . 1063)) #@26 Initial length of snake. (defvar snake-initial-length 5 (#$ . 1130)) #@30 Initial X position of snake. (defvar snake-initial-x 10 (#$ . 1205)) #@30 Initial Y position of snake. (defvar snake-initial-y 10 (#$ . 1280)) #@30 Initial X velocity of snake. (defvar snake-initial-velocity-x 1 (#$ . 1355)) #@30 Initial Y velocity of snake. (defvar snake-initial-velocity-y 0 (#$ . 1438)) #@61 The default time taken for the snake to advance one square. (defvar snake-tick-period 0.2 (#$ . 1521)) #@31 Hook run upon starting Snake. (defvar snake-mode-hook nil (#$ . 1630)) #@22 X position of score. (defvar snake-score-x 0 (#$ . 1707)) #@22 Y position of score. (defvar snake-score-y snake-height (#$ . 1771)) #@31 File for holding high scores. (defvar snake-score-file "snake-scores" (#$ . 1846)) (defvar snake-blank-options '(((glyph colorize) (t 32)) ((color-x color-x) (mono-x grid-x) (color-tty color-tty)) (((glyph color-x) [0 0 0]) (color-tty "black")))) (defvar snake-snake-options '(((glyph colorize) (emacs-tty 79) (t 32)) ((color-x color-x) (mono-x mono-x) (color-tty color-tty) (mono-tty mono-tty)) (((glyph color-x) [1 1 0]) (color-tty "yellow")))) (defvar snake-dot-options '(((glyph colorize) (t 42)) ((color-x color-x) (mono-x grid-x) (color-tty color-tty)) (((glyph color-x) [1 0 0]) (color-tty "red")))) (defvar snake-border-options '(((glyph colorize) (t 43)) ((color-x color-x) (mono-x grid-x) (color-tty color-tty)) (((glyph color-x) [0.5 0.5 0.5]) (color-tty "white")))) (defvar snake-space-options '(((t 32)) nil nil)) (defconst snake-blank 0) (defconst snake-snake 1) (defconst snake-dot 2) (defconst snake-border 3) (defconst snake-space 4) (defvar snake-length 0) (defvar snake-velocity-x 1) (defvar snake-velocity-y 0) (defvar snake-positions nil) (defvar snake-cycle 0) (defvar snake-score 0) (defvar snake-paused nil) (defvar snake-moved-p nil) #@475 This queue stores the velocities requested too quickly by user. They will take effect one at a time at each clock-interval. This is necessary for proper behavior. For instance, if you are moving right, you press up and then left, you want the snake to move up just once before starting to move left. If we implemented all your keystrokes immediately, the snake would effectively never move up. Thus, we need to move it up for one turn and then start moving it leftwards. (defvar snake-velocity-queue nil (#$ . 3012)) (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\207" [make-variable-buffer-local snake-length snake-velocity-x snake-velocity-y snake-positions snake-cycle snake-score snake-paused snake-moved-p snake-velocity-queue] 2) (defvar snake-mode-map (byte-code "\301\302!\303\304\305#\210\303\306\307#\210\303\310\311#\210\303\312\313#\210\303\314\315#\210\303\316\317#\210\303\320\321#\210)\207" [map make-sparse-keymap snake-mode-map define-key "n" snake-start-game "q" snake-end-game "p" snake-pause-game [left] snake-move-left [right] snake-move-right [up] snake-move-up [down] snake-move-down] 4)) (defvar snake-null-map (byte-code "\301\302!\303\304\305#\210)\207" [map make-sparse-keymap snake-null-map define-key "n" snake-start-game] 4)) (defalias 'snake-display-options #[nil "\306\307\310\"\307\311 \nW\203T \211U\203 \f\202K U\203&