Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting a fighting game
#11
Yeah, you got it Smile I realized at the technique when I looked the SF2 sprite data thru the MAME Big Grin
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#12
now I just need to wait for wizardlife to hand me the program.
I'll draw the charecters today. Or atleast brainstorm, and by friday hopefully the four threads I made will be posted with enough info to begin coding. I might start sooner.

BTW I'm wondering should I touch on UI at all?


---------------------------------------------------------------

I decided instead of making a second post I'll simply add to this one. I have to say that a huge insparation for this game comes from takken which has been my avatar for some time now. I really look at jin as a role model of perfect charecter. Anyway your drawing is really good I have to say. Did you use pen? or changed it in photoshop? And should I make my sprites that big?
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
#13
Quote:now I just need to wait for wizardlife to hand me the program.

http://www.angelfire.com/wizard/pigeonca...priter.zip

That should work. Right-Click-Save-As.

The file format is that for each sprite the first two bytes are height and width respectively, followed by the raw data, and then the last 768 bytes are the palette. RGBRGBRGB etc.

Press F1 for the key list. (you may have to hold it down...)

EDIT: I've included in that download an example source image and an example TIL library to look at. Someone else made those images for me, tho, so please don't rip them off.
Reply
#14
where can I get the directions for it. I mean how do I work the program

-----
thanks allot, I wont
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
#15
Quote:Did you use pen? or changed it in photoshop? And should I make my sprites that big?

I used a quill (one of those old things that you have to re-charge using chinese ink every ten minutes Tongue). It is part of a comic I made circa 1999-2001.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#16
oh yea I see it now, you can tell by the shading you did. I've drawn with quills before it took me awhile getting used to them.

BTW I'm still listening for more suggestions on the topic
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
#17
Quote:where can I get the directions for it. I mean how do I work the program

You press L to load in a PCX file (has to be 320x200). Then you move the selection box around with the arrow keys. To add whatever's in the box to the current set, press A. To save the current set to file, Ctrl-S. To open a different set, Ctrl-O.

The key combinations are a little non-sensical, but F1 will bring up a handy reminder screen.

For practise, see if you can create a short QB program that opens the TIL file I included with the ZIP and display a few of the tiles on the screen. Here's example code in Pascal, but it shouldn't be too hard to understand:

Code:
function LoadTileSet(var tilelib: tilelibtype; filename :string) :boolean; {success}

var
    size        : word;
    datafile    : file;

    ctr            : byte;
    dud            : word;

begin
    Assign(datafile, filename + '.TIL');
    Reset(datafile, 1);

    size := filesize(datafile);

    ctr := 0;

    While (FilePos(datafile) < size - 768) do
    begin
        getmem(tilelib.images[ctr], 258);
        BlockRead(datafile, tilelib.images[ctr]^, 258);
        inc(ctr);
    end;

    tilelib.tilemax := ctr - 1;

    BlockRead(datafile, curpal^, 768);
    SetPal(curpal);
    LoadTileSet := true;

    Close(Datafile);
end;
The BlockRead procedure simply allows you to do a memory dump to file and vice-versa. Qb has no equivalent that I'm aware of, but it's not hard to improvise with a loop.
Reply
#18
Alright I got started but I can't load the pcx. Everytime I type in the filename (I even use the right case) and click enter the program minizes

---------
Don't no how but it works now

------------

Well I made that .til file. Now I;m a little confused.
No No I'm stupified even
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
#19
Quote:
Code:
function LoadTileSet(var tilelib: tilelibtype; filename :string) :boolean; {success}

var
    size        : word;
    datafile    : file;

    ctr            : byte;
    dud            : word;

begin
    Assign(datafile, filename + '.TIL');
    Reset(datafile, 1);

    size := filesize(datafile);

    ctr := 0;

    While (FilePos(datafile) < size - 768) do
    begin
        getmem(tilelib.images[ctr], 258);
        BlockRead(datafile, tilelib.images[ctr]^, 258);
        inc(ctr);
    end;

    tilelib.tilemax := ctr - 1;

    BlockRead(datafile, curpal^, 768);
    SetPal(curpal);
    LoadTileSet := true;

    Close(Datafile);
end;

Well I decided to attempt to break down your code into QB. Please help me from here


1. umm not sure what that line does

2. Declare variables I guess. I'm not sure how.

3. Whatever begin means, I think your creating an array? Or is that a type?

4. The next array or type I guess clears something, not sure what.

5. Your setting variable size to filesize(datafile), yea I definatly I understand this but where in qb can I find commands like these

6. ctr umm?

7. This loop I suppose extracts the tiles, I don't have a clue on how to get this out. Oh I have an idea is this like storing a part of the screen into an array? Damn not easy not easy at all.

8. No idea what your doing here. See I knew it had a type and not an array. Still lost

9. Next it stores the tiles and closes the file opened. Nice I think I got the gist of things now what about the syntax of things?


Thanks allot guys, I'm trying as hard as I can. No I think I can try harder. I'll look into the help file in QB. See what I can get out if it. By any chance is getfile replaced with OPEN?
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
#20
I hope I don't bother anyone but making new posts everytime I want to say something.

Anyway I looked in and I think I found a few commands. Poke, Peek, and so on. Which looks simular to what wiz had. I'm gonna try to find as much information as I can on all of them but I've never used any of those commands can someone please help in explaining how you would go about all of this. Please comment
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)