Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Beta 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedyOrc-C committed Nov 6, 2021
1 parent b682e35 commit 88c70fa
Show file tree
Hide file tree
Showing 11 changed files with 1,956 additions and 31 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

**简体中文** - [English](README_en.md)

运行在卡西欧 fx-9750 与 fx-9860 系列图形计算器上的4K(四按键)下落式音游。

## 简介


运行在卡西欧 fx-9750 与 fx-9860 系列图形计算器上的4K(四按键)下落式音游。

## 项目开始前可行性的考虑与实现的难度

Expand All @@ -20,11 +18,11 @@

### 铺面来源

由于鄙人不会写铺子,也从来没有参与过音游的开发,可以看到有一个 Python 脚本,用于把 Malody 的铺面转换成 fx4K 的铺面(后缀为`.f4k`。由于变速对于鄙人来说难以实现,将会以铺面最初的 BPM 应用到全曲。BPM 将会强制转换为整数。
由于鄙人不会写铺子,也从来没有参与过音游的开发,可以看到有一个 Python 脚本,用于把 Malody 的铺面转换成 fx4K 的铺面。由于变速对于鄙人来说难以实现,将会以铺面最初的 BPM 应用到全曲。BPM 将会强制转换为整数。

## 二进制结构

### f4k 铺面
### 铺面

| Byte\(s\) | Length | Meaning |
| :-------- | :----- | :----------------- |
Expand All @@ -33,7 +31,7 @@
| `40,41` | 2 | BPM |
| `42,43` | 2 | note count |
| `44,45` | 2 | song length |
| `44~4F` | 12 | LEAVE BLANK |
| `46~4F` | 12 | LEAVE BLANK |

### 音符

Expand Down
2 changes: 1 addition & 1 deletion addin/AddinInfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[BINDATA] : "FXADDINror.bin"
[DISPNAME] : "fx4K"
[APPNAME] : "@FX4K"
[VERSION] : "00.01.0000"
[VERSION] : "00.02.0000"
[APL_ICON] : "MainIcon.bmp"
[MODULE_NUM] : 0
[MOD1_TITLE] : "fx4K"
Expand Down
20 changes: 20 additions & 0 deletions addin/fx4K.dlr
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Sublevel=1
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Line=275
Flags=00001012
Sublevel=1

[Breakpoint]
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Expand All @@ -120,6 +121,7 @@ Sublevel=2
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Line=288
Flags=00001011
Sublevel=1

[Breakpoint]
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Expand All @@ -144,3 +146,21 @@ File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Line=270
Flags=00001012
Sublevel=2

[Breakpoint]
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Line=288
Flags=00001011
Sublevel=2

[Breakpoint]
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Line=288
Flags=00001011
Sublevel=3

[Breakpoint]
File=C:\users\crossover\My Documents\GitHub\fx4K\addin\lib\game\play.c
Line=275
Flags=00001012
Sublevel=2
8 changes: 4 additions & 4 deletions addin/fx4K.dlw
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

[_1]
Type=5
Order=0
Order=1
Top=15
Left=2235
Height=4740
Width=5565
State=0
Flags=00000020
Setting=33:1:lib\game\play.c
Setting=129:1:lib\game\play.c
OptionA=0

[_2]
Expand All @@ -26,7 +26,7 @@ OptionB=15

[_3]
Type=6
Order=1
Order=2
Top=4740
Left=7800
Height=6390
Expand Down Expand Up @@ -92,7 +92,7 @@ OptionA=0

[_9]
Type=15
Order=2
Order=0
Top=4740
Left=2235
Height=6345
Expand Down
2 changes: 1 addition & 1 deletion addin/fx4K.g1w
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[DLSimProject]
Name=fx4K
Version=00.01
Version=00.02.0000
Model=:fx-9860G.dlm
SourcePath=SRC
MemoryPath=INIT
Expand Down
8 changes: 4 additions & 4 deletions addin/lib/game/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ void draw_key_press_effect(unsigned char *key_state)
ML_rectangle(
1, 64 - COLUMN_HEIGHT,
COLUMN_WIDTH, 62,
2, ML_XOR, ML_WHITE);
2, ML_XOR, ML_TRANSPARENT);
if (key_state[1])
ML_rectangle(
1 + COLUMN_WIDTH, 64 - COLUMN_HEIGHT,
COLUMN_WIDTH * 2, 62,
2, ML_XOR, ML_WHITE);
2, ML_XOR, ML_TRANSPARENT);
if (key_state[2])
ML_rectangle(
1 + COLUMN_WIDTH * 2, 64 - COLUMN_HEIGHT,
COLUMN_WIDTH * 3, 62,
2, ML_XOR, ML_WHITE);
2, ML_XOR, ML_TRANSPARENT);
if (key_state[3])
ML_rectangle(
1 + COLUMN_WIDTH * 3, 64 - COLUMN_HEIGHT,
COLUMN_WIDTH * 4, 62,
2, ML_XOR, ML_WHITE);
2, ML_XOR, ML_TRANSPARENT);
}


Expand Down
Loading

0 comments on commit 88c70fa

Please sign in to comment.