@ -1,5 +1,12 @@
- Changed: You can now change the map settings even in the Player
selection menu. (kitutou)
- Added: tileset support with random tileset selection
thanks to (thaphool) for the jungle tileset
- Added: loadable maps. (ob1kenewb)
with random map selection (kitutou)
- Changed: now the send packet option will be set for every
player directly, so if a slow player joinsit should not anymore
@ -3,7 +3,6 @@ This file will hold some Details about the Game.
A list of files and what every file is used for:
field.c:
selecting a tileset
loading maps
generating maps
drawing the field
@ -130,4 +129,23 @@ udp.c:
dns names
start/stop udp server
mapmenu.c:
map option menu
map initializing
- selects random maps
- loads random tilesets
keypinput.c:
loop for keyboard text fields
sysfunc.c:
s_delay
- waiting for some milliseconds
s_random
- returns a random number
s_gethomedir
- returns the name of the homedir used for the config file
s_getdir
- list of files and directorys
s_filterdir
- filters the list
@ -1,4 +1,4 @@
/* $Id: bomberclone.h,v 1.16 2003/05/07 21:28:12 stpohle Exp $ */
/* $Id: bomberclone.h,v 1.17 2003/05/08 14:35:48 stpohle Exp $ */
/* bomberclone.h */
#ifndef _BOMBERCLONE_H_
/* $Id: field.c,v 1.14 2003/05/07 21:28:12 stpohle Exp $ */
/* $Id: field.c,v 1.15 2003/05/08 14:35:49 stpohle Exp $ */
/* field.c - procedures which are needed to control the field */
#include <stdlib.h>
@ -49,10 +49,19 @@ draw_stone (int x, int y)
}
if (stone->frame > 0)
SDL_BlitSurface (gfx.field[FT_nothing].image, NULL, gfx.screen, &dest);
if (stone->frame > 0 || stone->type == FT_nothing) {
SDL_Rect srcbg;
SDL_BlitSurface (srcimg, &src, gfx.screen, &dest);
srcbg.w = dest.w;
srcbg.h = dest.h;
srcbg.x = (x % gfx.field[FT_nothing].frames) * gfx.block.x;
srcbg.y = (y % gfx.field[FT_nothing].frames) * gfx.block.y;
SDL_BlitSurface (gfx.field[FT_nothing].image, &srcbg, gfx.screen, &dest);
if (stone->type != FT_nothing)
// draw explosions if there is any
for (d = 0, i = 0; d < 4; d++)
/* $Id: menu.c,v 1.17 2003/05/07 21:30:36 stpohle Exp $ */
/* $Id: menu.c,v 1.18 2003/05/08 14:35:49 stpohle Exp $ */
/* menu's for the game */
#include <SDL.h>
/* $Id: network.c,v 1.15 2003/05/07 21:28:12 stpohle Exp $ */
/* $Id: network.c,v 1.16 2003/05/08 14:35:49 stpohle Exp $ */
/*
network routines.
*/
/* $Id: single.c,v 1.9 2003/05/07 21:28:13 stpohle Exp $ */
/* $Id: single.c,v 1.10 2003/05/08 14:35:49 stpohle Exp $ */
/* single player */
#include "basic.h"
/* $Id: sysfunc.h,v 1.4 2003/05/07 21:28:13 stpohle Exp $ */
/* $Id: sysfunc.h,v 1.5 2003/05/08 14:35:49 stpohle Exp $ */
/* include some system near functions */
#ifndef _SYSFUNC_H_
/* $Id: udp.c,v 1.6 2003/05/07 21:28:13 stpohle Exp $ */
/* $Id: udp.c,v 1.7 2003/05/08 14:35:49 stpohle Exp $ */
/* udp.c code for the network
File Version 0.2