Re: how to compile individually same-game?



I think that those arguments are the offsets into the image file (in X by frame number, in Y by 'color') from which to copy from (the documentation for gdk_pixbuf_composite agrees). If you look at the image (say http://git.gnome.org/cgit/gnome-games/plain/same-gnome/planets.png), you'll see what I mean.... the subimages are laid out as each frame of an animation in the X direction and by color in Y.

But I could be wrong, I haven't looked at it since the summer either.

On Sep 30, 2009, at 18:14, Jason D. Clinton wrote:

I haven't look at it in a long time... I could look at it for you but first I would like to know what this is for. Same Gnome is scheduled to be replaced with a rewritten version during 2.29.x.

2009/9/30 黄登辉 <huangdenghui gmail com>
Hi
  
   Please some experts in samegame program give me some tips about this code segment.

      gdk_pixbuf_composite (file_pixbuf, tile, 1, 1, ftile_size,
                ftile_size, 1.0 - m * ftile_size,
                1.0 - n * ftile_size,
                1.0, 1.0, GDK_INTERP_TILES, 255);

  My understanding is this function copy a ball's pixels into tile from file_pixbuf.

But i don't understand the meaning of two parameters 1.0-m*ftile_size and 1.0 -n*ftile_size.






2009/9/25 黄登辉 <huangdenghui gmail com>
Thanks. I get it done.


2009/9/25 Vincent Povirk <madewokherd+8cd9 gmail com>

Configure with the --with-games switch:
$ ./configure --with-games=same-gnome

Debug symbols are always included, unless you remove them yourself
using the strip command.

On Fri, Sep 25, 2009 at 8:20 AM, 黄登辉 <huangdenghui gmail com> wrote:
> Hi
>     I am interest in same-game. So i want to debug this program in order to
> be familiar with its inside mechanism.But I met a problem that how to
> compile individually same-game with debug information.
>
>  Please some experts on this tell me some solutions? Thanks in advance.
>
> _______________________________________________
> Games-list mailing list
> Games-list gnome org
> http://mail.gnome.org/mailman/listinfo/games-list
>
>



--
Vincent Povirk



_______________________________________________
Games-list mailing list
Games-list gnome org
http://mail.gnome.org/mailman/listinfo/games-list


_______________________________________________
Games-list mailing list
Games-list gnome org
http://mail.gnome.org/mailman/listinfo/games-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]