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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 268
» Latest member: HusajnDraisajag
» Forum threads: 957
» Forum posts: 6,010

Full Statistics

Online Users
There are currently 81 online users.
» 0 Member(s) | 79 Guest(s)
Google, Yandex

Latest Threads
Features breaking compila...
Forum: Core
Last Post: Ljg701
06-19-2022, 08:44 AM
» Replies: 1
» Views: 142
New Text Adventure game u...
Forum: Gallery
Last Post: RandomiserUsr
06-01-2022, 10:21 PM
» Replies: 0
» Views: 108
Testing a variable within...
Forum: Help & Support
Last Post: RandomiserUsr
03-25-2022, 09:59 PM
» Replies: 11
» Views: 2,138
WHILE Loop vs FOR/NEXT Lo...
Forum: Help & Support
Last Post: RandomiserUsr
03-25-2022, 09:55 PM
» Replies: 2
» Views: 635
The Disputed Territories ...
Forum: Gallery
Last Post: Jbizzel
03-21-2022, 05:29 PM
» Replies: 0
» Views: 307
The sound effect thread
Forum: How-To & Tutorials
Last Post: worcestersource
02-23-2022, 02:22 PM
» Replies: 3
» Views: 840
mine sweeper
Forum: Gallery
Last Post: Jbizzel
02-22-2022, 02:17 PM
» Replies: 2
» Views: 819
Kardinal Kid - new game i...
Forum: Gallery
Last Post: Jbizzel
01-30-2022, 10:25 PM
» Replies: 2
» Views: 746
Frogger 50
Forum: Gallery
Last Post: boriel
01-23-2022, 08:21 PM
» Replies: 2
» Views: 804
snake game
Forum: Gallery
Last Post: boriel
01-21-2022, 08:23 PM
» Replies: 1
» Views: 673

 
  Features breaking compilation in older ZXBasic programs
Posted by: MrKOSMOS - 06-17-2022, 06:51 AM - Forum: Core - Replies (1)

Hello

So I've been using ZXBasic for a while, and after struggling for a while trying to compile some code finally realised some issues. To sum it up, I tried compiling Souls Remastered, since the keyboard input wasn't working on my Timex TC2048. However, while trying to compile I kept getting IF statement errors, which I attributed to the compiler itself. However, it turned out to be due to comments placed in front of the IFs, which were being recognized as one-line commands and "resolving" the IFs, creating errors with the END IFs afterwards. This seems to date back to a previous version before the one-line IF feature was implemented. In fact, many other ZXBasic games by Retrobytes and even the BerkzMan game from the tutorials page seem to expect this feature to be absent in order to compile, so providing a solution seems like a must.
So what do I propose? Well, I see two solutions: One, adding a legacy option for the compiler, say -L. This would be the easiest, and allow compilation of unmodified older code.
Two: implementing a routine that counts all IFs and END IFs in the program flow and checks if they are the same, as well as checking for comments in front of IFs. This may be a more robust solution, letting everyone program as they want without having to check some obscure command line option.

Aside from that, there seem to be a few other bugs. There seems to be no check for writing to memory above the 64k limit, since I have written a few programs that, when loaded through the BASIC loader, give an Out Of Memory error on the Spectrum. Other than that, there seems to be a bunch of data added along the print command, which I assume is a character set. But is this really necessary when the program only uses UDGs or spaces? In that case, the whole set could be left out, saving a decent amount of space. It could even be optionally left out, and swapped for the ROM character set.

Well that would be all, please say what you think

Print this item

  New Text Adventure game underway
Posted by: RandomiserUsr - 06-01-2022, 10:21 PM - Forum: Gallery - No Replies

I have now spent over a year developing a prototype, to a short demo game and on to the new game, Framed!

You can follow the progress here:- 

Game Dev Blog » My Computer World

and how it started
Retro Game Dev » My Computer World

Not sure when it will be finished though as this done in my spare time.
Smile

Print this item

  The Disputed Territories of Ghotto
Posted by: Jbizzel - 03-21-2022, 05:29 PM - Forum: Gallery - No Replies

I made a new game

2 pixel scrolling city bomber type game, with a story built in.

Please let me know what you think. 

Credits:

zx basic,
putChar
zx0
zx paint
beepfx
beepola
DamienG fonts

get it here

Print this item

  WHILE Loop vs FOR/NEXT Loop
Posted by: RandomiserUsr - 03-12-2022, 10:05 AM - Forum: Help & Support - Replies (2)

Hi, quick question:


Programming styles aside which performs better at run time, WHILE or FOR/NEXT ?

I will guess with both are the same? :-)

Thanks

Print this item

Big Grin mine sweeper
Posted by: Jbizzel - 02-20-2022, 09:03 PM - Forum: Gallery - Replies (2)

I made a mine sweeper game for the zx spectrum.

the code is here. 


https://gitlab.com/JB1zzel1/mine-sweeper-zx-spectrum


I'll release it as a tap file with graphics when its finished.

The game is fully working as it is. just fine tuning everything now.

Print this item

  The sound effect thread
Posted by: worcestersource - 02-19-2022, 12:03 AM - Forum: How-To & Tutorials - Replies (3)

Hello everyone,

I thought this would be a nifty place to pop some routines to make sound effects without resorting to asm.

Code:
sub soundBwop()

    dim x, y as uByte

    do until x = 255

        out 254, (y * 8)

        let y = x

        do until y > 239

            let y = y + 16

        loop

        let x = x + 1

    loop

end sub

Which makes a nice 'bwop' sound. it'll also change your border colour, so add the border value to the out statement to stop it changing colour. For example, for the a blue border:
Code:
out 254, (y * 8) + 1

You can play around with this, such as changing the 16 for an 8, or making y count down so the loop duration gets longer each time.

Steve

Print this item

Big Grin Kardinal Kid - new game in zx basic
Posted by: Jbizzel - 01-30-2022, 11:37 AM - Forum: Gallery - Replies (2)

here

[Image: kk.jpg]

Print this item

  Testing a variable within a range
Posted by: worcestersource - 01-27-2022, 08:14 PM - Forum: Help & Support - Replies (11)

Hello!

I was wondering if there was a better way of testing whether a variable was within a range.

So instead of:

Code:
IF a > 0 and a < 30 then...

There was a neater and/or more memory efficient method? These sorts of tricks that can help us eke out every last drop out of zxbasic. Smile

Cheers,


Steve

Print this item

Big Grin Frogger 50
Posted by: Jbizzel - 01-23-2022, 02:53 PM - Forum: Gallery - Replies (2)

OK, I've been at it again. 

FROGGER 50

Changes:

Cool loading screen
Music - Cars by Gary Newman (Get it???)
New BeeperFX sound routines
The original boasted as many UDG as is possible - now there are even more!
Changes to the graphics
re compiled in ZX Basic
Many code tweaks, changes and improvements

keys are 1,9,0 - I couldn't bring myself to change them.




https://www.spectrumcomputing.co.uk/foru...f=3&t=6287

[Image: Frog.jpg]

Print this item

  snake game
Posted by: Jbizzel - 01-21-2022, 06:06 PM - Forum: Gallery - Replies (1)

He is a game I made while leaning ZX basic

It has 5 levels of speed and some nice beeper tracks Smile

SNAKE game

[Image: 0037666-load-1.scr&border=0]

Print this item