NIght Knight

Page 6/6
1 | 2 | 3 | 4 | 5 |

By Thom

Hero (582)

Thom's picture

05-09-2019, 22:28

reidrac wrote:

Sorry for the late reply, I'm not used to MRC not having email notifications!

Thom wrote:

IIRC Night Knight was coded in hybrid C/ASM? Which C-compiler did you use (SDCC?) Inline or linked assembly?

I used SDCC. Mostly linked assembly because inline doesn't look very well mixed with C code. If is a short routine, it's OK though.

You can take a look a this video were I'm working on my current MSX project:

https://www.youtube.com/watch?v=55--zjOUxCs

Thanks Reidrac and no problem!

Lately, there was quite some discussion about using SDCC for MSX. There are some doubts whether the code it produces is fast enough for games. I think you´ve proven with Night Knight and your next game that it is possible to create games which look like they´ve been coded in 100% assembler.

By reidrac

Resident (48)

reidrac's picture

06-09-2019, 08:02

Thom wrote:

Lately, there was quite some discussion about using SDCC for MSX. There are some doubts whether the code it produces is fast enough for games. I think you´ve proven with Night Knight and your next game that it is possible to create games which look like they´ve been coded in 100% assembler.

There's a lot of ASM code in my games, but that's only for the bits that are speed sensitive. Before working on the MSX, I made games for the CPC with SDCC following the same strategy, and that machine doesn't have hardware sprites! So it is possible Smile

It is in my TODO list releasing few libraries I wrote to make Night Knight (and I'm improving with my current project). I hope that would help people willing to make games in C!

EDIT: also I'd like to look at this project https://github.com/KarolS/millfork

By Thom

Hero (582)

Thom's picture

06-09-2019, 10:28

Yeah, Millfork looks very interesting: https://msx.org/forum/msx-talk/development/millfork-a-new-pr...

Looking forward to the libraries :-)
Perhaps some of it could be used for the Fusion-C libs? (https://msx.org/news/development/en/fusion-c-is-available)
(Or the other way around).

By reidrac

Resident (48)

reidrac's picture

06-09-2019, 10:33

Thom wrote:

Yeah, Millfork looks very interesting: https://msx.org/forum/msx-talk/development/millfork-a-new-pr...

Looking forward to the libraries :-)
Perhaps some of it could be used for the Fusion-C libs? (https://msx.org/news/development/en/fusion-c-is-available)
(Or the other way around).

That's up to you. You can port any ASM or C code if you want. My libraries are focused on the type of games I'm making (MSX, screen 2, etc), so is not one size fits all.

Page 6/6
1 | 2 | 3 | 4 | 5 |