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

Re: Game graphics needed - Project: Starfighter

Erick Henrique wrote:
Hi Hans and Nicu

See the 2 ships that I drew for the Starfighter game. Later sending the other conceptual images and avatars.

When to conclude the other ships I will generate one pixel art to see as they are the sprites in the compiled game.

Hi Erick,

Great that you are working on this!

I've created a little utility to recreate the .pak file from an exploded tree.

To compile it do: "gcc -o pack pack.c" and then do:
cd starfighter-data
<path-to>/pack `find -type f -printf "%P\n"`

And then one dir above starfighter-data you will find starfighter.pak

About the images you've done so far, they are a bit big, starfighter is an old game designed to run at 640x480. So you will need to significantly downscale them. You can make things a little bit bigger then the originals if you want, as the engine will happily accept any sprite size, but the ones you've done now are just to big (the original is 25x14 pixels)

Thanks & Regards,

Copyright (C) 2003 Parallel Realities

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char *argv[])
	unsigned char *packBuffer;
	char packFilename[60];
	int packFSize;
	int i;

	FILE *pak;
	FILE *fp = NULL;

	pak = fopen("../starfighter.pak", "wb");
	if (pak == NULL)
		fprintf(stderr, "Couldn't access the Project: Starfighter data file!\n");
		return 1;
	fseek(pak, 4, SEEK_SET);

	for (i = 1; i < argc; i++)
		fp = fopen(argv[i], "rb");
		if (fp == NULL) {
			fprintf(stderr, "could not open %s for reading\n",
			return 1;

		strcpy(packFilename, argv[i]);

		fseek(fp, 0, SEEK_END);
		packFSize = ftell(fp);

		fwrite(packFilename, 1, 56, pak);
		fwrite(&packFSize, 4, 1, pak);

		packBuffer = (unsigned char*) malloc(packFSize);
		fread(packBuffer, 1, packFSize, fp);
		fwrite(packBuffer, 1, packFSize, pak);
	return 0;

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