Author Topic: New CPC Soccer game [WIP]  (Read 7761 times)

0 Members and 2 Guests are viewing this topic.

Offline Nich

  • Supporter
  • 6128 Plus
  • *
  • Posts: 727
  • Country: gb
  • CPC Game Reviews webmaster
    • CPC Game Reviews
  • Liked: 602
  • Likes Given: 722
Re: New CPC Soccer game [WIP]
« Reply #25 on: 14:51, 15 September 19 »

https://twitter.com/voxeltower/status/1172516695308722176

Is it just me, or is anyone else unable to view the videos/animated GIFs embedded in these tweets? I see a screenshot of the game very briefly but the viewing area then goes black. This happens to me in both Firefox 69 and Internet Explorer 11.

Offline VincentGR

  • 6128 Plus
  • ******
  • Posts: 1.231
  • Country: gr
    • Parts from the past.
  • Liked: 707
  • Likes Given: 1797
Re: New CPC Soccer game [WIP]
« Reply #26 on: 14:53, 15 September 19 »
Can't see them on win7, on 10 is fine.

Offline vasilisk

  • CPC664
  • ***
  • Posts: 79
  • Country: gr
  • CPC6128
  • Liked: 19
  • Likes Given: 115
Re: New CPC Soccer game [WIP]
« Reply #27 on: 16:51, 15 September 19 »
I see them on XP in chrome49 ;D

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 728
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 1537
  • Likes Given: 1212
your amstrad news source in spanish language : https://auamstrad.es

Offline luckpro

  • CPC464
  • **
  • Posts: 18
  • Country: es
  • Liked: 21
  • Likes Given: 6
Re: New CPC Soccer game [WIP]
« Reply #29 on: 12:56, 26 November 19 »
Hi people, can someone help me?

I currently have the scoreboard of CPC Soccer at 0x0200 to 0x0700 video memory and it works perfectly, no problem.

But for memory adjustments i would be interested in moving it to memory 0xB400 to 0xB900, but I cannot get adjust R12/R13 correct so that it accesses the 0xB400 position.

I think the problem is that i set the R9 to 0 and the calculations are different.

I don't know exactly how to calculate it. Someone can help me?

Thanks in advance.

Offline Rhino

  • CPC6128
  • ****
  • Posts: 291
  • Liked: 869
  • Likes Given: 366
Re: New CPC Soccer game [WIP]
« Reply #30 on: 19:55, 26 November 19 »
Hi people, can someone help me?

I currently have the scoreboard of CPC Soccer at 0x0200 to 0x0700 video memory and it works perfectly, no problem.

But for memory adjustments i would be interested in moving it to memory 0xB400 to 0xB900, but I cannot get adjust R12/R13 correct so that it accesses the 0xB400 position.

I think the problem is that i set the R9 to 0 and the calculations are different.

I don't know exactly how to calculate it. Someone can help me?

Thanks in advance.
Hi!
There is a limit of 2048 bytes for the video offset in R12/13, so the screen cannot start at 0xB400, in the third page it could start at #8000 + #7fe as maximum. However, it could be done with advanced hard techniques, but I don't think using RVI to reorganize memory is good practice.

Offline luckpro

  • CPC464
  • **
  • Posts: 18
  • Country: es
  • Liked: 21
  • Likes Given: 6
Re: New CPC Soccer game [WIP]
« Reply #31 on: 11:51, 27 November 19 »
Ok, I understand, I will try to organize it in some other way. by the way, what is RVI? :-)

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 728
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 1537
  • Likes Given: 1212
your amstrad news source in spanish language : https://auamstrad.es

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 728
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 1537
  • Likes Given: 1212
Re: New CPC Soccer game [WIP]
« Reply #33 on: 10:06, 21 January 20 »
your amstrad news source in spanish language : https://auamstrad.es

Offline jesusdelmas

  • CPC664
  • ***
  • Posts: 108
  • Country: es
  • Liked: 80
  • Likes Given: 86
Re: New CPC Soccer game [WIP]
« Reply #34 on: 21:26, 21 January 20 »

https://youtu.be/LxyWo2i7tWg


Realy good!!, but it is me or the game sreen shakes and change its shape?


Anyway it looks realy fast, cant wait to see more updates :)

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 850
  • Country: fr
    • urban exploration
  • Liked: 1153
  • Likes Given: 689
Re: New CPC Soccer game [WIP]
« Reply #35 on: 21:29, 21 January 20 »
Realy good!!, but it is me or the game sreen shakes and change its shape?
Anyway it looks realy fast, cant wait to see more updates :)
probably an hardware scroll using R3 registerwhen doign this, it's better to draw a black column to the left or to the right, regarding the R3 valueyou may try in basic 1.1

Code: [Select]
10 FRAME:OUT &BC00,3 : OUT &BD00,&F6:FRAME:OUT &BC00,3 : OUT &BD00,&F5:GOTO 10
use RASM, the best assembler ever made :p

I will survive

Offline luckpro

  • CPC464
  • **
  • Posts: 18
  • Country: es
  • Liked: 21
  • Likes Given: 6
Re: New CPC Soccer game [WIP]
« Reply #36 on: 08:53, 22 January 20 »
probably an hardware scroll using R3 registerwhen doign this, it's better to draw a black column to the left or to the right, regarding the R3 valueyou may try in basic 1.1

Code: [Select]
10 FRAME:OUT &BC00,3 : OUT &BD00,&F6:FRAME:OUT &BC00,3 : OUT &BD00,&F5:GOTO 10



You are right. Use R3 to move 4 pixels (mode 1) in horizontal push scroll and therefore the window shakes. I tried to move it fast so it doesn't bother.

When I'm playing, it doesn't bother me, but I understand that everyone won't like it. For this reason I will add in the menu an option to deactivate the use of R3, although the scroll will become 8 pixels horizontally, a little more abruptly.

Thanks for the comments, they will help me do better.

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 850
  • Country: fr
    • urban exploration
  • Liked: 1153
  • Likes Given: 689
Re: New CPC Soccer game [WIP]
« Reply #37 on: 09:42, 22 January 20 »
When I'm playing, it doesn't bother me, but I understand that everyone won't like it. For this reason I will add in the menu an option to deactivate the use of R3, although the scroll will become 8 pixels horizontally, a little more abruptly.
That's a great option to disable R3 because not all modern TV or VGA-converter may handle the R3 shift!
You do not have any CPU time left to draw two columns? Not so optimized code will take approx 2000 nops, if you have the time!
use RASM, the best assembler ever made :p

I will survive

Online TotO

  • 6128 Plus
  • ******
  • Posts: 3.697
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2819
  • Likes Given: 1695
Re: New CPC Soccer game [WIP]
« Reply #38 on: 09:55, 22 January 20 »
That's a great option to disable R3 because not all modern TV or VGA-converter may handle the R3 shift!
I'm shared about this point of view... Programming CPC things for low-cost TV / converters (I have seen R3 working on a highend Toshiba Regza TV set with Relentless) instead of for the CPC capabilities. The same like programers fix their code to works on emulators... Walking on the head. Into the other hand, most users today run on emulators with R3 suport or watch youtube emulators video.
« Last Edit: 09:59, 22 January 20 by TotO »
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 850
  • Country: fr
    • urban exploration
  • Liked: 1153
  • Likes Given: 689
Re: New CPC Soccer game [WIP]
« Reply #39 on: 10:01, 22 January 20 »
optionnal behaviour, not mandatory!
use RASM, the best assembler ever made :p

I will survive

Online TotO

  • 6128 Plus
  • ******
  • Posts: 3.697
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2819
  • Likes Given: 1695
Re: New CPC Soccer game [WIP]
« Reply #40 on: 10:43, 22 January 20 »
optionnal behaviour, not mandatory!
My post goes over that game feature:
Not sure that developers will program two scrolling code for their smooth games/demo, because thinking about modern display instead of CPC.


By the way, I love this soccer project. I follow it since years, it is a really ambicious game developped for our lovely computer!  :-*
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline luckpro

  • CPC464
  • **
  • Posts: 18
  • Country: es
  • Liked: 21
  • Likes Given: 6
Re: New CPC Soccer game [WIP]
« Reply #41 on: 11:36, 22 January 20 »
That's a great option to disable R3 because not all modern TV or VGA-converter may handle the R3 shift!
You do not have any CPU time left to draw two columns? Not so optimized code will take approx 2000 nops, if you have the time!


Ok, I take note.


I had already thought about the two black columns, but using R12 / R13 scroll it might not be as fast to draw them as we have to calculate the exact place where they should be drawn bytes. In any case I will try to do it.


Thanks for the advice.

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 850
  • Country: fr
    • urban exploration
  • Liked: 1153
  • Likes Given: 689
Re: New CPC Soccer game [WIP]
« Reply #42 on: 11:37, 22 January 20 »
Not sure that developers will program two scrolling code for their smooth games/demo, because thinking about modern display instead of CPC.
that's what he said  ;D -> "For this reason I will add in the menu an option to deactivate the use of R3"
use RASM, the best assembler ever made :p

I will survive

Offline roudoudou

  • 6128 Plus
  • ******
  • Posts: 850
  • Country: fr
    • urban exploration
  • Liked: 1153
  • Likes Given: 689
Re: New CPC Soccer game [WIP]
« Reply #43 on: 11:51, 22 January 20 »
I had already thought about the two black columns, but using R12 / R13 scroll it might not be as fast to draw them as we have to calculate the exact place where they should be drawn bytes. In any case I will try to do it.
Are you aware of gray coding? Instead of run over #000, #800, #1000,#18000, ...  you change only one bit
Code: [Select]
; 000    ; 0
; 001    ; 1
; 011    ; 3
; 010    ; 2
; 110    ; 6
; 111    ; 7
; 101    ; 5
; 100    ; 4
So RAZ a char and go to next line become something like this

Code: [Select]
ld b,nbchar
ld de,screen_width-#2800
reloop:
ld (hl),a : set 3,h
ld (hl),a : set 4,h
ld (hl),a : res 3,h
ld (hl),a : set 5,h
ld (hl),a : set 3,h
ld (hl),a : res 4,h
ld (hl),a : add hl,de : res 3,h
djnz reloop
use RASM, the best assembler ever made :p

I will survive

Offline luckpro

  • CPC464
  • **
  • Posts: 18
  • Country: es
  • Liked: 21
  • Likes Given: 6
Re: New CPC Soccer game [WIP]
« Reply #44 on: 11:50, 27 January 20 »
Thanks roudoudou, I didn't know that trick.


I have tried it in the game and it works perfectly, but unfortunately I cannot apply it because normally the tiles are drawn while the raster is in the middle of the screen approximately (it depends on how charge the game goes).


I have tried to draw sprites, ball and tiles outside the window but it does not give time, and I prefer to draw the ball and sprites outside so that they do not blink.


If I had known this trick before maybe I could have applied it better.


In any case, thank you very much for the advice. I have already added the option to enable / disable the use of R3.

Offline sigh

  • 6128 Plus
  • ******
  • Posts: 1.254
  • Liked: 561
  • Likes Given: 53
Re: New CPC Soccer game [WIP]
« Reply #45 on: 15:36, 29 January 20 »
This is looking great.

Offline XeNoMoRPH

  • Supporter
  • 6128 Plus
  • *
  • Posts: 728
  • Country: es
  • " ... in space no one , can hear you scream ... "
  • Liked: 1537
  • Likes Given: 1212
Re: New CPC Soccer game [WIP]
« Reply #46 on: 08:06, 19 February 20 »
your amstrad news source in spanish language : https://auamstrad.es

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.726
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3274
  • Likes Given: 5936
Re: New CPC Soccer game [WIP]
« Reply #47 on: 10:24, 19 February 20 »
"CPC CUP" :D

Perhaps we should sponsor it so it becomes the CPCWiki cup?

Offline luckpro

  • CPC464
  • **
  • Posts: 18
  • Country: es
  • Liked: 21
  • Likes Given: 6
Re: New CPC Soccer game [WIP]
« Reply #48 on: 13:06, 19 February 20 »
I am open to everything. How much do they pay?  ;D ;D ;D ;D

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.726
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3274
  • Likes Given: 5936
Re: New CPC Soccer game [WIP]
« Reply #49 on: 13:08, 19 February 20 »
Depends on TV ratings I guess 😄