Author Topic: Zapiys attempt at a ZX Speccy Game Dev thread.  (Read 2401 times)

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 12989
  • Country: england
  • Karma: 79
    • View Profile
Zapiys attempt at a ZX Speccy Game Dev thread.
« on: April 03, 2018, 18:42:14 PM »
Evening all,

Yep thats right, I am having a bash at making a game using the AGD system, so far I am running with a couple of ideas, one it a standard platform game with the aim being to rebuild Retro Video Gamer, a nasty modern gamer has come along and smashed the RETROVIDEOGAMER name up and all the letters have spread far and wide, the aim is to collect all the letters and bring RVG back..

A small video



What you think?

Secondly

I am doing a maze type game or maybe a better description is pacman, its called Tyre Collector, basically its a utopian world and rubber is at a premium so you are hunting for all the old tyres as they equal points and points mean prizes.  Collect them all if you can lol.

A early dev pic




So with that in mind and the fact we have a few coders in here, I'd like your input as well if possible guys and maybe start a half decent thread on developing a game from scratch (AGD wise lol)

Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline Shadowrunner

  • Global Moderator
  • Hero Member
  • *
  • Posts: 5616
  • Country: ca
  • Karma: 90
    • View Profile
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #1 on: April 03, 2018, 19:31:05 PM »
Good start. :)

Offline TrekMD

  • Administrator
  • Hero Member
  • *
  • Posts: 23869
  • Country: us
  • Karma: 96
    • View Profile
    • http://plus.google.com/+EugenioAngueira
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #2 on: April 03, 2018, 23:59:34 PM »
Cool! 

Going to the final frontier, gaming...

Offline Saturn

  • Global Moderator
  • Hero Member
  • *
  • Posts: 2919
  • Country: us
  • Karma: 21
    • View Profile
    • http://jaysmith2000.ipbhost.com/index.php?s=c827a7b611daaaf555722b332b1b9a2c&act=idx
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #3 on: April 04, 2018, 04:03:08 AM »
Loving it! Can't wait to see more 8)

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 12989
  • Country: england
  • Karma: 79
    • View Profile
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #4 on: April 04, 2018, 10:42:01 AM »
Thanks guys, done a little more today.

Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline DeadVoivod

  • Reviewer
  • Sr. Member
  • *
  • Posts: 287
  • Country: lu
  • Karma: 11
    • View Profile
    • Classicamiga
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #5 on: April 04, 2018, 11:22:45 AM »
Great, I guess time plays also a big factor here?

Offline Corporal Jonlan

  • Developer
  • Jr. Member
  • *****
  • Posts: 42
  • Country: it
  • Karma: 4
    • View Profile
    • http://www.alessandrogrussu.it
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #6 on: April 04, 2018, 16:26:28 PM »
Hi Zapiy,

nice to see you at work with AGD, please let us know how it's going.

Feel free to ask for advice if you need it  :)
Author of several Spectrum games, a fast tape loading scheme and the Spectrumpedia.

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 12989
  • Country: england
  • Karma: 79
    • View Profile
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #7 on: April 04, 2018, 22:11:30 PM »
Yeah, I will have a bash daily but take breaks so it don't ware me down,.

Cheers CJ.
Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 12989
  • Country: england
  • Karma: 79
    • View Profile
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #8 on: April 05, 2018, 09:46:57 AM »
Thanks Alessandro, here is a snapshot of the Tyre Collector game.
Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline Greyfox

  • Administrator
  • Hero Member
  • *
  • Posts: 4781
  • Country: ie
  • Karma: 31
    • View Profile
    • http://www.atarigamer.co.uk
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #9 on: April 05, 2018, 12:29:44 PM »
this is pretty impressive stuff fella, love where you going with these tech demos so far, now all you need to do is plot a storyline, some music, a loading screen, instruction manual and some cassette tape boxart...no pressure ;)

Offline Corporal Jonlan

  • Developer
  • Jr. Member
  • *****
  • Posts: 42
  • Country: it
  • Karma: 4
    • View Profile
    • http://www.alessandrogrussu.it
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #10 on: April 05, 2018, 12:37:42 PM »
Hi Zapiy,

you typede SPRITELEFT instead of SPRITEUP in the IF CANGOUP... part, thus blocking movement upwards.

Other things you should check are:

- variable A (general counter used to calibrate animation speed) is not defined. Type:
 
Code: [Select]
LET A 0 
  in Game Initialization, and:
 
Code: [Select]
  IF A = 4
  LET A 0
  ELSE
  ADD 1 TO A
  ENDIF
 
  in Main Loop 1; altering the number in the first line will make the animation slower if higher, and faster if lesser;
 
- Sprite 3 does not contain the same number of frames as the other three. This causes glitches when moving the sprite around.
Author of several Spectrum games, a fast tape loading scheme and the Spectrumpedia.

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 12989
  • Country: england
  • Karma: 79
    • View Profile
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #11 on: April 05, 2018, 12:59:50 PM »
Hi mate,

Thanks for spotting those silly errors, I thought i had already done the counter in Game Initialization but that was my other game lol.

I was thinking that my animation for the sprite only needs to be two frames any way as the next two are repeats of the first 2.. Whats your thoughts on that?

Would that save a lot of space as the game screens build?

Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline Corporal Jonlan

  • Developer
  • Jr. Member
  • *****
  • Posts: 42
  • Country: it
  • Karma: 4
    • View Profile
    • http://www.alessandrogrussu.it
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #12 on: April 05, 2018, 13:20:43 PM »
Two frames for each sprite would save a lot of memory since all sprites in AGD are pre-shifted.

Of course you should care to design each frame in such a way that movement feels pleasing to the eye. For a practical example, take a close look at the sprites in Seto Taisho Vs Yokai, Seto Taisho To Kazan and Sophia: in all of them, sprites only have two animation frames.
Author of several Spectrum games, a fast tape loading scheme and the Spectrumpedia.

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 12989
  • Country: england
  • Karma: 79
    • View Profile
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #13 on: April 05, 2018, 14:24:11 PM »
Cheers fella.

Is there a resource i can refer to for this, i'm trying to make an enemy go randomly around the whole maze now.

This really is interesting stuff.

Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline Corporal Jonlan

  • Developer
  • Jr. Member
  • *****
  • Posts: 42
  • Country: it
  • Karma: 4
    • View Profile
    • http://www.alessandrogrussu.it
Re: Zapiys attempt at a ZX Speccy Game Dev thread.
« Reply #14 on: April 30, 2018, 22:50:07 PM »
Is there a code that slows the chasing enemies or one that makes them make random moves here and there?
Hi Zapiy,

there are no specific instructions in AGD for random movement; you can get a random value in the enemy sprite movement script in order to let it take a certain direction when such variable assumes a certain value and the sprite itself can move in that direction. I did that with the Eugene sprite in the last part of Cousin Horace. Take a look at this excerpt:
Code: [Select]
[...]
IF DIRECTION 0
IF LADDERABOVE
SPRITEUP
ELSE
GETRANDOM 2
IF RND = 0
LET DIRECTION 2
ELSE
LET DIRECTION 3
ENDIF
ENDIF
ENDIF
IF DIRECTION = 1
IF LADDERBELOW
SPRITEDOWN
ELSE
GETRANDOM 2
IF RND = 0
LET DIRECTION 2
ELSE
LET DIRECTION 3
ENDIF
ENDIF
ENDIF
IF DIRECTION = 2
IF CANGOLEFT
SPRITELEFT
ELSE
LET DIRECTION 3
ENDIF
GETRANDOM 4
IF RND = 0
IF LADDERABOVE
LET DIRECTION 0
ELSE
IF LADDERBELOW
LET DIRECTION 1
ENDIF
ENDIF
ENDIF
ENDIF
IF DIRECTION = 3
IF CANGORIGHT
SPRITERIGHT
ELSE
LET DIRECTION 2
ENDIF
GETRANDOM 4
IF RND = 0
IF LADDERABOVE
LET DIRECTION 0
ELSE
IF LADDERBELOW
LET DIRECTION 1
ENDIF
ENDIF
ENDIF
ENDIF
The episode has a ladders and platforms layout disguised as a top-down maze (play it or see the walkthrough video on the RZX YouTube channel), so this code should prove useful in case you want to create either a platform or a maze game.

Hope that helps!
Author of several Spectrum games, a fast tape loading scheme and the Spectrumpedia.

 

SMF spam blocked by CleanTalk