Ver. 0.8 out #10
EkBass
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
BazzBasic version 0.8
Key issues, news and changes from 0.7
NAudio to SDL2
This change has been done. It was actually easier to do what I expected.
Audio features works just as with version 0.7
RAD & DEG
Added keywords RAD & DEG
PI & HPI
PI returns a hard coded value of 3.141592653589793
HPI returns a hard coded value of 1.5707963267948966
These both are commonly and often used when playing with graphics. Hard coding them makes things much faster.
Fast Trigonometry (Lookup Tables)
For graphics-intensive applications (games, raycasting, animations), BazzBasic provides fast trigonometric functions using pre-calculated lookup tables. These are significantly faster than standard
SIN/COSfunctions but have 1-degree precision.Performance: ~20x faster than
SIN(RAD(x))for integer degree values.Memory: Uses ~5.6 KB when enabled
FastTrig()
Enables or disables fast trigonometry lookup tables.
Parameters:
TRUE(or any non-zero value) - Creates lookup tablesFALSE(or 0) - Destroys lookup tables and frees memoryFastSin(angle)
Returns the sine of an angle (in degrees) using a lookup table.
Parameters:
angle- Angle in degrees (automatically normalized to 0-359)Returns: Sine value (-1.0 to 1.0)
Precision: 1 degree (sufficient for most games and graphics)
FastCos(angle)
Returns the cosine of an angle (in degrees) using a lookup table.
Parameters:
angle- Angle in degrees (automatically normalized to 0-359)Returns: Cosine value (-1.0 to 1.0)
Precision: 1 degree (sufficient for most games and graphics)
FastRad(angle)
Converts degrees to radians using an optimized formula.
Parameters:
angle- Angle in degrees (automatically normalized to 0-359)Returns: Angle in radians
Note: This function doesn't require
FastTrig(TRUE)but is included for consistency.Download
Source and Windows binaries https://ekbass.github.io/BazzBasic/
Version 0.9
For version 0.9, I'm focusing on making sure that the metafiles etc. are in accordance with Windows and Avast reducing warnings when BazzBasic is run for the first time.
The easiest way would probably be to get an account in the Microsoft Store, but it costs money and I don't want to do that since it's a free open source project.
Most of the metafiles are already in order, but GitHub's own "release" method would help even more. However, I haven't had time to learn it yet.
Of course, bug hunting and fine-tuning are definitely expected with version 0.9.
Kristian Virtanen
krisu.virtanen@gmail.com
https://ekbass.github.io/BazzBasic/
Beta Was this translation helpful? Give feedback.
All reactions