| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 270
» Latest member: Exile
» Forum threads: 1,083
» Forum posts: 6,474
Full Statistics
|
| Online Users |
There are currently 67 online users. » 0 Member(s) | 64 Guest(s) Baidu, Bing, Google
|
| Latest Threads |
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 838
|
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 410
|
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 442
|
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 255
|
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 508
|
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 621
|
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: zedex82
2025-10-05, 07:36 PM
» Replies: 2
» Views: 494
|
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 484
|
ZX Basic Studio Bugs
Forum: Bug Reports
Last Post: Duefectu
2025-09-23, 04:07 PM
» Replies: 5
» Views: 1,400
|
Printing with FZX
Forum: Help & Support
Last Post: boriel
2025-07-17, 10:08 PM
» Replies: 1
» Views: 2,090
|
|
|
| NextBuild sprites |
|
Posted by: Crivens999 - 2023-11-13, 11:08 AM - Forum: Help & Support
- Replies (2)
|
 |
Been using NextBuild for a little while, mucking around with my own editor for creating maps/sprs etc, got my scrolling tilemap working, but have hit a bit of a wall with sprites.
Ok so as far as I can gather the Next can handle 64 hardware sprites with 256 colours, or 128 hardware sprites with 16 colours (4bit).
When I use the InitSprites command I think this loads in upto 64 (or 128 for 4bit) sprites into the video memory (max is 16k). Then when I use UpdateSprite I can assign one of those sprite images (patterns in code) to a sprite ID. So I can use the same sprite image many times for my 64 onscreen sprites.
All good, except my main player is 4 sprites (32x32). It can move in 8 directions, and there are 5 animation frames. So in total 160 sprites just for the player.
So I'm running out of sprites. Now before I go mucking around reducing graphics to single sprite sizes, or using flipping/mirroring etc, then is it possible to use InitSprites, or some other command, to force load new images over the loaded ones? I was thinking of keeping the first 4 sprites just for the player and then just initialising those 4 sprites as the animation or direction changes. A quick test of using InitSprites (for the full 64 sprites) every frame shows this doesn't slow things down badly, so hopefully is possible. I don't really know ASM well enough to alter the InitSprites, but basically would be the same but with a starting point (so can init just the first 4 sprite, then the next 4 sprites (eg. for enemy)).
Also is it possible to use 8bit graphics (256 colour) for the layer 2 tilemap, and 4bit graphics (16 colour) for the sprites?
|
|
|
|