all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: gamegrid.el and some games
Date: Fri, 13 Sep 2002 16:16:02 +0200	[thread overview]
Message-ID: <m3u1kut2eh.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: E17po6M-0000Fd-00@pot.cnuce.cnr.it

Francesco Potorti` <pot@gnu.org> writes:

> I am resending here, hoping to find a bigger audience, a message I had
> sent (by error) to emacs-pretest-bug.
>
> 1) why
>    (featurep 'xpm) => nil
>    even though in config.h I have #define HAVE_XPM 1 ?  Is this a bug?
>    Or maybe it is a Xemacs thing?

It is an XEmacs thing. To test for XPM in Emacs you can use. 

(image-type-available-p 'xpm)

I don't know if it is depreciated to use this function, though. It is
not even mentioned in the Elisp Reference of Emacs 21.2.

I have send a patch some time ago, which enables XPM (and PBM) for
gamegrid. (BTW what happend to this patch?) It uses `display-images-p'
and `find-image' to get the appropriate graphics.

[...]
>    As you can see, foreground and background are set to the same
>    colour, thus preventing the possibility of anything different
>    from a coloured space.  Is this intentional or a bug?  What I
>    would have done is to have a function with a third optional
>    argument for the case when one wants something different from a
>    square.  For example, both in pong.el and tetris.el, the "dot"
>    should naturally be an asterisk.
[...]

I guess gamegrid is mainly supposed to provide simple grids,
i.e. colored squares. The option to use characters is -- I guess --
intended only as a fallback on ttys without color. OTOH: it allows to
utilize arbitrary XPM images ... A simple optional third argument
won't do AFAICS, because gamegrid is supposed to work through the
definition of a spec list for all cases.

You can get a non-colored asterisk for pong by changing the specs for
the ball like this:

(setq pong-ball-options
  '(((glyph colorize)
     (t ?\*))
    ((color-x emacs-tty)
     ;;       ^^^^^^^^                                                                            
     (mono-x grid-x)
     (color-tty emacs-tty))
    ;;          ^^^^^^^^^                                                                         
    (((glyph color-x) [1 0 0])
     (color-tty pong-ball-color))))

    -- Oliver

-- 
27 Fructidor an 210 de la Révolution
Liberté, Egalité, Fraternité!

  parent reply	other threads:[~2002-09-13 14:16 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13 10:55 gamegrid.el and some games Francesco Potorti`
     [not found] ` <87sn0eglkp.fsf@bundalo.shootybangbang.com>
2002-09-13 13:09   ` Francesco Potorti`
2002-09-14 17:35     ` Richard Stallman
2002-09-13 14:16 ` Oliver Scholz [this message]
2002-09-13 17:32   ` Francesco Potorti`
2002-09-13 23:11     ` Oliver Scholz
2002-09-14  1:03       ` Alex Schroeder
2002-09-15  1:50         ` Richard Stallman
2002-09-16 12:11           ` Oliver Scholz
2002-09-19 15:22             ` Luke A. Olbrish
2002-09-20  3:44               ` Richard Stallman
2002-09-15  1:51       ` Richard Stallman
2002-09-16 11:58         ` Oliver Scholz
2002-09-16 19:27           ` Richard Stallman
2002-09-16 12:01         ` Oliver Scholz
2002-09-16 19:27           ` Richard Stallman
2002-09-16 23:13             ` alkibiades
2002-09-17 15:53               ` Richard Stallman
2002-09-17 16:12                 ` Gerd Moellmann
2002-09-18 15:04                 ` Oliver Scholz
2002-09-18 16:03                   ` Oliver Scholz
2002-09-19 11:45                   ` Eli Zaretskii
2002-09-19 15:17                   ` Richard Stallman
2002-09-20  0:26                     ` Oliver Scholz
2002-09-20  9:40                       ` Miles Bader
2002-09-20 12:01                         ` Oliver Scholz
2002-09-20 10:12                       ` Francesco Potorti`
2002-09-20  1:18                     ` Miles Bader
2002-09-20  9:20                       ` rms
2002-09-20 11:41                         ` Oliver Scholz
2002-09-20  6:54                     ` Gerd Moellmann
2002-09-14 17:35 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3u1kut2eh.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.