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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 484
» Latest member: BigDog
» Forum threads: 2,798
» Forum posts: 26,398

Full Statistics

Latest Threads
SaucerZap
Forum: QBJS, BAM, and Other BASICs
Last Post: dbox
1 hour ago
» Replies: 2
» Views: 24
GNU C++ Compiler error
Forum: Help Me!
Last Post: Kernelpanic
1 hour ago
» Replies: 47
» Views: 605
Mean user base makes Stev...
Forum: General Discussion
Last Post: Kernelpanic
1 hour ago
» Replies: 21
» Views: 360
New Message Box Library U...
Forum: Works in Progress
Last Post: SpriggsySpriggs
1 hour ago
» Replies: 0
» Views: 10
A question on using Infor...
Forum: Help Me!
Last Post: mdijkens
3 hours ago
» Replies: 6
» Views: 94
_IIF limits two question...
Forum: General Discussion
Last Post: madscijr
Today, 03:53 AM
» Replies: 9
» Views: 171
What do you guys like to ...
Forum: General Discussion
Last Post: Pete
Yesterday, 05:16 PM
» Replies: 11
» Views: 192
Fast QB64 base64 encoder ...
Forum: a740g
Last Post: a740g
12-21-2024, 04:43 AM
» Replies: 3
» Views: 472
DeflatePro
Forum: a740g
Last Post: a740g
12-21-2024, 02:11 AM
» Replies: 2
» Views: 80
New QBJS Samples Site
Forum: QBJS, BAM, and Other BASICs
Last Post: dbox
12-20-2024, 06:16 PM
» Replies: 25
» Views: 909

 
  Most Efficient Sprites Question
Posted by: NakedApe - 02-09-2024, 06:24 PM - Forum: Help Me! - Replies (14)

As I continue to have fun writing 2D games with lots of action, Asteroid-esque space stuff, I'm wondering:

What's the most efficient / fastest approach to moving arrays of objects around the screen in QB64PE?

A. Programatically generated images on the fly for fairly simple things?
B. Manipulating strings with DRAW commands, VARPTR$...?
C. Using small images, say 40x40, with _PUTIMAGE commands, _ROTATEIMAGE ()...?


Thanks, and have a great weekend, everybody.

Print this item

  pasting text into the forums editor always pastes as size=1 ?
Posted by: madscijr - 02-07-2024, 05:43 PM - Forum: Site Suggestions - Replies (3)

Does anyone else notice this quirk, where if you paste text into the forums editor, it always shows up size=1 ? 

For example if I copy a single word or phrase "my text" and paste it in here, I get:

Code: (Select All)
[.size=1]my text[./size]
(Note I added a "." so the editor doesn't think they're actual formatting. Even in a code block it seems to interpret those as actual formatting tags.)

It really becomes a problem when pasting in larger text that has formatting. 
For example text copied from here:
   

pasted into the editor looks like this:
   

and dropping down to code view, we have this mess:
   

which wouldn't be so bad, but why the [.size=1] ? 

Is there any way to stop the editor from doing that? 

Any help appreciated!

Print this item

  Welcome home Michael!
Posted by: SMcNeill - 02-07-2024, 12:00 AM - Forum: General Discussion - Replies (8)

For you folks who might have missed it, we have one of those old time QB64 Royality who's finally found his way back home to us all:   https://qb64phoenix.com/forum/member.php...le&uid=388

Michael Calkins...  Programmer extraordinaire.  One of the original guys from waaaaaay back in our days at the QBasic.com forums, and then also from Galleon's original QB64.net forums.  Everyone give him a big ole, "Howdy!", and a nice, "Welcome Back!"   

Personally, I'm quite happy to see you around again, and I'm hoping to catch back up with you whenever you have the time to just sit and waste just shooting the bull together.  Wink

Print this item

  QB64PE Offline Wiki (02-06-2024)
Posted by: SMcNeill - 02-06-2024, 03:03 PM - Forum: Learning Resources and Archives - Replies (11)

If you guys remember, back around Christmas I uploaded a version of our offline wiki then.  That version came in at around 2MB in file size and can still be found hosted on the forums here.  Only thing was, I didn't include any of the images and such for that version (hence the very small size), which produced a readable -- though not quite as pretty -- version of the wiki.

Now, as you guys probably know, I'm not lacking on disk space at all.  I left the images out of the wiki back at Christmas so that it'd be as portable and useful to as many people as possible.  As for myself, however, I wanted a version with all the bells and whistles and pretty little pretties, so I could surf offline without really noticing much difference from surfing online...

And thus I redid the download which now comes in at a larger 32MB compressed size.  (About 290MB uncompressed, give or take.)  Anyone who wants this newer, shinier version, can grab it from the attachment below.  Note that the actual content hasn't changed all that much since X-Mas.  This just has *ALL* the possible resources and not just the html files and such in it.  Wink


.7z   QB64PE Wiki.7z (Size: 32.28 MB / Downloads: 134)

.chm   QB64PE Help.chm (Size: 32.59 MB / Downloads: 95)

.chm   QB64PE Help (Cleaned Up).chm (Size: 5.58 MB / Downloads: 120)

Print this item

  new SIEVE caching algorithm
Posted by: madscijr - 02-06-2024, 02:47 PM - Forum: General Discussion - Replies (1)

You algorithm wizards might want to check this out, supposedly open source and relatively simple, perhaps it could be used in your QB64PE programs?

Revolutionizing Web Caching: Computer Scientists Unveil Simple Yet Game-Changing Algorithm

Quote:SIEVE, a new open-source algorithm developed by computer scientists from Emory University, Carnegie Mellon University, and the Pelikan Foundation, simplifies and improves web cache management. This algorithm effectively decides which data to evict from a cache, enhancing the system’s efficiency and reducing the miss ratio significantly compared to other algorithms.

Print this item

  "5-line" engine
Posted by: James D Jarvis - 02-06-2024, 02:13 PM - Forum: Programs - Replies (35)

playing with the idea of a "10-line" program I cane up with a "5-lines" engine that builds a game map of a cave and handles W,A,S,D navigation. I posted this to a facebook group and another person was able to fir in treasure placement and grabbing. What can you fit in there?

Code: (Select All)
Screen _NewImage(80, 45, 0): _FullScreen: _ControlChr Off: _PrintString (1, 1), String$(3280, 219): dx = 40: dy = 20: Randomize Timer: s = Int(200 + Rnd * (100 * (1 + Rnd * 4))): For d = 1 To s: m$ = m$ + Chr$(49 + Int(Rnd * 4)): Next d: px = 40: py = 20: stand = 0
Do: dx = 40: dy = 20: Color 7: _PrintString (1, 1), String$(3280, 219): For c = 1 To Len(m$): _PrintString (dx, dy), ".": Select Case Mid$(m$, c, 1): Case "1": dy = dy - 1: Case "2": dx = dx + 1: Case "3": dy = dy + 1: Case "4": dx = dx - 1: End Select: Select Case dy: Case 40, 1: dy = 20: dx = 40: End Select: Select Case dx: Case 80, 1: dy = 20: dx = 40: End Select: Next c: Color 15: _PrintString (px, py), Chr$(2)
    Do: _Limit 40: kk$ = InKey$: Loop Until kk$ <> "": kk$ = UCase$(kk$)
pxm = 0: pym = 0: Select Case kk$: Case "W": pym = -1: Case "S": pym = 1: Case "D": pxm = 1: Case "A": pxm = -1: End Select: Select Case Screen(pym + py, pxm + px, 0): Case 219: pxm = 0: pym = 0: End Select: px = px + pxm: py = py + pym
Loop Until kk$ = Chr$(27)

Print this item

  New users?
Posted by: TerryRitchie - 02-05-2024, 11:04 PM - Forum: General Discussion - Replies (5)

I've noticed that the past couple of new users have only spent a few seconds on the site and then left with their accounts not being activated. A few seconds is not long enough to humanly create a new user account. Are we being spammed by a bot perhaps that creates new accounts? Very strange.

Print this item

  Quesiton on Dimensioning an Array
Posted by: Dimster - 02-05-2024, 04:30 PM - Forum: Help Me! - Replies (5)

Where I have 3 different arrays with the following Dimensions

Dim Array1(1 To 0)
Dim Array2(1 To 1)
Dim Array3(0 To 1)

Is that middle Array2 the same as Dim Array2(0) or would it be the same as Dim Array2(1)? 
Thanks

Print this item

  Making the content list of files inside a Zip ?
Posted by: euklides - 02-05-2024, 03:21 PM - Forum: Help Me! - Replies (13)

Well...
I'm looking for a way to list the files inside a zip file...

Than'ks for ideas.

Print this item

  Bug report - Ctrl+Shift+G - Linux version 3.11.0
Posted by: Circlotron - 02-05-2024, 12:24 PM - Forum: General Discussion - Replies (2)

When an error is detected in a line of code, Ctrl+Shift+G should take the cursor to the relevant line but it does not. Instead a "G" is printed at the current line.

Print this item