CPCWiki forum

General Category => Games => Topic started by: PuzCPC on 01:37, 06 March 19

Title: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 01:37, 06 March 19

Hi,
After about ten months of learning and coding it's finally here, my first game in ASM.

I would like to thank everyone who contributed here to CPCwiki source codes and tutorials.
Most of all, Thargan for his sfx, music and all the help that makes the game better than it would be otherwise!

Here are some instructions for Scramble on AMSTRAD CPC 64kb:

Menu                - ESC
Start the game  - FIRE1 for Joystick, A for Keyboard
Credits              - FIRE2 or S (They do not have any meaning except that you start a new game with one click.)

Joystick controls:

Move  - Joystick
Shoot - Joystick FIRE1
Bomb  - Joystick FIRE2 or SPACE

Keyboard controls:

Move   - Cursors keys
Shoot  - A
Bomb  - S
For redefine keys go to the Menu and also more lives can be found there.


And do not forget to show your best score to see who is the best Scramble player here. 8) 



Added CPR for GX4000!
Added CDT for CPC464!
PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: ervin on 04:28, 06 March 19
This is absolutely fantastic.
Great job!

It's fast, responsive and very playable.
Shooting ground-based installations is as satisfying as it is in the arcade.

I'm wondering about the scroll...
It looks like a very clever technique.
Are you simply changing the top of the ground, instead of scrolling the whole screen?
Title: Re: Scramble - New game for Amstrad CPC
Post by: LambdaMikel on 05:46, 06 March 19
WONDERFUL GAME!!! Incredible that is your first production - smooth scrolling, great gameplay, very reactive and so close to the original! Absolutely awesome. Thanks a lot!!

I didn't work on the 464 though - resets after the "grid". Tried with and without mem expansion. Works on the 6128.

Great work!!
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 07:42, 06 March 19

Hi,
It's fixed now!


Quote from: ervin on 04:28, 06 March 19
This is absolutely fantastic.
Great job!

It's fast, responsive and very playable.
Shooting ground-based installations is as satisfying as it is in the arcade.

I'm wondering about the scroll...
It looks like a very clever technique.
Are you simply changing the top of the ground, instead of scrolling the whole screen?


I will explain later.  :)


PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: TotO on 08:00, 06 March 19
Hey!

I have tried "left right" to pass the spec screen and to press "5" to add credits and "1" for 1P start, but that not work!  ;D
Really great port, and I'm not so bad as the game well designed, as I have reached the begin of the 4th stage at the first run.

Congratulations, I love how the display and the sound does! (really close to the arcade and Vectrex version)
You made my day. Here my game for the next 3 months!!!  :-*

  TotO.
Title: Re: Scramble - New game for Amstrad CPC
Post by: DanyPPC on 09:25, 06 March 19
WoW ! I did not believe my eyes, it seems like a MAME emulator.
Great, wonderful conversion !!!


My congratulations. It's an Amstrad CPC homebrew masterpiece, really.


Many thanks  ;)
Title: Re: Scramble - New game for Amstrad CPC
Post by: norecess464 on 09:40, 06 March 19
Nice game, thank you !! This reminds me the games I played when I was 9  8)
Title: Re: Scramble - New game for Amstrad CPC
Post by: Xifos on 09:43, 06 March 19
Congratulations !And thanks for this very good game ! :)
(and indeed the scrolling technique seems clever)
Title: Re: Scramble - New game for Amstrad CPC
Post by: 6128 on 15:41, 06 March 19
Nice game. Congratulations.
Title: Re: Scramble - New game for Amstrad CPC
Post by: Token on 15:58, 06 March 19
Really good game, well done!
Title: Re: Scramble - New game for Amstrad CPC
Post by: robcfg on 16:14, 06 March 19
Couldn't agree more!


It feels pretty authentic, thank you very much!
Title: Re: Scramble - New game for Amstrad CPC
Post by: trocoloco on 16:26, 06 March 19
Very nice port! Loving the MAME emulator touch as well. Congrats!
Title: Re: Scramble - New game for Amstrad CPC
Post by: GUNHED on 17:31, 06 March 19
300% perfect arcade emulation. A very wonderful game! Great work! But surely not your first Z80 code.  ;) :)
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 17:36, 06 March 19
Thank you all!

I'm also surprised at what the CPC is capable of. :o


ervin :
About the scrolling.
Everything is fake. No scrolling at all. :D
All are sprites 8x12 px for ground and 16x20 for ground enemy.
Right side tiles draw bottom of the ground and left side tiles clear tiles with last four px.
And of course they need to be drawn from left to right every 8px. And also very fast! 8)


TotO :
For that you need a MAME emulator! ;D
The CPC can do this with one button! 8)
But, I think CPC owners do not need a MAME emulator for Scramble anymore. :laugh:


GUNHED:
Yes, it is! :P :)

PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: GUNHED on 17:40, 06 March 19
Quote from: PuzCPC on 17:36, 06 March 19
GUNHED:
Yes, it is! :P :)

PuzCPC


In this case your 2nd game probably will be the best game of the decade!  ;D ;D ;D
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 18:02, 06 March 19
Quote from: GUNHED on 17:40, 06 March 19

In this case your 2nd game probably will be the best game of the decade!  ;D ;D ;D



This would be great. ;D I can only dream about it. ;D
Title: Re: Scramble - New game for Amstrad CPC
Post by: Rhino on 19:20, 06 March 19
A great port that is played very well, it is a pleasure to have these classics so well implemented on the CPC. And one more proof that well executed, mode 1 games are very nice to watch too.
I hope you continue making great games for CPC!
Congrats!
Title: Re: Scramble - New game for Amstrad CPC
Post by: TotO on 19:57, 06 March 19
Is a tape version planed?  :-\
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 20:09, 06 March 19
Who still uses tapes today?  :)
Soon it will be cpr for GX4000.
Title: Re: Scramble - New game for Amstrad CPC
Post by: SpDizzy on 20:26, 06 March 19
Quote from: PuzCPC on 20:09, 06 March 19
Who still uses tapes today?  :)
Soon it will be cpr for GX4000.
I still using tapes today!!My old cpc464 has no expansions at all, so .cdt is the only way to enjoy really great games on real hardware.So... I'm in for a tape version too  ;D
Title: Re: Scramble - New game for Amstrad CPC
Post by: TotO on 20:30, 06 March 19
Quote from: PuzCPC on 20:09, 06 March 19
Who still uses tapes today?  :)
Soon it will be cpr for GX4000.
Not me... Neither in 80s.  ;D
Just thinking that 64K (best) game should made the days of real 464 stock players.
Title: Re: Scramble - New game for Amstrad CPC
Post by: XeNoMoRPH on 21:11, 06 March 19
Awesome port , congratulations !!!!  :o
Title: Re: Scramble - New game for Amstrad CPC
Post by: VincentGR on 23:45, 06 March 19
Well today my GPU died so no plans for a longplay video.
Oh well tomorrow I will run it on my real machine.


I thought I would never see this game on my cpc.
You proved me wrong and I'm thankful for that.


Thanks again Sir.
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 05:04, 07 March 19
Quote from: TotO on 20:30, 06 March 19
Not me... Neither in 80s.  ;D
Just thinking that 64K (best) game should made the days of real 464 stock players.



Hi,
Okay, I'll try to do something. It will only probably take a little time.
I must first check everything about a tape loader. ;D


PuCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: alex76gr on 05:13, 07 March 19
I stand in awe and gratitude before this marvel.  :o
Thank you.

This is my quick hi-score.
I'll be back!
Title: Re: Scramble - New game for Amstrad CPC
Post by: Ast on 07:45, 07 March 19
What a good game... i really enjoy it !
Title: Re: Scramble - New game for Amstrad CPC
Post by: XeNoMoRPH on 11:27, 07 March 19
small gameplay  :D
https://youtu.be/HaykHSyrHWU
Title: Re: Scramble - New game for Amstrad CPC
Post by: shaymanjohn on 11:49, 07 March 19
Well done PuzCPC - this is fantastic! My favourite arcade game ever, and this version is beautiful!
Title: Re: Scramble - New game for Amstrad CPC
Post by: TotO on 11:57, 07 March 19
What I love on the Vectrex version, is the ambiant background sound... Not in arcade.

https://www.youtube.com/watch?v=JA5O18j0YlQ (https://www.youtube.com/watch?v=JA5O18j0YlQ)
Title: Re: Scramble - New game for Amstrad CPC
Post by: JayBlood on 05:50, 08 March 19
You just learn ASM? :o :o ;D Congratulation for this awesome port of that game! Well done!
Title: Re: Scramble - New game for Amstrad CPC
Post by: mr_lou on 07:03, 08 March 19
This look awesome! I wanted a Scramble game for the CPC ever since I was a kid. Looking forward to try this... when I can find some time.
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 15:55, 08 March 19
Quote from: TotO on 11:57, 07 March 19
What I love on the Vectrex version, is the ambiant background sound... Not in arcade.




I prefer CPC music from Targhan! :D
How much headache I suffered, that I could keep it as it is.
Namely, with sound I had problems with a slowdowns. >:(

PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: Ygdrazil on 22:57, 08 March 19
Hi PuzCPC
Congratulations on an extremely well done conversion of an all time retro classic!
I am really impressed how well you captured the essence  of the original scramble

You have shown true love to both Scramble and the CPC!

This was one of the first games I played in the arcades, and I always wanted a conversion for the CPC!
I like your "fake" scrolling... This way it should be quite easy to convert the game to both the Enterprise and the ZX spectrum.. so they to can experience your magic coding....
Thanks a lot!
/Ygdrazil

PS. Your first Z80 coding project... Impressive!
Title: Re: Scramble - New game for Amstrad CPC
Post by: Novabug on 00:26, 09 March 19
Quote from: PuzCPC on 01:37, 06 March 19
Hi,
After about ten months of learning and coding it's finally here, my first game in ASM.

I would like to thank everyone who contributed here to CPCwiki source codes and tutorials.
Most of all, Thargan for his sfx, music and all the help that makes the game better than it would be otherwise!

Here are some instructions for Scramble on AMSTRAD CPC 64kb:

Menu                - ESC
Start the game  - FIRE1 for Joystick, A for Keyboard
Credits              - FIRE2 or S (They do not have any meaning except that you start a new game with one click.)

Joystick controls:

Move  - Joystick
Shoot - Joystick FIRE1
Bomb  - Joystick FIRE2 or SPACE

Keyboard controls:

Move   - Cursors keys
Shoot  - A
Bomb  - S
For redefine keys go to the Menu and also more lives can be found there.


And do not forget to show your best score to see who is the best Scramble player here. 8) 


Added CPR for GX4000!

PuzCPC


Great stuff. Will cover this in a future video. Brill.



Title: Re: Scramble - New game for Amstrad CPC
Post by: jjaranda13 on 19:19, 09 March 19
hi PuzCPC


Congratulations! it is really good game. I love it


Thanks a lot for this game. Good programming technic, good sound, good everything





Title: Re: Scramble - New game for Amstrad CPC
Post by: Scarlettkitten on 20:09, 09 March 19
This is fantastic, well done  8)
Title: Re: Scramble - New game for Amstrad CPC
Post by: jjaranda13 on 20:55, 09 March 19
hi PuzCPC


could you explain in detail your scroll mechanism? it is really good



Title: Re: Scramble - New game for Amstrad CPC
Post by: Ast on 21:13, 09 March 19
@PuzCPC (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2821) : it's for you (http://www.cpcwiki.eu/forum/general-discussion/new-impdraw-v2-graph'x-for-cpc-old-cpc-plus!/msg171719/#msg171719)
Title: Re: Scramble - New game for Amstrad CPC
Post by: Arnaud on 21:22, 09 March 19
Quote from: jjaranda13 on 20:55, 09 March 19
hi PuzCPC


could you explain in detail your scroll mechanism? it is really good

Yes i think so, i haven't understand how it works and i am really interested.
Title: Re: Scramble - New game for Amstrad CPC
Post by: pelrun on 03:42, 10 March 19
They're overdrawing the terrain and enemy sprites every frame, right to left left to right. Each sprite has black pixels on the left right side to erase any artifacts from the previous frame, and the ground fill is just old pixels from previous frames.
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 04:30, 10 March 19
Quote from: pelrun on 03:42, 10 March 19
They're overdrawing the terrain and enemy sprites every frame, right to left. Each sprite has black pixels on the left side to erase any artifacts from the previous frame, and the ground fill is just old pixels from previous frames.



Hi,

Yes, something like that.
They're overdrawing the terrain and enemy sprites every second frame, left to right.


I think the picture tells more than a thousand words. :)


PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: Arnaud on 07:58, 10 March 19
Thanks for explanations,
OK in this way you don't have to clear the trail of the scrolling sprites.

The drawback is that the scrolling sprites have to be duplicated, with and whithout offset.

Is the original game works like that ?
Title: Re: Scramble - New game for Amstrad CPC
Post by: Kris on 08:59, 10 March 19
Very nice port and addictive game: congrats !!
Title: Re: Scramble - New game for Amstrad CPC
Post by: TomEtJerry on 09:41, 10 March 19
Really nice game, it looks like a perfect port of the game (coded from scratch or did you had looked at the arcade code ?); For a Z80 "beginner", that's impressive !

I have just one (little) complain, intro screen would need some polish from a pixel graphist. I think CPC can be better :-).
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 12:13, 10 March 19
Quote from: Arnaud on 07:58, 10 March 19
Thanks for explanations,
OK in this way you don't have to clear the trail of the scrolling sprites.

The drawback is that the scrolling sprites have to be duplicated, with and whithout offset.

Is the original game works like that ?


Exactly! And at the same time it draws the ground inside.
Yes, sprites take a lot of space. And must be a compiled sprites.
Otherwise, it's not fast enough. :)
I do not know how the original works, I did not have the original source code.


Quote from: TomEtJerry on 09:41, 10 March 19
Really nice game, it looks like a perfect port of the game (coded from scratch or did you had looked at the arcade code ?); For a Z80 "beginner", that's impressive !

I have just one (little) complain, intro screen would need some polish from a pixel graphist. I think CPC can be better :-).
I coded from scratch.
Intro screen is not my work. I made it even worse. :D


PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: ervin on 13:12, 10 March 19
Quote from: PuzCPC on 12:13, 10 March 19
Exactly! And at the same time it draws the ground inside.
Yes, sprites take a lot of space. And must be a compiled sprites.
Otherwise, it's not fast enough. :)
I do not know how the original works, I did not have the original source code.

I coded from scratch.
Intro screen is not my work. I made it even worse. :D

PuzCPC

Hmmm, interesting.
I'd love to have a look at your compiled sprite code.
I'm doing some work with compiled sprites at the moment, and I'd like to see some other examples.

Would it be ok to have a look at your sprite code?


Title: Re: Scramble - New game for Amstrad CPC
Post by: TotO on 13:42, 10 March 19
Quote from: PuzCPC on 04:30, 10 March 19
I think the picture tells more than a thousand words. :)
It looks a bit like Pac-Man emulator sprites and R-Type scrolling. ;)
Title: Re: Scramble - New game for Amstrad CPC
Post by: VincentGR on 13:44, 10 March 19
Quote from: TotO on 13:42, 10 March 19
It looks a bit like Pac-Man emulator sprites and R-Type scrolling. ;)


and jetpac 😀
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 14:13, 10 March 19

Quote from: ervin on 13:12, 10 March 19
Hmmm, interesting.
I'd love to have a look at your compiled sprite code.
I'm doing some work with compiled sprites at the moment, and I'd like to see some other examples.

Would it be ok to have a look at your sprite code?





Of course! :)



.SPRITE
LD A,17
LD BC,&C850
LOOP:
LD (HL), BYTE_01
INC L
LD (HL), BYTE_02
SET 3,H
LD (HL), BYTE_03
DEC L
LD (HL), BYTE_04
SET 4,H
...
RES 3,H
...
SET 5,H
...
RES 4,H
...
SET 3,H
...
SET 4,H
...
ADD HL,BC
DEC A
OR A
JR NZ,LOOP
RET
.SPRITE_01
LD (HL), BYTE_01
INC L
LD (HL), BYTE_02
SET 3,H
LD (HL), BYTE_03
DEC L
LD (HL), BYTE_04
SET 4,H
...
RES 3,H
...
SET 5,H
...
SET 3,H
...
RES 4,H
...
RES 3,H
...
RES 5,H
LD A,L
ADD &50
LD L,A
JR NC,SKIP
INC H
SKIP:
LD (HL), BYTE_17
INC L
LD (HL), BYTE_18
SET 3,H
LD (HL), BYTE_19
DEC L
LD (HL), BYTE_20
...



Title: Re: Scramble - New game for Amstrad CPC
Post by: ervin on 14:27, 10 March 19
Quote from: PuzCPC on 14:13, 10 March 19

Of course! :)


.SPRITE
LD A,17
LD BC,&C850
LOOP:
LD (HL), BYTE_01
INC L
LD (HL), BYTE_02
SET 3,H
LD (HL), BYTE_03
DEC L
LD (HL), BYTE_04
SET 4,H
...
RES 3,H
...
SET 5,H
...
RES 4,H
...
SET 3,H
...
SET 4,H
...
ADD HL,BC
DEC A
OR A
JR NZ,LOOP
RET
.SPRITE_01
LD (HL), BYTE_01
INC L
LD (HL), BYTE_02
SET 3,H
LD (HL), BYTE_03
DEC L
LD (HL), BYTE_04
SET 4,H
...
RES 3,H
...
SET 5,H
...
SET 3,H
...
RES 4,H
...
RES 3,H
...
RES 5,H
LD A,L
ADD &50
LD L,A
JR NC,SKIP
INC H
SKIP:
LD (HL), BYTE_17
INC L
LD (HL), BYTE_18
SET 3,H
LD (HL), BYTE_19
DEC L
LD (HL), BYTE_20
...


Very interesting!

I'm wondering if it can be optimised a little bit.
8)


ADD HL,BC
DEC A
OR A
JR NZ,LOOP
RET


Is the OR A needed?

Actually, I notice that you're using ADD HL,BC.
Is DE free in your sprite loop?
If it is, you can use ADD HL,DE instead.
That will then allow you to replace the looping code I've quoted just above with DJNZ, if you use B as the loop counter instead of A.
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 14:48, 10 March 19
Quote from: ervin on 14:27, 10 March 19
Very interesting!

I'm wondering if it can be optimised a little bit.
8)


ADD HL,BC
DEC A
OR A
JR NZ,LOOP
RET


Is the OR A needed?

Actually, I notice that you're using ADD HL,BC.
Is DE free in your sprite loop?
If it is, you can use ADD HL,DE instead.
That will then allow you to replace the looping code I've quoted just above with DJNZ, if you use B as the loop counter instead of A.




Is the OR A needed? You right! No!
This code is for drawing 8x136px  tall sprite. Yes, I need DE for sprite loop.
ADD HL,BC is the same as:
LD A,L
ADD &50
LD L,A
JR NC,SKIP
INC H

SKIP:
No more space for optimizing anything. I think. :)
Title: Re: Scramble - New game for Amstrad CPC
Post by: Arnaud on 15:02, 10 March 19
@PuzCPC (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2821) and @ervin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=82)

Can you explain me a little about compiled sprites ?

All i my understand is the sprite datas are directly included in the code. That right ?

;D
Title: Re: Scramble - New game for Amstrad CPC
Post by: Targhan on 15:05, 10 March 19
Hey, why don't you use the stack instead of a loop?

RET instead of decreasing and looping.
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 15:14, 10 March 19
Quote from: Targhan on 15:05, 10 March 19
Hey, why don't you use the stack instead of a loop?

RET instead of decreasing and looping.

How? Please explain.
You know, I could not even set up a new stack addr. ;D

PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 15:21, 10 March 19
Quote from: Arnaud on 15:02, 10 March 19
@PuzCPC (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2821) and @ervin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=82)

Can you explain me a little about compiled sprites ?

All i my understand is the sprite datas are directly included in the code. That right ?

;D

I'm still a student and not a teacher. ;D ;D
Title: Re: Scramble - New game for Amstrad CPC
Post by: Targhan on 17:27, 10 March 19
It's something called "RET table". It requires you to divert the stack, at least momentarily.

Let's say you want to have a "displayStuff" called 5 times. The normal way, using A:
   ld a,5
displayStuff
   ...
   dec a
   jr nz,displayStuff

With a RET table:
   ld sp,RetTable
DisplayStuff
   ...
   ret
AfterDisplayStuff
   ...
RetTable
   dw DisplayStuff
   dw DisplayStuff
   dw DisplayStuff
   dw DisplayStuff
   dw DisplayStuff
   dw AfterDisplayStuff

This saves one 8 bit register, and is one cycle faster (RET is 3 cycles, djnz is 4/3 if no jump, dec a+jr nz is the same).
This has some constraint of course, but I think it is rather elegant. You can also set SP to RetTable + 2/4/6 etc. if you need to change the loop counter, no need to duplicate the RetTable if you don't need to.

Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 18:31, 10 March 19

Hi,
Thank you very much for the explanation!
This will help me at the next project.
PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: AxelStone on 20:27, 10 March 19
The feeling is totally arcade, really a great job!!  ;) ;)
Title: Re: Scramble - New game for Amstrad CPC
Post by: jomicamp on 01:53, 11 March 19
Fantastic job!
What a great conversion! Congratulations and, by the way,...
What about converting Galaga??!!  ;D


Best regards
Title: Re: Scramble - New game for Amstrad CPC
Post by: ervin on 07:36, 11 March 19
Quote from: Arnaud on 15:02, 10 March 19
@PuzCPC (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2821) and @ervin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=82)

Can you explain me a little about compiled sprites ?

All i my understand is the sprite datas are directly included in the code. That right ?

;D

Hi Arnaud.

A compiled sprite is actually a program/function that draws the sprite.
It's fast because it doesn't have to navigate through a data table of byte values, but it takes up more memory because it contains the instructions *and* the byte values to print the sprite.
It's very helpful for transparency, as there is no need to check for a transparent byte value. That byte can simply be skipped over with INC in the compiled sprite code.

This is a great post to read:
http://www.cpcwiki.eu/forum/programming/compiled-sprites/msg124169/#msg124169 (http://www.cpcwiki.eu/forum/programming/compiled-sprites/msg124169/#msg124169)
Title: Re: Scramble - New game for Amstrad CPC
Post by: Golem13 on 14:20, 11 March 19
Excellent conversion.
Really very good work, with a sensations and result very faithful to the arcade.
Congratulations, I just love it!
Title: Re: Scramble - New game for Amstrad CPC
Post by: dakidski on 20:25, 11 March 19
Simply amazing. Thanks!
Title: Re: Scramble - New game for Amstrad CPC
Post by: Arnaud on 20:34, 11 March 19
Quote from: ervin on 07:36, 11 March 19
Hi Arnaud.

A compiled sprite is actually a program/function that draws the sprite.
It's fast because it doesn't have to navigate through a data table of byte values, but it takes up more memory because it contains the instructions *and* the byte values to print the sprite.
It's very helpful for transparency, as there is no need to check for a transparent byte value. That byte can simply be skipped over with INC in the compiled sprite code.

This is a great post to read:
http://www.cpcwiki.eu/forum/programming/compiled-sprites/msg124169/#msg124169 (http://www.cpcwiki.eu/forum/programming/compiled-sprites/msg124169/#msg124169)

Thanks @ervin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=82),
i just tried to draw opaque sprite in this way and i have got a moderate speed gain (around %20) but it takes too much memory.
Title: Re: Scramble - New game for Amstrad CPC
Post by: Xyphoe on 21:46, 11 March 19
Amazing work! I think it's arcade perfect!
Here's my little longplay of it (1 loop, no life lost) taken from Friday's Amstream :)

https://www.youtube.com/watch?v=maQN0NZUhfw
Title: Re: Scramble - New game for Amstrad CPC
Post by: alex76gr on 11:45, 12 March 19
Another hi-score after 2 complete loops.
I'll be back.
Title: Re: Scramble - New game for Amstrad CPC
Post by: VincentGR on 12:01, 12 March 19
When the highscore race started, I had Alex in mind...
You have no chance.
Title: Re: Scramble - New game for Amstrad CPC
Post by: Hammer on 18:18, 12 March 19
Will there be a tape version for all the 464 users?
Title: Re: Scramble - New game for Amstrad CPC
Post by: MiGaNuTs on 18:24, 12 March 19
omg, it's so fast !
good job.
Title: Re: Scramble - New game for Amstrad CPC
Post by: GUNHED on 23:03, 12 March 19
Decades ago I loved to play Avenger on CBS, I got really good at that, now I suck with entering higher stages here... but hey, I can poke it.  ;D



Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 14:28, 13 March 19

Hi,
Tape version is added! 8)


Quote from: Xyphoe on 21:46, 11 March 19
Amazing work! I think it's arcade perfect!
Here's my little longplay of it (1 loop, no life lost) taken from Friday's Amstream :)


Thanks for the video! I enjoyed watching! GG  :)



Quote from: alex76gr on 11:45, 12 March 19
Another hi-score after 2 complete loops.
I'll be back.



Omg, you're really good! :o
For me, meteors are usually fatal.
Same as on a Arcade when I was a boy. ;D

Title: Re: Scramble - New game for Amstrad CPC
Post by: SpDizzy on 11:38, 21 March 19
Quote from: PuzCPC on 14:28, 13 March 19
Hi,
Tape version is added! 8)
Thanks so much for that .cdt version, just waiting to enjoy it on my 464!!
Title: Re: Scramble - New game for Amstrad CPC
Post by: zhulien on 18:27, 30 March 19
I just watched the Xyphoe video of Scramble, wow!!!  that's awesome.

It makes my all time best arcade port list to Amstrad CPC for sure, which is now (not in any specific order):


- Scramble- Frogger
- R Type (both versions, but the remake obviously is noteworthy)
- Donkey Kong
- Moon Cresta
- Elevator Action *
- Star Wars *
- Empire Strikes Back *


* only just worthy of best arcade port list, in all cases the audio isn't faithful enough but I love the Elevator Action music though

Title: Re: Scramble - New game for Amstrad CPC
Post by: zhulien on 18:36, 30 March 19
Will we ever see a Super Cobra port?  Perhaps 90% of Scramble source can be re-used for that?  or a physical release (wishful thinking)?
Title: Re: Scramble - New game for Amstrad CPC
Post by: BSC on 20:49, 30 April 19
Hej PuzCPC, your game looks fantastic and was among my favourites back in the olden days. Well done!
Title: Re: Scramble - New game for Amstrad CPC
Post by: XeNoMoRPH on 12:49, 02 May 19
https://twitter.com/8bitsdepoder/status/1123884639624605697
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 02:54, 05 July 19

I did not answer for a long time. There was much else to do. I was working on a new game. I've already done all the graphics. I've made all the levels with my new level editor. This time for PC. I just love to do Editors!  ;D But I need to transfer everything to the game itself. I have not done anything for more than a month and a half. >:( The new game will be my better version of Super Cobra. Of course, if I manage to do it. :D


Quote from: zhulien on 18:36, 30 March 19
Will we ever see a Super Cobra port?  Perhaps 90% of Scramble source can be re-used for that?  or a physical release (wishful thinking)?


I don't like Super Cobra. It's ugly and weird for me. :) I will do my own version. Super Mamba! :laugh:


Quote from: BSC on 20:49, 30 April 19
Hej PuzCPC, your game looks fantastic and was among my favourites back in the olden days. Well done!


My too. But it was too hard for me and I watched others more, than I played myself. :D


Quote from: XeNoMoRPH on 12:49, 02 May 19

https://twitter.com/8bitsdepoder/status/1123884639624605697 (https://twitter.com/8bitsdepoder/status/1123884639624605697)


Taking into consideration that it's made in Basic, It's very good!! I wonder if he used a similar scrolling method like me at Scramble.


PuzCPC
Title: Re: Scramble - New game for Amstrad CPC
Post by: XeNoMoRPH on 06:25, 05 July 19
Super Mamba , new game ?  :o :o
Title: Re: Scramble - New game for Amstrad CPC
Post by: VincentGR on 08:14, 05 July 19
Oooohhhhh !!!!


Super Cobra was just OK, I have to agree with you.
What was the other clone with the submarine called?
Saw that again yesterday but I can't remember the title.
Title: Re: Scramble - New game for Amstrad CPC
Post by: ervin on 11:52, 05 July 19
Was it Cosmic Avenger?

https://www.arcade-history.com/?n=cosmic-avenger&page=detail&id=506 (https://www.arcade-history.com/?n=cosmic-avenger&page=detail&id=506)
Title: Re: Scramble - New game for Amstrad CPC
Post by: VincentGR on 11:57, 05 July 19
Cosmic Avenger, I like it.


It was Mariner  :)


https://www.youtube.com/watch?v=WpVEYkSqvQY (https://www.youtube.com/watch?v=WpVEYkSqvQY)
Title: Re: Scramble - New game for Amstrad CPC
Post by: PuzCPC on 02:38, 08 July 19
Quote from: XeNoMoRPH on 06:25, 05 July 19
Super Mamba , new game ?  :o :o



Yes! It will be a new game if I manage to do it. I'll use the same code as Scramble. With many changes.


Quote from: VincentGR on 11:57, 05 July 19
Cosmic Avenger, I like it.


It was Mariner  :)



https://www.youtube.com/watch?v=WpVEYkSqvQY (https://www.youtube.com/watch?v=WpVEYkSqvQY)


Interesting. For this two games, I did not know it existed. It will need to be tested. :)
Is there any other clone except these three?


PuzCPC

Title: Re: Scramble - New game for Amstrad CPC
Post by: sunn on 22:14, 07 July 20
Really strange. The game works with Monster Arcade joystick and MSX adapter. Both buttons work correctly. But no other game seems to work. Only Scramble and C4CPC menu works with this combo. Wonder what can be causing it? Neither button will work with other games.


And thanks for a marvellous port of Scramble 👍


https://monsterjoysticks.com/retro-gaming-joystick-kits/8-16bit-retro-joystick-kits (https://monsterjoysticks.com/retro-gaming-joystick-kits/8-16bit-retro-joystick-kits)
Title: Re: Scramble - New game for Amstrad CPC
Post by: zhulien on 20:44, 28 July 20
Quote from: VincentGR on 11:57, 05 July 19
Cosmic Avenger, I like it.


It was Mariner  :)


https://www.youtube.com/watch?v=WpVEYkSqvQY (https://www.youtube.com/watch?v=WpVEYkSqvQY)


Awesome, it actually looks better than Cobra - I have never seen this before.
Title: Re: Scramble - New game for Amstrad CPC
Post by: Nomad on 22:07, 12 October 20
@PuzCPC (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2821) this was the first game that I loaded into my 464 and I primarily obtained TapDancer and a car cassette adapter in order to play it. As I mentioned in my intro thread, this is a masterpiece of programming and also tremendous fun! Thank you for sharing this with the CPC community and especially for free!  :o

I look forward to seeing your future efforts - if this stellar effort is anything to go by, we're in store for some gems.  :)
Title: Re: Scramble - New game for Amstrad CPC
Post by: mr_lou on 06:32, 26 November 20
Last weekend we had a couple of friends visiting us, bringing their Amiga and Xbox. Then we played retro games. Me on my CPC of course.  :)  First time I gave Scramble a proper go. I know the game well from the arcade, but was never able to reach that far.
On the CPC though, I got through all the levels, though I missed the base at the end.

But man that was fun! Even funnier is that I never actually realized, that the LCD game my brother had as a kid; "Cosmic Scramble" (never noticed the name), was in fact an LCD version of Scramble. So as I progressed through the levels of your Amstrad CPC Scramble, I recognized the levels from that LCD game, which was somewhat of a nostalgic booster.  :D
https://www.worthpoint.com/worthopedia/cgl-cosmic-scramble-tabletop-game-463466658

Your CPC Scramble game is just another example of a great game we should have had looong time ago.  :)  But better late than never!!!  Really well done!  And thanks for the nostalgic trip.
Title: Re: Scramble - New game for Amstrad CPC
Post by: Gryzor on 09:20, 26 November 20
That's a nice-looking tabletop game!!
Title: Re: Scramble - New game for Amstrad CPC
Post by: eto on 07:46, 24 April 21
Quote from: PuzCPC on 01:37, 06 March 19After about ten months of learning and coding it's finally here, my first game in ASM.

This game is just amazing! I really love it. Imho one of the best arcade ports on the CPC.
Title: Re: Scramble - New game for Amstrad CPC
Post by: Shaun M. Neary on 00:13, 28 July 21
Boy did I have fun with this one tonight.

Took me two hours, but I finally managed to do a loop of this excellent game!
No cheats, snapshots or emulation. The usual drill.

Final score: 41,320

Now I'm gonna put it to rest though!
(https://scontent-dub4-1.xx.fbcdn.net/v/t1.15752-9/226965337_1504686036533487_1418334393995298344_n.jpg?_nc_cat=107&ccb=1-3&_nc_sid=ae9488&_nc_ohc=bith1EWCIhgAX84iibw&_nc_ht=scontent-dub4-1.xx&oh=a3ac81d8d870298c44d0e9cdc9ba8700&oe=6124E789)
Title: Re: Scramble - New game for Amstrad CPC
Post by: sunn on 22:34, 12 June 23
Any news about the new game? Also, hope you find the time to do Super Cobra one day. It would be great to have CPC versions of both classics.
Title: Re: Scramble - New game for Amstrad CPC
Post by: eto on 07:16, 13 June 23
Quote from: sunn on 22:34, 12 June 23Any news about the new game?
What news are you looking for? Once a game is released it's rare that there will be more news. 
Title: Re: Scramble - New game for Amstrad CPC
Post by: sunn on 06:50, 17 June 23
If you take your time and read all that it is written above it will become clear to you that a new game was discussed:
QuoteSuper Mamba , new game ?  (https://www.cpcwiki.eu/forum/Smileys/SoLoSMiLeYS1/shocked.gif) (https://www.cpcwiki.eu/forum/Smileys/SoLoSMiLeYS1/shocked.gif)


Yes! It will be a new game if I manage to do it. I'll use the same code as Scramble. With many changes.
Powered by SMFPacks Menu Editor Mod