We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 110
» Latest member: JonnyWi
» Forum threads: 125
» Forum posts: 1,479

Full Statistics

Online Users
There are currently 18 online users.
» 1 Member(s) | 17 Guest(s)
WhTurner

Latest Threads
LDArray extension
Forum: Extensions
Last Post: AbsoluteBeginner
5 hours ago
» Replies: 17
» Views: 168
AI learns Small Basic
Forum: Discussion
Last Post: jrmrhrb00
Yesterday, 12:14 AM
» Replies: 6
» Views: 135
Challenge 9 - Quick sort
Forum: Challenges
Last Post: AbsoluteBeginner
11-18-2024, 03:52 PM
» Replies: 47
» Views: 957
How to exit a subroutine ...
Forum: Standard Small Basic
Last Post: litdev
11-11-2024, 12:59 PM
» Replies: 2
» Views: 83
Training program for SB-N...
Forum: Discussion
Last Post: AbsoluteBeginner
11-08-2024, 07:02 AM
» Replies: 13
» Views: 333
SmallBasic Open Edition
Forum: C# Moving from Small Basic
Last Post: KristianVirtanen
11-05-2024, 06:37 PM
» Replies: 21
» Views: 661
UCI Chess Engine
Forum: Challenges
Last Post: Scout
10-30-2024, 10:41 PM
» Replies: 17
» Views: 1,747
Welcome
Forum: Standard Small Basic
Last Post: AbsoluteBeginner
10-30-2024, 10:01 PM
» Replies: 11
» Views: 1,670
Skull Custom Language Cre...
Forum: Discussion
Last Post: z-s
10-28-2024, 04:49 PM
» Replies: 87
» Views: 10,718
SB-Prime Plugins
Forum: Extensions
Last Post: litdev
10-25-2024, 07:52 AM
» Replies: 1
» Views: 74

 
Lightbulb ZSDesk
Posted by: z-s - 06-27-2024, 03:28 PM - Forum: Discussion - No Replies

So Many Projects Working In Our Community So I Started A New Project.
ZSDesk
In This Project I Am Using LDClient And LDServer To Control Graphic Window On Another Computer From Another Computer So That Friends Can Write On Each Other Screen , Draw Text , Add Buttons.
But Everyone Will Have Their Own Code To Communicate (Basically IP : Port of Server).
I Will Soon Provide First Version Of The Program.
I Named This Project ZSDesk (A Small Competitor Of Anydesk).
Any Ideas Are Welcome Smile


I Made first Version With Only One Function DrawBoundText On Client Try It.
Send This Input From Server : GW.DrawBoundText,x-position,y-position,width,text
Example : GW.DrawBoundText,0,0,100,HII SB
Client : JFBB226.000
Server : SSWQ838.000

Print this item

  LIFE GAME : How to optimise/speed up ?
Posted by: Elzaimer - 06-27-2024, 02:09 PM - Forum: Standard Small Basic - Replies (6)

Hello, it's me again Smile

I try to improve my level, so I began another SB project : a life game (NVCV425.000)
I would like to know how to make it run faster, as with big grids it becomes very slow.


For exemple, is there a faster way to display the living cells than using GraphicsWindow.FillRectangle ?


My only idea at this moment to make it a little faster is to merge these 2 Subs (because they can be done in the same loop) :
Sub AffichageTableau               ' displays current Gen grid
Sub CreationTableau_NextGen  '  create nextGen grid

If you have any idea...  Wink

Print this item

  LDPhysics platform game
Posted by: litdev - 06-27-2024, 11:59 AM - Forum: Challenges - Replies (15)

I'm going to have a go at a LDPhysics based game - I've never actually written a whole game using this, only demos, so fancy having a go.  I liked the approach AbsoluteBegginer took sharing the stages of his development of AI game so plan to do the same here.  LDPhysics uses the Box2D physics engine (as was used for Angry Birds and many other physics based games) and is very powerful, but does need a bit of physics knowledge.  When I added it to LD extension I wrote some documentation for it that you can see here.

I plan the game to be based on a platform system with some main game goal, with a player that can find stuff to help like bombs, arrows to shoot ropes to climb etc.  The player will pick things with left mouse and action things with right mouse button and move with arrow keys.  The physics engine works best with things happen roughly on the scale of 1m, which by default is set to 10 pixels.  Initially I will stick with this and make the game area 1000x800 pixels which corresponds to 100x80 m.  I will make my player 10*25 pixels which is quite small, but see how I get on.

The first challenge is to move the player nicely.  InBox2D you don't generally set position and velocity, you interact through forces, impulses and rotational torques.  This is so the player interacts nicely with the physics world and doesn't just 'teleport' about, get hit by things and can fall off ledges etc.  This may be be tricky, I haven't tried this so will see how it works out.

I will start with a blank game template - NJVR762.000 and will post as it develops - any ideas/suggestions along the way very welcome.

Print this item

  What command should I use to make my program pause until the user presses a key?
Posted by: Elzaimer - 06-24-2024, 09:18 AM - Forum: Standard Small Basic - Replies (21)

Hello everyone,

I'm new on this Forum and also new to programming...

I'm trying to code a test to assess the ability to concentrate (https://smallbasic.com/program/?RKCP997.000) but I'm encountering a problem.
This is how it should work:
A letter appears on the screen for 0.5 seconds then it disappears.
You have to memorize it.
Then 4 random letters appear and you must press as quickly as possible on the "Left" key if the original letter is absent and on the "Right" key if it is present.

So far my code works.

But this test should be repeated for 2 minutes, and at the end the number of errors and the average reaction time should be displayed.
But when I make a loop (lines 13 and 38 in my program), the program loops without waiting for the user to press LEFT or RIGHT.
What command should I use to make it pause until the user presses a key?

Thanks for your help ! Smile

Print this item

Exclamation Microsoft Small Basic User Questionair
Posted by: litdev - 06-23-2024, 12:43 PM - Forum: Discussion - Replies (13)

Update

   

Hey
Guests please take a moment to complete a small survey about Small Basic.

Follow the link below.


***** Questionair *****

Original Post

I am thinking about creating a questionair to try to get feedback from SB users out there that are not currently engaged.

I want it to be completely annonymous with results fully shared.  Using Google Forms, respondants do need to be logged in with a Google account, although their details are not recorded.  Any opinions welcome on this.

I want it to be fairly short - here it is at the moment in link below.  At this stage I am looking for ideas or suggestions for the questionair rather than replies to it.

Once we have a form that asks what what we want and has the right tone we can try to advertise it a bit.

Questionair

EDIT

Thanks for feed back - updating with your thoughts...

We know Facebook group has 1500 members and only a couple active contributors.  We can also see that programs published there only get a handful of imports, sometimes none.  On this forum we currently have 34 members and only a few regularly active, but most of the time there are more than 10 guests viewing.

My main question is: Are there a large number of users out there or not, and if there is why isn't there more engagement - as a comminity what are we not doing or doing wrong?

Print this item

  LitDev Version 1.2.28.0
Posted by: litdev - 06-21-2024, 09:07 AM - Forum: Extensions - Replies (4)

   

And a 3D roller coaster example using new cubic spline method, WPHM84.000, import, uncomment File commands and save somewhere.  Needs internet first time run to download a couple images.

   

Print this item

  Small Basic Online
Posted by: z-s - 06-15-2024, 04:25 AM - Forum: Standard Small Basic - Replies (1)

This One Was A Good GUI Of Small Basic Online Give It A Try Smile
CLICK HERE

Print this item

  My small basic
Posted by: z-s - 06-11-2024, 02:37 PM - Forum: Discussion - Replies (1)

I found a new idea of small basic knowledge as my small basic.
Link : https://github.com/H-sooyeon/MySmallBasic


https://github.com/kwanghoon/MySmallBasic

Print this item

  Small basic fun Extension (and other extensions!)
Posted by: z-s - 06-09-2024, 03:03 PM - Forum: Extensions - Replies (9)

I know a Extension named small basic fun in archive may be we could find it link of codeplex archive also we should add extext,exprogram,square basic,data Extension  like Extension you can search thread in man small basic forum archive on way back machine

Print this item

  FastGraphics Extension
Posted by: litdev - 06-09-2024, 12:03 PM - Forum: Extensions - Replies (8)

Recompiled this extension by FuleSnabel for SB 1.2, original source here.  Note the different installation requiring dll added to SB installation folder and that there is no xml intellisense, but the sample is good.

Download it from https://litdev.uk/#Extensions.

EDIT - Minimal intellisense added, at least the number and name of function arguments.

Print this item