Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DeltaOscarSierra

Pages: [1]
1
Programs / Re: Battlefield Minesweeper
« on: October 01, 2021, 11:09:21 am »
I just added the source code to the main post, enjoy!

If anyone could compile for macOS and Linux I would greatly appreciate it.

2
Programs / Re: Battlefield Minesweeper
« on: September 30, 2021, 11:23:13 pm »
Yes this is made with QB64.

I started this project in mid August and had a blast coding it in basic!

3
Programs / Battlefield Minesweeper
« on: September 30, 2021, 11:01:48 pm »
Bored with the original minesweeper game? Building off of the classic minesweeper appeal, enjoy a more exciting version with thundering explosions that will rock your screen!

If you're up to the challenge then take it to the next level in "Battlefield Mode". A column of military vehicles needs to cross the battlefield and time is of the essence. If they hit an unmarked mine then it's game over (for you at least). Guaranteed to turn a relaxed game into a stressful but rewarding endeavor.

Set in a military theme environment, enjoy countless hours playing this classic game!

https://castorstudios.itch.io/battlefield-minesweeper

 
Screen3.jpg

4
QB64 Discussion / Enhancement Request - With Statement
« on: August 29, 2021, 10:49:12 pm »
I used to be a big Visual Basic fan and occasionally still use the language. One statement that saved me a lot of repetetive typing is the "With" statement.

Using:
Code: QB64: [Select]
  1. Type myType
  2.    X as Integer
  3.    Y as Integer
  4. Dim myArray(9) as myType
  5.  

Code in QB64 currently looks like this:
Code: QB64: [Select]
  1. For X = 0 to Ubound(myArray)
  2.    myArray(X).X = 0
  3.    myArray(X).Y = 0
  4.  

But using a "With" statement the code would be simplified to:
Code: QB64: [Select]
  1. For X = 0 to Ubound(myArray)
  2.    With myArray(X)
  3.       .X = 0
  4.       .Y = 0
  5.    End With
  6.  

Here is a link to MS documentation concerning VB's With Statement: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/with-end-with-statement

So this is an enhancement request to add such a feature to QB64, thank you!

Pages: [1]