Search found 117 matches

by productiondave
Sun May 21, 2023 10:02 pm
Forum: Production Dave
Topic: Invaders Progress
Replies: 29
Views: 8411

Re: Invaders Progress

I don't know for sure. For now I am keeping the code as simple as I can. the idea is to get it working and then look at performance after. I have an array of structs that let me track each invader's location in the tile space as well as the location in pixel space. The pixel space is so that I can k...
by productiondave
Sun May 21, 2023 8:21 pm
Forum: Production Dave
Topic: Invaders Progress
Replies: 29
Views: 8411

Re: Invaders Progress

Assuming z88dk does the right thing of course. 🤔
by productiondave
Sun May 21, 2023 7:48 pm
Forum: Production Dave
Topic: Invaders Progress
Replies: 29
Views: 8411

Re: Invaders Progress

For powers of 2 mod is the same as logical and. So cheap as chips mate.

Code: Select all

uint8_t xo = bulletx % 8;
Is the same as:

Code: Select all

uint8_t xo = (bulletx & 0x07);
And yes, it took a long time to figure out.
by productiondave
Sun May 21, 2023 1:10 pm
Forum: Production Dave
Topic: Invaders Progress
Replies: 29
Views: 8411

Re: Invaders Progress

Today I learned. if ((pixels & set_bit_mask[bulletx % 8]) == 0) { return false; } is not the same as if ( pixels & set_bit_mask[bulletx % 8] == 0) { return false; } So now I have bullets hitting aliens with pixel level accuracy. Shields go through 3 stages of damage. I just need to work on t...
by productiondave
Sun May 21, 2023 6:54 am
Forum: Production Dave
Topic: Invaders Progress
Replies: 29
Views: 8411

Re: Invaders Progress

So in the interests of actually releasing something this century, I have gone back to C and NABU-LIB. Turns out, I am really not much good at z80 assembly. 6502 Assembly is so much easier with much nicer addressing modes. Even if I one needs to use the zero page for 16 bit variables. Here is a littl...
by productiondave
Fri May 19, 2023 12:41 am
Forum: Production Dave
Topic: Oops. Forgot to announce a minor update
Replies: 1
Views: 1118

Oops. Forgot to announce a minor update

https://github.com/linuxplayground/nabu-games/releases/tag/v3.4 This release adds some minor performance improvements by printing text to the framebuffer rather than directly to the VDP. This means the whole screen in Tetris is updated at the same time. This avoids occasional glitches caused by VDP ...
by productiondave
Fri May 19, 2023 12:40 am
Forum: Cloud CP/M
Topic: dsk files and games
Replies: 6
Views: 10556

Re: dsk files and games

This is what I do. But I host the files on my GitHub so folks can pull them down from there. DJ kindly includes the files on the IA and in cloud cpm. To make it easy, I ship both versions. The native nabu and the cpm version.

https://github.com/linuxplayground/nabu ... s/tag/v3.4
by productiondave
Thu May 18, 2023 11:36 pm
Forum: RenderEng F18 Alt
Topic: DIY F18a alternative
Replies: 62
Views: 10422

Re: DIY F18a alternative

I did have some issues with that. I found on my system plugging it into one of the usb3 sockets seems to be most stable. But, I only had it in there long enough to program it. I've not tried any dev yet.
by productiondave
Wed May 17, 2023 4:24 am
Forum: Production Dave
Topic: Invaders Progress
Replies: 29
Views: 8411

Invaders Progress

I know that many of you are looking forward to a space invaders clone on the Nabu. I am working on it, but it's slow going. I am writing this game in raw Z80 assembly. My main reason for doing so is speed. I am not convinced of the z88dk compiler ability to generate really fast code. ( I am also not...
by productiondave
Sun May 14, 2023 8:49 pm
Forum: RenderEng F18 Alt
Topic: DIY F18a alternative
Replies: 62
Views: 10422

Re: DIY F18a alternative

Sweet!