An overview of programming keyboards and joysticks on the ZX Spectrum Next. A video looking at how to use joysticks and keyboards on the Spectrum Next, using C and z88dk.
Spectrum Next Hardware Sprites Overview The Spectrum Next Wiki lists all the information, but the main points are 128 16x16 pixel sprites Mirror, rotation and magnification of sprites Sprites can be grouped together to make larger sprites The sprite images are stored in their own 16k of memory in the FPGA Think of the sprites as 128 slots in the Next that can each have a small 16x16 pixel image attached to it.
To get a sprite on the screen we need to choose one of the hardware sprites and set its attributes. Things like its x,y position, which sprite pattern to use and so on.
Load sprites into the Next is pretty straight forward once you have the images in the required format. Edit sprites and make a sprite sheet It’s best to work out a workflow for creating sprites and editing them, the tutorials always show ready-made pixel data included as a C header file.
https://opengameart.org/content/top-down-arcade-racing-game Looking at the sprite sheet you can see the cars only have three frames. Forwards Turning right Turning left If we tried to make a game with these we could make some sort of endless driving game where the aim is to continually go forwards up the screen avoiding things.
://github.com/ncot-technology/specnext-sprites-example/blob/master/src/scaling.c#L329 16x16 sprites are a nice size on the Next’s screen. Neither too big nor too small. inset example of next sprites - reuse something from earlier
Bigger sprites 16x16 pixel sprites are pretty good, and you should probably make most of your games with them. The screen is only 256x192 pixels in size so a 16x16 pixel sprite looks quite large.
Bank switching and memory paging The Spectrum Next comes with 1 or 2 megabytes of RAM, but being an 8 bit CPU the most it can address at any one time is 64K.
I’m starting an ongoing series where I learn how to write code for the Spectrum Next. Layer 2 The Spectrum Next has additional video modes compared to the original ZX Spectrum.