|
Post by johnno56 on Oct 13, 2021 23:30:11 GMT -6
1. When did RCBasic start using SDL2.0? 2. When was the "Beast Demo" added to RBBasic's Graphics examples.
A bonus third question will be based on the answers to questions 1 and 2....
J
|
|
|
Post by rosy on Oct 14, 2021 0:58:33 GMT -6
1. I shoot - from version 3.13
|
|
|
Post by n00b on Oct 14, 2021 1:24:44 GMT -6
1. When did RCBasic start using SDL2.0? 2. When was the "Beast Demo" added to RBBasic's Grafics examples. A bonus third question will be based on the answers to questions 1 and 2.... J 1. RCBasic has used SDL2 from the very beginning. 2. I think I added that back in 2016. Originally I did conversions for a several SDLBasic examples but over time I took a lot of them out and the Beast demo is all that is left. It is a great demo for showing off graphics and music capability.
|
|
|
Post by johnno56 on Oct 14, 2021 1:33:53 GMT -6
"Shadow of the Beast" was originally written for the Amiga in 1989. There is a reasonable chance that the "demo" will be included with most versions of RCBasic. I do not know how RCBasic directories are setup in Windows, but for Linux... /Programs/rcbasic/examples/gfx/beast_demo I am going to guess that RC 3.13 would be using SDL2.0 It's a good graphics demo of "layering" graphics or parallaxing... This demo has about 15 layers... If you have it, try it out...
|
|
|
Post by johnno56 on Oct 14, 2021 1:49:06 GMT -6
N00b,
You have answered both questions and entitled to the bonus 3rd.
Running the demo runs fine without error. After the title screen has scrolled and the demo starts, pressing ESC works as intended. Closing the Window - clicking "X" - produces an error: "DrawImage error: Invalid renderer"
The reason I asked was because some people had a similar problem that pointed to a potential SDL2 issue...
Never mind... I just remembered the "SetWindowClose()" and the "if Not WindowExists(0) Or WindowEvent_Close(0)" before the "update()" and the problem magically went away... Umm... Just pretend I didn't bring it up?... *sigh*
J
|
|