Search found 33 matches

by Kitsune Mifune
Mon Nov 18, 2019 1:10 pm
Forum: Amstrad CPC Assembly Programming
Topic: Sprite transparent pixels issue
Replies: 6
Views: 6436

Sprite transparent pixels issue

Been getting on rather well (albeit slowly) with my game, but I've run into a small issue with the sprites. I thieved a piece of code from the CPC forums to use in the draw routine. It checks for transparent pixels in the sprite frame and doesn't draw them. It works really well, and I actually know ...
by Kitsune Mifune
Wed Nov 13, 2019 11:39 am
Forum: Amstrad CPC Assembly Programming
Topic: Loading new data and discarding old data
Replies: 2
Views: 4339

Re: Loading new data and discarding old data

Thanks for the info.

Yeah, I've hit that stage where I'll have to really think about organising stuff. My code is in bits right now after some major tearing down and reworking, so this would be the best time.

Cheers for the files, I'll have a look tonight.
by Kitsune Mifune
Mon Nov 11, 2019 10:04 am
Forum: Amstrad CPC Assembly Programming
Topic: Loading new data and discarding old data
Replies: 2
Views: 4339

Loading new data and discarding old data

I think at this stage I need to learn how to separate my program into parts which are loaded separately. At the moment, the title screen, character screen, and actual game are all just part of the same big program, and everything is just lobbed into RAM on compile. They branch off to each other fine...
by Kitsune Mifune
Fri Nov 08, 2019 12:45 pm
Forum: Amstrad CPC Assembly Programming
Topic: Setting CRTC
Replies: 4
Views: 5086

Re: Setting CRTC

Oh dude, you are a star! I had literally just finished integrating your code from the lesson for the screen position (the GetScreenPos call to the code with the two screen tables) and it worked fine, but I was having bother writing something for the draw code to jump down a line to simulate the &...
by Kitsune Mifune
Thu Nov 07, 2019 8:31 am
Forum: Amstrad CPC Assembly Programming
Topic: Setting CRTC
Replies: 4
Views: 5086

Re: Setting CRTC

Excellent, I'll try this out when I get in tonight. I'm actually just about to rip apart my sprite draw and screen setup routines to get rid of the firmware, so it's good timing. I'm going to try and adapt your code in the "Bitmap Graphics on the Amstrad CPC" lesson, which admittedly is a ...
by Kitsune Mifune
Wed Nov 06, 2019 1:54 pm
Forum: Amstrad CPC Assembly Programming
Topic: Setting CRTC
Replies: 4
Views: 5086

Setting CRTC

Sorry if this seems really thick, but I've been trying to play around with the CRTC to adjust the screen width and get a 256x192 size, but I can't seem to get a grasp on how to input the register and values. 'c' sets the register right? and 'a' the value of the register? I've been trying to use the ...
by Kitsune Mifune
Tue Nov 05, 2019 8:42 am
Forum: Show and Tell
Topic: Final Fight CPC (VERY early demo video)
Replies: 5
Views: 5817

Re: Final Fight CPC (VERY early demo video)

Thanks Keith! The sprites were done by hand, and I just used screen grabs of the old messy Amstrad sprites for a size and palette reference. I tried resizing the arcade sprites but I didn't like the results when I adapted them to a Mode 0 look. Took me ages though, and I should have maybe just use a...
by Kitsune Mifune
Mon Nov 04, 2019 1:21 pm
Forum: Show and Tell
Topic: Final Fight CPC (VERY early demo video)
Replies: 5
Views: 5817

Final Fight CPC (VERY early demo video)

There's really not much to see, and it's incredibly messy (and wasteful of memory), but I thought I'd better post something at least. I've added some annotations to the video to very basically summarise what's going on (or still to be implemented) in the code. I realise things are going to get a LOT...
by Kitsune Mifune
Sun Nov 03, 2019 9:39 am
Forum: Amstrad CPC Assembly Programming
Topic: Redefine or simulate new X/Y origin
Replies: 2
Views: 4071

Re: Redefine or simulate new X/Y origin

I was just about to try what you said and....now I don't know how I came by this, but I was reading the Amos manual on hotspots and it just said that the calculation was made by adding simple values onto the top left X/Y coordinates, so I wrote this piece of much, much simpler code - and it works! I...
by Kitsune Mifune
Sat Nov 02, 2019 11:45 am
Forum: Amstrad CPC Assembly Programming
Topic: Redefine or simulate new X/Y origin
Replies: 2
Views: 4071

Redefine or simulate new X/Y origin

I'm trying to write a piece of code which will simulate a new X/Y origin point at the bottom left of the sprite's frame instead of the top left. I remembered from my Amos days that the "hotspot" (origin) could be redefined to be bottom left, or bottom centre, or top right etc, and I assume...

Go to advanced search