Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 310
» Latest member: Roberthib
» Forum threads: 1,028
» Forum posts: 6,211

Full Statistics

Online Users
There are currently 450 online users.
» 0 Member(s) | 450 Guest(s)

Latest Threads
Includes in ASM
Forum: How-To & Tutorials
Last Post: boriel
Yesterday, 03:50 PM
» Replies: 1
» Views: 19
Intermittent errors
Forum: Help & Support
Last Post: zarsoft
03-12-2024, 12:39 PM
» Replies: 0
» Views: 79
Store array information i...
Forum: Help & Support
Last Post: rbiondi
03-10-2024, 09:42 PM
» Replies: 0
» Views: 103
ScrollLeft function scrol...
Forum: Bug Reports
Last Post: rbiondi
03-07-2024, 03:57 PM
» Replies: 2
» Views: 261
string.bas errors when co...
Forum: Bug Reports
Last Post: rbiondi
03-01-2024, 10:10 AM
» Replies: 2
» Views: 247
Using Beepola with ZX BAS...
Forum: How-To & Tutorials
Last Post: edtoo
02-29-2024, 09:47 AM
» Replies: 15
» Views: 30,305
Johnny Bravo
Forum: Gallery
Last Post: zarsoft
02-11-2024, 11:20 PM
» Replies: 0
» Views: 215
Compiling +D G+DOS progra...
Forum: ZX Basic Compiler
Last Post: boriel
01-22-2024, 08:32 AM
» Replies: 4
» Views: 7,912
VAL = ? (solved)
Forum: Bug Reports
Last Post: zarsoft
01-03-2024, 11:44 PM
» Replies: 8
» Views: 1,929
Wrong math (solved)
Forum: Bug Reports
Last Post: zarsoft
01-03-2024, 11:38 PM
» Replies: 4
» Views: 1,012

 
  From Forum
Posted by: zarsoft - 12-07-2023, 02:54 PM - Forum: Wishlist - Replies (1)

Email notifications from the Forum come from "Forum".

WICH FORUM?!

Can you change 
Forum <forum@boriel.com>
To
Boriel Forum <forum@boriel.com>
or
ZX BASIC Forum <forum@boriel.com>

or something like that?


Thanks.

Print this item

  include
Posted by: zarsoft - 12-07-2023, 02:47 PM - Forum: Help & Support - No Replies

I want to include the file "utils.h" on all my programs.

Is there a way I can do this automatically 
without writing inside my program 
and without writing on the compiler command line?

Can I put this line
#include <utils.h>
inside some compiler file from src\arch\zx48k\library ?

I want this behave like it was on the first line of my program.

Print this item

  Array FLOAT only works if global (solved)
Posted by: zarsoft - 11-14-2023, 12:45 AM - Forum: Bug Reports - Replies (4)

This program only works if the array is global.

Is this supose to work like this?

Code:
SUB Test
DIM T(3) AS FLOAT => {0.5,1.5,2.5,3.5}

PRINT
FOR i = 0 TO 3
  PRINT "T(";i;")= ";T(i)
NEXT i 

T(0) = 0.5
T(1) = 1.5
T(2) = 2.5
T(3) = 3.5

PRINT
FOR i = 1 TO 3
  PRINT "T(";i;")= ";T(i)
NEXT i 

PAUSE 0
END SUB

Test

Print this item

  S$(1) --> ERROR (solved)
Posted by: zarsoft - 11-13-2023, 04:09 PM - Forum: Bug Reports - Replies (1)

Code:
CONST w1$ AS STRING = "ERROR"
DIM w2$ AS STRING

w2$ = w1$
PRINT "-> ";w2$(1)
(this works)

Code:
PRINT "-> ";w1$
(this works)

Code:
PRINT "-> ";w1$(1)
(Error: constant is not a function)

Print this item

  NextBuild sprites
Posted by: Crivens999 - 11-13-2023, 10: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?

Print this item

  Where is the return value? (solved but with exit error)
Posted by: zarsoft - 11-08-2023, 05:16 PM - Forum: Help & Support - Replies (6)

LET s$ = "1+1"
LET s$ = CHR$(_VAL) + """" + s$ + """"
LET r = EvalBasic(s$)

How do I get the return value of VAL ?

Print this item

  Wrong math (solved)
Posted by: zarsoft - 11-08-2023, 09:43 AM - Forum: Bug Reports - Replies (4)

PRINT SIN 1
Gives: 0.841461181640625 (wrong)

LET v = 1
PRINT SIN v
Gives: 0.84147098 (right)

Print this item

  POINT = ? (solved)
Posted by: zarsoft - 11-02-2023, 09:50 AM - Forum: Bug Reports - Replies (1)

Where is the POINT function?

Print this item

  VAL = ? (solved)
Posted by: zarsoft - 10-31-2023, 03:33 PM - Forum: Bug Reports - Replies (8)

f$ = "1+2"
PRINT VAL(f$)
gives 3

PRINT VAL("1+2")
gives 0

Print this item

  The Blue Diamond
Posted by: zarsoft - 10-03-2023, 05:53 PM - Forum: Gallery - No Replies

Click HERE to play online.
[Image: 2.png]

Print this item