[gcompris-devel] Re: Maze plugin enhancements (and cleanup)

Bruno Coudoin bruno.coudoin at free.fr
Thu Nov 7 02:24:04 UTC 2002


Unfortunatly, no vacation for bruno :(
I have just been very busy for my work.

I have tested your patch and it works fine. This is definitly a great
new feature for gcompris.

I did a small change on my home PC with great effect by changing the
background in 3D view with a half sky/half ground picture made rapidly
with gimp. This make a good effect but then changing the view angle too
much can put the wall in the sky ;)

For the shortkey, I added 'space' as a toggle 2D/3D which makes it
easier for use. Ideally, there could be a toggle button in the main
area.

Testing it on my childs (6 and 9), it is too hard for them. It is hard
to easily discover on which side we are looking at and they lack the
patience and switch to 2D.
Perhaps we could put some indices on the floor like a small colored
round in the 2D and 3D view. This could be put on places where there is
2 or more direction choices. 
Another approach is to display one way or another the direction we look
at in the 2D view. What do you think ?

I am wondering if we should not keep the 2D version where it is in
gcompris and adding the 3D version in the fun menu beside the left/right
hands activity.
My idea here is to say 2D is to learn arrow keys in discovering the
computer. 3D is more space orientation activity. Then in the 3D game,
the 2D view can be displayed but you cannot move in it.

Bruno.

Le jeu 07/11/2002 à 09:07, Christof Petig a écrit :
> Christof Petig wrote:
> > East (where the exit is) walls are white, west walls are dark grey. The 
> > exit is a green wall (you can walk through it). That's all, try it.
> 
> I found a small bug which is fixed by the following patch: The right 
> wall had the wrong color.
> 
>     Christof
> 
> PS: Silence on the list, no changes in CVS, is Bruno on holiday?
> ----
> 

> --- maze.c.sent	2002-11-06 23:03:33.000000000 +0100
> +++ maze.c	2002-11-06 23:04:36.000000000 +0100
> @@ -1091,7 +1091,7 @@
>     }
>     if (i<=dxr) // wall found
>     {  struct Trapez t=Trapez_hide(wall_coords(sp,vector_ctor(i,dy),left_wall),xmin,xmax);
> -      draw_Trapez(threedgroup,t,is_exit?"green":color(left_wall?TURN_LEFT(viewdir):viewdir),"black");
> +      draw_Trapez(threedgroup,t,is_exit?"green":color(left_wall?TURN_RIGHT(viewdir):viewdir),"black");
>        // draw right of it
>        if (t.x_right+1<xmax)
>           Display(position,viewdir,sp,t.x_right+1,xmax,dy,left_wall);






More information about the Gcompris-devel mailing list