Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

By any chance are you planning on implementing `TYPE` or similar? I think it might be challenging for a modern programmer to write nontrivial programs without some concept of a struct.

(5 edits) (+1)

Yes - actually, we just added TYPE records to the current Orbis BASIC 32X experimental build.

The idea is to give programs a struct/record-like way to organize data, for example:

TYPE Actor
     X AS INTEGER
     Y AS INTEGER
     SPEED AS INTEGER
END TYPE 
 
DIM Player AS Actor 
DIM Enemy(8) AS Actor
  
Player.X = 100 
Enemy(I).Y = Enemy(I).Y + Enemy(I).SPEED 

The compiler translates these records into Orbis BASIC’s existing fast variable and array system, so it should help organize nontrivial programs without adding a new runtime object layer or intended performance cost.

It is still marked experimental and needs more testing, especially in larger projects, but a small demo is already included in the experimental package. 

(+1)

Amazing. Thank you.

You are welcome! And thank you again for testing and giving useful feedback.