flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Hobby BASIC, a simple yet powerful BASIC interpreter

Goto page Previous  1, 2, 3, 4, 5  Next
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20513
Location: In your JS exploiting you and your system
revolution 21 Oct 2016, 12:13
filox wrote:
Sorry but where i can find sources of Hobbybasic?
Have a look at the first post in this thread.
Post 21 Oct 2016, 12:13
View user's profile Send private message Visit poster's website Reply with quote
system error



Joined: 01 Sep 2013
Posts: 670
system error 22 Oct 2016, 13:32
This is good. Keep it coming, bro!
Post 22 Oct 2016, 13:32
View user's profile Send private message Reply with quote
filox



Joined: 13 Feb 2013
Posts: 11
filox 26 Oct 2016, 12:24
revolution wrote:
filox wrote:
Sorry but where i can find sources of Hobbybasic?
Have a look at the first post in this thread.


No source, only EXE and Demo.bas
Post 26 Oct 2016, 12:24
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 13170
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 26 Oct 2016, 12:36
hi filox,
you could try pm picnic for source etc
Post 26 Oct 2016, 12:36
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 26 Oct 2016, 13:37
Flow is a puzzle featuring water as the main character.

Your goal is to guide the water to specific targets.
The water changes shape when it encounters obstacles.
The puzzle has 20 rooms with an increasing level of difficulty.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\FLOW.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:21; edited 4 times in total
Post 26 Oct 2016, 13:37
View user's profile Send private message Visit poster's website Reply with quote
filox



Joined: 13 Feb 2013
Posts: 11
filox 18 Nov 2016, 13:19
Picnic wrote:
Hi filox, the source is not available, at least not yet. Hobby Basic has still some way to go. I want to extend the command list, find methods to make the intepreter faster, add features like user procedures with parameters and local variables and some other ideas i have. This is done somewhat slowly, the only days i can steal some time to work are the weekends.


Hi picnic, if u can share code with us, we can help you possibly to improve it faster and i'm interested in it for educational scope Very Happy
Post 18 Nov 2016, 13:19
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 21 Nov 2016, 15:50
Heartstone is a new block-pushing puzzle game written in Hobby BASIC.

The game takes place in the dungeons of a tower, with the storyline following the hero as they seek to recover magical keys to save the kingdom from darkness.
The puzzles gradually become more challenging, providing an ongoing challenge to the player.

The game combines a sense of adventure with strategy, as the player collects keys to unlock doors in the dungeons and gain experience points.

The game features graphics designed in DRAW, the design program written in Hobby BASIC, and is accompanied by an imposing soundtrack.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\HEARTSTONE.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:23; edited 34 times in total
Post 21 Nov 2016, 15:50
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 21 Dec 2016, 12:34
Pushpull is a small puzzle game written in Hobby BASIC.

The game features: 15 rooms, keyboard movement, undo last move functionality, and sounds.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\SOKOBAN.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:25; edited 83 times in total
Post 21 Dec 2016, 12:34
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 21 Dec 2016, 13:20
Hello, it is very interesting. I was very fond of qbasic. I'd just say that it would be nice to see your page in English, Greek is a bit hard for me Smile
Post 21 Dec 2016, 13:20
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 28 May 2018, 13:49
KAIMA is an arcade puzzle written in Hobby BASIC.

Traverse all the tiles in each area before using the portal to teleport to the next area.
Do not let the heroes kill you! Press X at the right moment to neutralize them.
Any portal can transport you to the next area.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\KAIMA.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:26; edited 51 times in total
Post 28 May 2018, 13:49
View user's profile Send private message Visit poster's website Reply with quote
Robocod



Joined: 05 Mar 2018
Posts: 15
Robocod 19 Dec 2018, 21:23
Source code?
Post 19 Dec 2018, 21:23
View user's profile Send private message Reply with quote
sts-q



Joined: 29 Nov 2018
Posts: 57
sts-q 20 Dec 2018, 09:33
Post 20 Dec 2018, 09:33
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 05 Mar 2020, 09:56
2D World Generation written in Hobby BASIC.

A small program that generates random worlds.
There is no specific goal – just explore.

Use the arrow keys to move. Press the spacebar to create a new world.

The game's source code can be found in the folder: EXAMPLES\MISC\2DWORLD.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:27; edited 21 times in total
Post 05 Mar 2020, 09:56
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 22 May 2020, 13:13
The new version 0.9 of DRAW is ready.

DRAW is a program for designing and editing ANSI graphics, developed entirely in Hobby BASIC.

It is being developed alongside the Hobby BASIC interpreter and takes advantage of many of its capabilities and features.
This version offers significant improvements, making it even more powerful and versatile.

The decision to create DRAW was crucial for the development of the Hobby BASIC interpreter.

The program became the foundation for all subsequent games based on ANSI graphics that are developed with Hobby BASIC.
Without DRAW, the process of creating graphics would be significantly more difficult and time-consuming.
While the capabilities are present, the ease and speed of design allow for faster game development.

DRAW can open standard ANSI images, typically 80x25 in size, as well as multiline ANSI images consisting of more lines.
It achieves this by dividing them into frames. Transitioning, moving, and editing graphics between frames is effortless and intuitive.


The Working Environment

Image


Last edited by Picnic on 19 Feb 2025, 10:51; edited 24 times in total
Post 22 May 2020, 13:13
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4153
Location: vpcmpistri
bitRAKE 22 May 2020, 15:05
I think I ran all of them on Windows 10.

About the mouse one: didn't indicate which button was double-clicked, and the middle button displays as the left button. This might be a limitation of the API - I don't know.

I did find an error in the XONIX game. I was able to meet the edge at the same time as the red spot. This causes the area not to be filled until I completed another closing move. This typically is just a "one-off" error.

Also, an error in DRAW.BAS, line 336, changed to "if p > 269 then break", and it seems to work.

Was only missing 1200 baud modem sounds. Very Happy
Well done!

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 22 May 2020, 15:05
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 22 May 2020, 20:51
SokoRGBan is a small puzzle game written in Hobby BASIC.

It’s a push boxes-style game, but with a twist:
The boxes must be combined into RGB colors before being placed in their correct positions.

Push the boxes into each other to combine their colors.
You can combine colors only once for each box.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\SOKORGBAN.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:28; edited 4 times in total
Post 22 May 2020, 20:51
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4153
Location: vpcmpistri
bitRAKE 23 May 2020, 05:21
Another oddity is not being able to select a character from the codepage that characters are displayed with. The saved images display correctly, but limited character selection as seen in the picture. I was even able to crash the console by selecting different fonts. Windows 10 might be to blame here as they try to push everyone to Powershell.

Putting this in a batch file will compile all the examples:
Code:
FOR %%G IN (.\EXAMPLES\*.BAS) DO (HB "%%G" -bind ".\BIN\%%~nG.EXE")    
...assuming the batch file is with HB.EXE and a directory .\BIN\ has been created. Change the double "%%" to a single "%" to run the command directly at the prompt.


Description:
Filesize: 67.03 KB
Viewed: 23652 Time(s)

HB10win.PNG



_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 23 May 2020, 05:21
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 23 May 2020, 13:13
Magnets is an arcade puzzle game, written in Hobby BASIC.

The objective is simple: make the yellow block (the player) fall exactly onto the green block.
The game is fast-paced and fun, with the added pressure of a countdown timer, adding excitement to the action.

There are a total of 5 worlds, with 51 rooms to explore.
During the game, you will encounter gates that teleport you to different parts of the map and switches that activate or deactivate blocks,
helping or challenging you.

The game features 16 colors, ANSI graphics, sound effects, and electronic music, offering a unique experience in the Windows console.
It is another example of the capabilities of the small BASIC interpreter I’ve developed.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\MAGNETS.BAS.

Controls:
Arrow keys: Move on the map.
Spacebar: Restart the room.
Have fun and good luck!

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:32; edited 6 times in total
Post 23 May 2020, 13:13
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 19 Jan 2021, 12:47
Don't Let Your Goals Slip is a small puzzle game written in Hobby BASIC.

This is a push box-style game with a unique twist: the player can push both the boxes and the targets (goals),
which affects the strategy and puzzle solution.

The game is controlled via the keyboard, includes sound effects, and features an undo move option, just like previous games in the series.

The game's source code can be found in the folder: EXAMPLES\GAMES\WIN10\SLIP.BAS.

Windows 10 console screenshot.

Image


Last edited by Picnic on 03 Mar 2025, 22:31; edited 23 times in total
Post 19 Jan 2021, 12:47
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 13170
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 19 Jan 2021, 17:05

this feature sounds exciting and dangerous at the same time,
Post 19 Jan 2021, 17:05
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.