From 777bff1b75983760055879c6cfebc63c40dfb33f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 11 Nov 2009 16:46:57 +0700 Subject: [PATCH 1/5] seem to fix it for emacs23 Signed-off-by: Gwenhael Le Moine --- emstar.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emstar.el b/emstar.el index a923ee3..fb654c3 100644 --- a/emstar.el +++ b/emstar.el @@ -97,7 +97,7 @@ as saved in the playerfile." :group 'emstar :type 'character) -(defcustom emstar-stopper-char ?H +(defcustom emstar-stopper-char ?s "*Defines the character used to diplay the stopper." :group 'emstar :type 'character) @@ -107,7 +107,7 @@ as saved in the playerfile." :group 'emstar :type 'character) -(defface emstar-eater-face +(defface emstar-eater-face ?e '((t (:foreground "green" :weight bold))) "*Face used display the eater in emstar game." @@ -168,6 +168,7 @@ as saved in the playerfile." "Number of gifts collected. Buffer-local in emstar-mode.") (defvar emstar-total-gifts 0 "Total number of gifts. Buffer-local in emstar-mode.") + (defvar emstar-level nil "Number of current level. Buffer-local in emstar games.") (defvar emstar-moves nil From b146e1e21b4c8f8203f0438aaa7fee90c1fbcb4c Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 11 Nov 2009 16:50:59 +0700 Subject: [PATCH 2/5] update copyright ; add "documentation" --- emstar.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emstar.el b/emstar.el index fb654c3..ffb08c3 100644 --- a/emstar.el +++ b/emstar.el @@ -1,6 +1,6 @@ ;;; emstar.el --- Emstar Game -;; Copyright (C) 2008 Gwenhael Le Moine +;; Copyright © 2008, 2009 Gwenhael Le Moine ;; Author: Gwenhael Le Moine ;; Keywords: games @@ -25,6 +25,8 @@ ;; Play Emstar in emacs. ;; Heavily based on emacs-sokoban +;; (require 'emstar) + ;;; Code: (require 'cl) From 852ebea8b84c71ef5282d26825fb2413e20a956a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 26 May 2010 11:46:39 +0700 Subject: [PATCH 3/5] should not be cutomized --- emstar.el | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/emstar.el b/emstar.el index ffb08c3..704b0c4 100644 --- a/emstar.el +++ b/emstar.el @@ -89,27 +89,32 @@ as saved in the playerfile." :group 'emstar :type 'integer) -(defcustom emstar-eater-char ?@ - "*Defines the character used to diplay the eater." - :group 'emstar - :type 'character) +(defvar emstar-eater-char ?@) +(defvar emstar-gift-char ?*) +(defvar emstar-stopper-char ?H) +(defvar emstar-wall-char ?#) -(defcustom emstar-gift-char ?* - "*Defines the character used to diplay the gifts." - :group 'emstar - :type 'character) +;; (defcustom emstar-eater-char ?@ +;; "*Defines the character used to diplay the eater." +;; :group 'emstar +;; :type 'character) -(defcustom emstar-stopper-char ?s - "*Defines the character used to diplay the stopper." - :group 'emstar - :type 'character) +;; (defcustom emstar-gift-char ?* +;; "*Defines the character used to diplay the gifts." +;; :group 'emstar +;; :type 'character) -(defcustom emstar-wall-char ?# - "*Defines the character used to diplay the walls." - :group 'emstar - :type 'character) +;; (defcustom emstar-stopper-char ?H +;; "*Defines the character used to diplay the stopper." +;; :group 'emstar +;; :type 'character) -(defface emstar-eater-face ?e +;; (defcustom emstar-wall-char ?# +;; "*Defines the character used to diplay the walls." +;; :group 'emstar +;; :type 'character) + +(defface emstar-eater-face '((t (:foreground "green" :weight bold))) "*Face used display the eater in emstar game." @@ -350,7 +355,7 @@ If requested level doesn't exist, load `emstar-start-level'." (defun emstar-move-here () "Move player to point. -Move player char to point, repaint pits and evaluate game status." +Move player char to point and evaluate game status." (interactive) (setq emstar-pos (point)) (emstar-paint (if (equal emstar-selected emstar-eater) From 3a033789ea927f07857e7ce054d892775629684d Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 11 Jun 2010 13:30:54 +0700 Subject: [PATCH 4/5] update copyright --- emstar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emstar.el b/emstar.el index 704b0c4..2ec98d5 100644 --- a/emstar.el +++ b/emstar.el @@ -1,6 +1,6 @@ ;;; emstar.el --- Emstar Game -;; Copyright © 2008, 2009 Gwenhael Le Moine +;; Copyright © Gwenhael Le Moine ;; Author: Gwenhael Le Moine ;; Keywords: games From c6b59cc3b08b1eb182f448e86a9d2c260cec887b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 22 Jun 2010 12:55:08 +0700 Subject: [PATCH 5/5] walls are black --- emstar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emstar.el b/emstar.el index 2ec98d5..3af3858 100644 --- a/emstar.el +++ b/emstar.el @@ -133,7 +133,7 @@ as saved in the playerfile." :group 'emstar) (defface emstar-wall-face - '((t (:foreground "blue"))) + '((t (:foreground "black"))) "*Face used display walls in emstar game." :group 'emstar)