Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

BASIC Forum & Tutorials

The tutorials are useful for self-learning and the forum is good for sharing ideas & information · By david.JamIsFun

BazzBasic ver. 1.4 released

A topic by Ek Bass created 6 days ago Views: 41 Replies: 1
Viewing posts 1 to 2
(3 edits)

New features in BazzBasic 1.4

Quick summary: f-string interpolation, ISSET(), implicit line continuation,  a built-in HTTP listener, and a new SQLite tutorial.

## Get It

Download at: https://ekbass.github.io/BazzBasic/

## FSTRING()

Allows you to embed variables and constants directly to string.

LET name$ = "Krisu"
LET LEVEL# = 5
PRINT FSTRING("Hello {{-name$-}}, level {{-LEVEL#-}}")
' Output: Hello Krisu, level 5

See more: https://ekbass.github.io/BazzBasic/manual/#/string_functions?id=fstringtemplate

## ISSET()

Returns 1 if the named variable ($) or constant (#) is declared, 0 otherwise. Useful for guarding optional parameters, checking whether LET has run on a code path, or branching on configuration values.

LET a$ = "hello"
LET b$                  ' declared with no value
LET MAX# = 100
PRINT ISSET(a$)         ' 1
PRINT ISSET(b$)         ' 1  (LET declares it even without a value)
PRINT ISSET(MAX#)       ' 1
PRINT ISSET(undef$)     ' 0
PRINT ISSET(UNDEF#)     ' 0


See more: https://ekbass.github.io/BazzBasic/manual/#/other_functions?id=issetname


## Implicit line continuation

Long expressions and statements can be split across multiple lines. BazzBasic figures this out automatically — there is no special continuation character to remember (no \, no _, no &).

LET total$ = price$ * count$ -
             discount$
LET msg$ = "Hello, " +
           name$ +
           "!"
IF score$ >= 0 AND
   score$ <= 100 THEN
    PRINT "Valid score"
END IF
LET counter$ +=
    step$

See more: https://ekbass.github.io/BazzBasic/manual/#/control-flow?id=line-continuation

## HTTP LISTEN

BazzBasic can act as a small local HTTP server to receive POST requests from a browser-side HTML page or other tooling. The intended use is local-only glue: a static HTML page on the user's machine talks to BazzBasic via fetch().

See more: https://ekbass.github.io/BazzBasic/manual/#/network?id=http-server-listen

## BazzBasic and SQLite-tutorial added to manual

SQLite is a small, fast, file-based database engine that fits BazzBasic perfectly: no server to install, no daemon to manage, and the whole database lives in a single file you can copy, back up, or delete like any other. This page shows how to use it from BazzBasic without any external library — we just call the official sqlite3 command-line tool through SHELL().

See more: https://ekbass.github.io/BazzBasic/manual/#/sqlite

## BazzBasic 1.5?

For BazzBasic version 1.5 the main planned feature is finally GamePad support 

Summer is the hottest season for my second job, so BazzBasic development will be on hold for a little while after version 1.5, at least for the biggest events.

In addition, I also want to develop something myself using it, although I don't know what yet.

But once autumn hits the door, development continues as before.

(1 edit)

Autumn? July to September? I see! 

"In addition, I also want to develop something myself using it, although I don't know what yet." <--- Maybe making the webpage perfect is a good target! ( https://ek-bass.itch.io/ )

My meaning is: putting various excellent items made in BazzBasic into that webpage and that webpage will become an attractive showcase of BazzBasic in the future! Just like the strategy of QBJS on this page : https://boxgm.itch.io/