flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > Hobby BASIC, a simple yet powerful BASIC interpreterGoto page Previous 1, 2, 3, 4, 5, 6 Next |
| Author |
|
|
revolution 21 Oct 2016, 12:13
filox wrote: Sorry but where i can find sources of Hobbybasic? |
|||
|
|
system error 22 Oct 2016, 13:32
This is good. Keep it coming, bro!
|
|||
|
|
sleepsleep 26 Oct 2016, 12:36
hi filox,
you could try pm picnic for source etc |
|||
|
|
Picnic 26 Oct 2016, 13:37
Code: ! ---------------------------------------------------------------------------------------- ! POLARIZATION.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! GAME DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! Sophisticated puzzle game where you manipulate blocks using electromagnetic polarity. ! Use attraction and repulsion mechanics - positive and negative blocks interact ! based on their poles. Change your player's polarity to solve spatial challenges. ! ! Controls: ! - Arrow Keys: Move and push blocks ! - Space: Change player polarity ! - 1: Previous level ! - 2: Next level ! - 4: Undo move ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:42; edited 6 times in total |
|||
|
|
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 |
|||
|
|
Picnic 21 Nov 2016, 15:50
Code: ! ---------------------------------------------------------------------------------------- ! MAGNETS.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! GAME DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! Challenging puzzle game where you slide blocks across magnetic surfaces, ! navigating portals and toggleable walls to reach your target. ! ! Controls: ! - Arrow Keys: Slide the player block ! - Space: Restart level ! - 1: Previous level ! - 2: Next level ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:44; edited 36 times in total |
|||
|
|
Picnic 21 Dec 2016, 12:34
Code: ! ---------------------------------------------------------------------------------------- ! PUSHPULL.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! GAME DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! Innovative Sokoban variant with dual mechanics - push boxes forward and pull boxes backward. ! Solve 15 challenging levels using strategic pushing and pulling with different box types. ! ! Controls: ! - Arrow Keys: Move and manipulate boxes (push forward/pull backward) ! - Space: Restart level ! - 1: Previous level ! - 2: Next level ! - 4: Undo move ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:45; edited 85 times in total |
|||
|
|
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
|
|||
|
|
Picnic 28 May 2018, 13:49
Code: ! ---------------------------------------------------------------------------------------- ! SLIP.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! GAME DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! Puzzle game where you push boxes onto target positions while preventing goals from slipping. ! Navigate around walls and obstacles to complete each challenging level. ! ! Controls: ! - Arrow Keys: Move and push boxes ! - Space: Restart level ! - 1: Previous level ! - 2: Next level ! - 4: Undo move ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:47; edited 53 times in total |
|||
|
|
Robocod 19 Dec 2018, 21:23
Source code?
|
|||
|
|
sts-q 20 Dec 2018, 09:33
|
|||
|
|
Picnic 05 Mar 2020, 09:56
Code: ! ---------------------------------------------------------------------------------------- ! 2DWORLD.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! PROGRAM DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! 2D World Generation - Procedural terrain generator. ! Explore randomly generated worlds with different biomes. ! ! Features: ! - Procedural terrain generation using averaging algorithms ! - Multiple biomes: grass, water, rocks, trees ! - Smooth world exploration with character movement ! ! Controls: ! - Arrow Keys: Move character around the world ! - Space: Generate a new world ! - ESC: Exit program ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:48; edited 23 times in total |
|||
|
|
Picnic 22 May 2020, 13:13
Code: ! ---------------------------------------------------------------------------------------- ! DRAW.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! APPLICATION DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! ANSI Art Studio Version 0.9.5 - The graphics editor for Hobby BASIC games. ! Create, edit, and export ANSI art with advanced tools and color management. ! Used to design all ANSI graphics in the Hobby BASIC game collection. ! ! Features: ! - Full ANSI art creation and editing suite ! - RGB color scheme management and export ! - Multi-frame animation support ! - Selection tools with transform operations ! - Export to executable BAS scripts ! - Real-time character and color information ! ! Controls: ! - Mouse: Draw, select, and manipulate elements ! - F1-F12: Quick access to tools and functions ! - Arrow Keys: Navigate animation frames ! - Ctrl+Z: Undo last action ! - Insert: Load RGB scheme ! - Q: Exit application ! ! For help and instructions, please refer to the online guide ! https://hobbybasic-guide.netlify.app/#drawing-tool ! ! ---------------------------------------------------------------------------------------- ! TECHNICAL SPECIFICATIONS ! ---------------------------------------------------------------------------------------- ! ! Supported Formats: .ANS (ANSI art), .BAS (exported scripts) ! Color Depth: 16-color ANSI palette with RGB customization ! Canvas Sizes: 80x50 (8x12 pixel font) or 80x75 (8x8 pixel font) ! Export: Generates ready-to-run Hobby BASIC scripts ! ! ---------------------------------------------------------------------------------------- ! COMPATIBILITY NOTE ! ---------------------------------------------------------------------------------------- ! ! For Windows 10/11: ! Enable "Use Legacy Console" in Properties for proper display ! (Right-click title bar → Properties → Options tab) ! ! ---------------------------------------------------------------------------------------- The Working Environment ![]() Last edited by Picnic on 18 Mar 2026, 21:56; edited 28 times in total |
|||
|
|
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. Well done! _________________ ¯\(°_o)/¯ AI may [not] have aided with the above reply. |
|||
|
|
Picnic 22 May 2020, 20:51
Code: ! ---------------------------------------------------------------------------------------- ! THUNDERBALL.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! GAME DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! Strategic puzzle game where you maneuver colored balls to achieve horizontal alignment. ! Move all balls simultaneously, leaving colored trails that create tactical barriers. ! Avoid electrified perimeter fences and plan moves carefully to prevent getting trapped. ! ! Controls: ! - Arrow Keys: Move all balls simultaneously ! - Space: Restart level ! - 1: Previous level ! - 2: Next level ! - 4: Undo move ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:50; edited 6 times in total |
|||
|
|
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")
_________________ ¯\(°_o)/¯ AI may [not] have aided with the above reply. |
||||||||||
|
||||||||||
|
Picnic 23 May 2020, 13:13
Code: ! ---------------------------------------------------------------------------------------- ! DEMO.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! DEMO DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! 2D Platformer Demo with physics and multi-level progression. ! Jump, climb ladders, and navigate through 4 challenging levels. ! Features smooth character animation, collision detection, and gravity physics. ! ! Controls: ! - Arrow Keys: Move left/right and climb ladders ! - Space: Jump ! - ESC: Exit game ! ! ---------------------------------------------------------------------------------------- ! COMPATIBILITY NOTE ! ---------------------------------------------------------------------------------------- ! ! For Windows 10/11: ! Enable "Use Legacy Console" in Properties for proper display ! (Right-click title bar → Properties → Options tab) ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:51; edited 8 times in total |
|||
|
|
Picnic 19 Jan 2021, 12:47
Code: ! ---------------------------------------------------------------------------------------- ! AVIEW.BAS ! Hobby BASIC Interpreter ! Example program from the Hobby BASIC collection ! ! ---------------------------------------------------------------------------------------- ! PROGRAM DESCRIPTION ! ---------------------------------------------------------------------------------------- ! ! Advanced ANSI art viewer with slideshow features. ! Browse and display ANSI artwork from local files or online archives. ! ! Features: ! - Supports multiple ANSI file formats (.ANS, .AIR, .HPE, etc.) ! - Online mode downloads from 16colo.rs archive ! - Offline mode uses local ANSI collections ! - Slideshow mode with adjustable intervals ! - F1 key integration with DRAW program for editing ! - Automatic file caching and format conversion ! ! Controls: ! - Automatic slideshow advancement ! - F1: Open current image in DRAW program ! - ESC: Manual advance to next slide ! ! ---------------------------------------------------------------------------------------- Windows 11 console screenshot. ![]() Last edited by Picnic on 18 Mar 2026, 21:55; edited 26 times in total |
|||
|
|
sleepsleep 19 Jan 2021, 17:05
Quote:
this feature sounds exciting and dangerous at the same time, |
|||
|
| Goto page Previous 1, 2, 3, 4, 5, 6 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.