C# と VB.NET の質問掲示板

わんくま同盟

ASP.NET、C++/CLI、Java 何でもどうぞ

C# と VB.NET の入門サイト


(過去ログ 133 を表示中)
■78628 / )  M.U.G.E.Nのファイルを読み込みたい
□投稿者/ Eichiwai97 (1回)-(2016/01/30(Sat) 18:55:22)
Eichiwai97 さんの Web サイト

分類:[C#] 

開発環境はVisual Studio 2015です。使用言語はC#です。

私はC#で「M.U.G.E.N」という格闘ゲームのファイルを扱うツールを作りたいと思っていて、
.sffや、.fnt、.sndファイルなどを読み込みたいと思っています。
そこで、C#で作られたM.U.G.E.Nのクローン(xnaMUGEN)のソースコードを見てはいるのですが、
どうしても読み込み方がわかりません。C++はできるだけ使いたくないです。
どなたか助けてもらえませんでしょうか...またできたらサンプルコードを乗せてもらえるとありがたいです。
お願いします。

このような質問がこの掲示板に不適切であれば、すみません。

ここから下はM.U.G.E.Nのファイルフォーマットです。

/*--| SFF file structure
|--------------------------------------------------*\
Version 1.01
HEADER (512 bytes)
------
Bytes
00-11 "ElecbyteSpr\0" signature	[12]
12-15 1 verhi, 1 verlo, 1 verlo2, 1 verlo3	[04]
16-19 Number of groups	[04]
20-24 Number of images	[04]
24-27 File offset where first subfile is located	[04]
28-31 Size of subheader in bytes	[04]
32 Palette type (1=SPRPALTYPE_SHARED or 0=SPRPALTYPE_INDIV)	[01]
33-35 Blank; set to zero	[03]
36-511 Blank; can be used for comments	[476]
SUBFILEHEADER (32 bytes)
-------
Bytes
00-03 File offset where next subfile in the "linked list" is	[04]
located. Null if last subfile
04-07 Subfile length (not including header)	[04]
Length is 0 if it is a linked sprite
08-09 Image axis X coordinate	[02]
10-11 Image axis Y coordinate	[02]
12-13 Group number	[02]
14-15 Image number (in the group)	[02]
16-17 Index of previous copy of sprite (linked sprites only)	[02]
This is the actual
18 True if palette is same as previous image	[01]
19-31 Blank; can be used for comments	[14]
32- PCX graphic data. If palette data is available, it is the last
768 bytes.
*--------------------------------------------------------------------------*/
/*--| SND file structure
|--------------------------------------------------*\
Version 1.01
HEADER
------
Bytes
00-11 "ElecbyteSnd\0" signature	[12]
12-15 4 verhi, 4 verlo	[04]
16-19 Number of sounds	[04]
20-23 File offset where first subfile is located.	[04]
24-511 Blank; can be used for comments.	[488]
SUBFILEHEADER
-------
Bytes
00-03 File offset where next subfile in the linked list is	[04]
located. Null if last subfile.
04-07 Subfile length (not including header.)	[04]
08-11 Group number	[04]
12-15 Sample number	[04]
08- Sound data (WAV)
*--------------------------------------------------------------------------*/
/*--| FNT file structure 
|--------------------------------------------------*\
/*
Very simple file format, formed by concatenating a pcx file and a text
file together and prepending a header.
May be optimized for size by stripping the text file of comments before
adding it to the .fnt file. Be sure text data comes last in the file.
*/
Version 1.0
HEADER
------
Bytes
00-11 "ElecbyteFnt\0" signature 
[12]
12-15 2 verhi, 2 verlo 
[04]
16-20 File offset where PCX data is located. 
[04]
20-23 Length of PCX data in bytes. 
[04]
24-27 File offset where TEXT data is located. 
[04]
28-31 Length of TEXT data in bytes. 
[04]
32-63 Blank; can be used for comments. 
[40]
*--------------------------------------------------------------------------*/

返信 編集キー/


管理者用

- Child Tree -