X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmain.c;h=2db25f2eecdc237fa2b245c3c762e262836bd6d9;hp=0c9d1f18ec99041ea7205fc22e8297175b13ea15;hb=b7d31643c9c84104fb3ebef778e545928610ff65;hpb=a5a03e15b395ba1942c180d1cd0d3a4f43b87f56 diff --git a/src/main.c b/src/main.c index 0c9d1f18..2db25f2e 100644 --- a/src/main.c +++ b/src/main.c @@ -16,6 +16,7 @@ #include "init.h" #include "events.h" #include "sound.h" +#include "joystick.h" Display *display; int screen; @@ -23,7 +24,11 @@ Window window; GC gc, clip_gc[NUM_PIXMAPS]; Pixmap pix[NUM_PIXMAPS]; Pixmap clipmask[NUM_PIXMAPS]; + +#ifdef XPM_INCLUDE_FILE XpmAttributes xpm_att[NUM_PICTURES]; +#endif + Drawable drawto, drawto_field, backbuffer; Colormap cmap; @@ -75,9 +80,12 @@ long Elementeigenschaften[MAX_ELEMENTS]; int level_nr, leveldir_nr, num_leveldirs; int lev_fieldx,lev_fieldy, scroll_x,scroll_y; -int LevelSolved,GameOver, JX,JY, ZX,ZY; +int JX,JY, ZX,ZY, ExitX,ExitY; +int PlayerMovDir, PlayerFrame, PlayerPushing; +int PlayerGone,LevelSolved,GameOver; int FrameCounter,TimeFrames,TimeLeft,Score; -int Gems,SokobanFields,Lights,Dynamite,Key[4],MampferNr; +int Gems,SokobanFields,Lights,Friends; +int Dynamite,Key[4],MampferNr; int DynaBombCount, DynaBombSize, DynaBombsLeft, DynaBombXL; int SiebAktiv;