I am getting an error when trying to allocate memory for a sprite that is 9 pixels by 16 pixels. There should be enough space for this size sprite.
I have allocated memory with this statement:
CONST vtX = &h0600
DEF BYTE(vtX, 0, 1, 120) = 0
Search found 208 matches
- 27 Apr 2023, 12:21
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
- 24 Apr 2023, 15:36
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
Thank you Ari, that clarifies a lot. I will add a section into the manual I am writing as I am at graphics in the manual at the moment.
- 24 Apr 2023, 13:05
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
Can you point me to an explanation of this code: ' Defines the amount of contiguous RAM needed for blit stripes, (in this case 15*6 + 1), min address and search direction _blitStripeChunks_ 15, &h1FA0, &hFFFF, ascending I have assumed that this reserves RAM for BLIT images. I am getting cras...
- 18 Apr 2023, 11:07
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
I was hoping I could use 4 bit colour internally as an option which would allow 2 pixels per byte. It is just that with large sprites built from 2, 4 and 5 sprite images my memory is rapidly disappearing. I am sure I can fit the rest of the game in. I have 27 k left and may have to reduce the gorill...
- 18 Apr 2023, 08:09
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
Right now I use images saved as image.tga at 24 bits. My current project has a lot of image files using a large amount of memory even though I am using a limited set of colours. Are there different image types or loading parameters I can use that will reduce the memory usage per image ? I assume the...
- 10 Apr 2023, 13:26
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
Back onto manual writing after a dose of programming
- 10 Apr 2023, 11:59
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
I think I will then it will be easy to handle a sprite shutdown
- 10 Apr 2023, 11:08
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
It is my issue. I was hoping to be lazy and have a restart api call available that would give me a clean restart. I will go through all the code and make sure that all sprites are absolutely not shown before attempting a restart. It is complicated by the SPRITE SHOW command being a toggle rather tha...
- 10 Apr 2023, 05:35
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: gtBASIC
@at67 Is there a way to reset the program from inside BASIC. I have an issue with cleanup when I am trying to give a restart option. I believe it is an issue with sprites.
- 10 Apr 2023, 01:37
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 108040
Re: Pitfall V1.1.1
Jumping through walls fixed