The MASM Forum

General => The Colosseum => Topic started by: caballero on September 17, 2021, 10:38:49 PM

Title: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on September 17, 2021, 10:38:49 PM
https://www.theguardian.com/technology/2021/sep/16/home-computing-pioneer-sir-clive-sinclair-dies-aged-81

https://www.youtube.com/watch?v=XXBxV6-zamM
Title: R.I.P. Clive
Post by: jj2007 on September 18, 2021, 01:04:41 AM
My first "real" computer was ZX Spectrum. So he made it to 81, in line with the ZX 81 ;-)
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on September 18, 2021, 02:13:19 AM
In high school, a friend of mine had a spectrum and we used to play a few games. One had to wait a long time for the funny cassette to reach its exact point.  :rolleyes:


The 100 Best Spectrum Games
https://retro-sanctuary.com/Top-100-Spectrum-Games-Page-1.html


Recent games for the spectrum. Most of the games presented here, although not all, have been released in 2019 or 2020.
https://www.xataka.com/retro/spectrum-sigue-demostrandonos-su-enorme-potencial-estos-siete-juegos-recientes-espectaculares-logran-exprimir-su-hardware


It is impressive the wonders that could be done with so few resources. Perhaps a good starting point for creating challenges today.  :thumbsup:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: Mikl__ on September 18, 2021, 06:03:28 AM
Requiem æternam dona ei, Domine. Et lux perpetua luceat ei. Requiescat in pace. Amen.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: jj2007 on September 18, 2021, 10:43:37 AM
https://www.spiegel.de/netzwelt/gadgets/clive-sinclair-mr-inventor-der-vater-des-zx81-ist-tot-a-8ce72d69-7b90-47a1-b892-fe711e3e4147

It's in German, but Google translate or Deepl.com can do miracles :cool:

Quote
What was left of his companies he sold in the mid-1980s. Freshly divorced, he later surrounded himself with beautiful young women and pursued a second career - as a fairly successful poker player.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on September 18, 2021, 07:02:31 PM
Here you can find emulators for the spectrum:

https://worldofspectrum.org/tools/emulators


I am using right now EmuZWin, playing to one of my most played games in my life: Stardust from Topo Soft, my very first game in life. I thought some time ago on making my own "light" version of it. Many games for Spectrum are just affordable for any of us to make them... any one dares?  :toothy:

Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: daydreamer on September 19, 2021, 03:56:09 AM
Rip sir sinclair
Caballero, making games on few MHz 8bit was really a challenge
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on September 26, 2021, 07:43:51 PM
A very first stage of a basic game. You use the mouse to move a tiny star ship. You may fire with left mouse button, you may shoot only one every time. Enemies only kill you if they touch you. If you kill all the enemies, you win; if they kill you, you lose. 12 kb.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 03, 2021, 11:08:11 AM
The same as the previous one but now, Left button can shoot several times, right button only one missile each time. Also restricted the mouse move. Enemy cannot shoot yet.

Edit: Enemies now can shoot.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 05, 2021, 08:07:22 AM
There are now 100 enemy ships approaching our ship in waves. If we manage to destroy them all, we win. Now enemies do shoot. The bullets have a certain destructive power and the ships have a certain level of life that decreases with each impact. Some bugs fixed too.

Edited 01: A minor bug fixed, at the end of the first match everything is reseted properly.
Edited 02: Fixed the crash on exiting the program
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: HSE on October 05, 2021, 09:36:48 AM
Hi caballero!!

I don't remember any game in TK90  :eusa_snooty:, perhaps I don't have  :sad:

Exception on close:
Code: [Select]
CPU Disasm
Address   Hex dump          Command                                  Comments
00401091  |.  8B45 FC       MOV EAX,DWORD PTR SS:[LOCAL.1]
00401094  |.  8908          MOV DWORD PTR DS:[EAX],ECX  <<<<
00401096  |.  E9 00000000   JMP 0040109B
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: anunitu on October 08, 2021, 07:47:44 AM
my intro to asm was on the 6502 commodore and was hooked right then to asm coding!
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 08, 2021, 08:08:33 AM
Hi, anunitu, long time to hear from you.  :thumbsup:

I had a small collection of video game magazines, with amazing games, like Shadow of the Beast (https://www.youtube.com/watch?v=R_GdJiEjSho), that did not run on my little pc. Instead I had a few as Stardust (https://www.youtube.com/watch?v=cX2BSvvWDdM), Goody (https://www.youtube.com/watch?v=I73QjDWAvQY), Livinstone supongo (https://www.youtube.com/watch?v=SzLoKgP1opQ), Last mission (https://youtu.be/XUlY0rif7RQ)
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: anunitu on October 08, 2021, 08:26:35 AM
old age is slowing me down a bit 74 now 75 this feb
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: hutch-- on October 08, 2021, 09:29:32 AM
 :biggrin:

Its about time you turned up, I thought the girls had ambushed you and carted you off.  :tongue:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: anunitu on October 08, 2021, 09:49:15 AM
being we are almost the same age i survived a stroke and a two week diabetic coma in oct of 2018.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 10, 2021, 02:03:09 AM
I have added sounds to the shoots. "m" for mute/unmute.

Edit01: sounds are now audible on WXP
Edit02: I have added a health bar for the ship
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: Biterider on October 10, 2021, 02:20:59 AM
Hi caballero
Nice retro game  :thumbsup:
I played a while and got an exception when closing

Code: [Select]
004011DC 0F B6 02             movzx       eax,byte ptr [edx] 
004011DF C1 E0 10             shl         eax,10h 
004011E2 09 C1                or          ecx,eax 
004011E4 8B 45 FC             mov         eax,dword ptr [ebp-4] 
004011E7 89 08                mov         dword ptr [eax],ecx  <------------ eax was pointing to an invalid page
004011E9 E9 00 00 00 00       jmp         004011EE 
004011EE C9                   leave 
004011EF C3                   ret

Biterider
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 10, 2021, 04:05:25 AM
Thought I'd already corrected this, I'll take a look, thanks. I only get this error on WXP.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: Biterider on October 10, 2021, 04:30:37 PM
If it helps, I'm on W10/64.


Biterider
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 10, 2021, 07:37:15 PM
I was afraid you'd say that  :azn:

Do you hear the sounds of the shoots or it remains in silence? In my W10 it works aparentely well, I only get the error on my VirtualBox-WXP. Also, here the movements are faster =:/

It will be a slowly debugging time  :undecided:

Thanks  :thumbsup:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: Biterider on October 10, 2021, 08:09:45 PM
Yes, the sound works fine for me.


Biterider
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 12, 2021, 03:41:06 AM
Before closing the program I cleaned some DC buffers that maybe interacted with something on Windows tasks, so I removed that letting Windows do the job. Now it seems that there is no error. However I noticed in my VB-WXP that after the first match, the sound dissapears.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: Biterider on October 12, 2021, 03:59:27 AM
Hi caballero
It works fine here, even after a few matches.  :thumbsup:


Biterider
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 12, 2021, 04:33:42 AM
Thank you for testing  :thumbsup:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 12, 2021, 10:24:10 PM
I have added a pixel clipping text scrolling to introduce the game, maybe a bit long  :angelic:

I'd like to introduce a point counter increased for each ufo killed


Edit: Added a scoring system. Each enemy gives a certain amount of points, which appear for a moment on the screen. The idea is that, when you reach a certain amount, you get some kind of benefit, such as a double shot or extra life. On the right side would be the energy bar of a special enemy, with a greater amount of energy, that would need several shots, and that would give more points.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: Siekmanski on October 13, 2021, 12:44:04 AM
Nice, works perfect here.  :cool:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 13, 2021, 01:37:59 AM
Hi, Siekmanski, thank you for testing it  :thumbsup:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 17, 2021, 02:20:21 AM
Added system points and scoring. Every 400 points, a new life, at a maximum of three. At the starting of every new life, our ship is immune and its colour brightness decreases to indicate it.
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: daydreamer on October 19, 2021, 05:48:09 AM
sound stops after a short while
great :thumbsup:
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 19, 2021, 07:30:24 AM
Which OS?
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: daydreamer on October 20, 2021, 12:22:24 AM
Which OS?
Win10
Title: Re: Clive Sinclair dies, 81, the creator of ZX Spectrum
Post by: caballero on October 24, 2021, 12:24:22 AM
Sprites take much size in the executable, so, since we are dealing with basic sprites, I think I could save some kb using ellipses and circles to drawing them on the fly. And I could use some bigger sprites scaling the same definition.

1. Ellipse: (x/a)^2 + (y/b)^2 = 1
2. Circule: x^2 + y^2 <= r^2

Here are the previous and final UFO with this tricky. [Maybe it could be nice drawing the engine flame too]