1K Hires Meteor Storm, finally started !

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Just got the display al running as it should (I had some problems with the combined display between tower+meteor,meteor alone and earthbottom)

End of game now added. Still to do : firing lasers and adjusting score and lasers.

Then game is ready!

200 bytes still free for coding!
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

There is a bug when I add some code.
Probably an 8 bit add with carry which must remain in a 256 byte range so no carry allowed.

Right now it is solved by adding 256 bytes of RAM so I can get the game working, but it must be solved in the end to fit the 1K!
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Laser and score working, only 1 item for display to code and then make it fit 1K.
Now on 982 bytes, but that's to much for the loader!
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Game fits 1K, now only a better random routine needed to have a better gameplay
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Now the random is much better so here is a first version (untested on a real ZX81, this comes later)

The story of the game:

you control the tower on a planet that is bound to be hit by a meteorstorm.
With the power of previous meteor the inhabitants of the planet were able to built a tower with two lasers to shoot incoming meteor out of the sky.
Missed meteors will impact on the earth. When the earthcrust is opened and a next meteor comes in the planet explodes and the game is over.
However fallen meteors will give new power which can be used for next meteors. Also meteors hitting the very first meteor on which the tower is built can be used for extra power. Shooting lasers will cost more if you keep the keys pressed, so try to shoot as short as possible to save lasers.

Above all will missed meteors reflect in the silver tower before impacting on the earth. Can you make a great score?
Controls: space to (re)start O and P fire left and right


TECHNICAL INFO
The hiresscreen is 6x22+3x21 in size.
The screen is divided in 4 parts:
1) above tower
2) top of tower
3) beneath the top
4) earthbottom

The display is done by two linebuffers which are altered during display to make this screen possible.
After loading the initial earthbottom is corrupted, this is due to the fact that the basicloader is set in the bottom and after starting resetted.
Attachments
ms.p
(936 Bytes) Downloaded 530 times
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Video at Youtube
http://www.youtube.com/watch?v=IKmGM9dF ... e=youtu.be

and the actual source as text down here.
(might change after running on real hardware)
Attachments
MET.TXT
(32.26 KiB) Downloaded 406 times
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: 1K Hires Meteor Storm, finally started !

Post by Andy Rea »

I see the master of 1K is still up to the expected excellent standard we have come to know and love.

Great work, i just don't know how you manage to squeeze it all in

Andy
what's that Smell.... smells like fresh flux and solder fumes...
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Andy Rea wrote:I see the master of 1K is still up to the expected excellent standard we have come to know and love.

Great work, i just don't know how you manage to squeeze it all in

Andy
Blast, just deleted the entire post I just typed.

The trick is to find a game with not to much horizontal movement on too many lines.
Meteor Storm just uses 6 lines of 22 bytes where the display is hidden when needed (only fully shown when meteor is on same line as lasers). The lasers are broken to prevent showing lasers in the meteor when the meteor is not on laserline. The trick in this is that only adjusting fields show the value %10000001 and a space. This is hardly visible as being asynchronous yet it prevents lasers through the meteor to be shown when not allowed. Correct setting for bottom of tower is done while displaying hence no full screen ( some time is needed to fix this).

Bottom is 63 bytes being double displayed.

Best trick is not visible, but is the change of lasers. Instead of making a + and- routine I simply changed the 100 position 1down and added 95. When below 0 the 100 position would remain chr 27 and another 5 was added to make it 0 again and no laser was fired.
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K Hires Meteor Storm, finally started !

Post by dr beep »

Just played Meteor Storm on a real ZX81. Gameplay is perfect as it is. I scored 200 points!
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: 1K Hires Meteor Storm, finally started !

Post by yerzmyey »

dr beep wrote:Just played Meteor Storm on a real ZX81. Gameplay is perfect as it is. I scored 200 points!
Hello,
does it mean it's a final version?
I tested it on EO and keys OP don't react in time (big delay).
Maybe it's a question of the emulator?
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Post Reply