|
ROKART
Oct 22, 2021 4:15:52 GMT -6
Post by rosy on Oct 22, 2021 4:15:52 GMT -6
what exactly are your rendering problems? In what system? Why didn't you report it in the "bug report"?
|
|
|
ROKART
Oct 23, 2021 0:28:02 GMT -6
Post by aurel on Oct 23, 2021 0:28:02 GMT -6
that is not mine rendering problems then on console window running list rendering error... what is that ..i dont know
|
|
|
ROKART
Oct 23, 2021 1:20:08 GMT -6
Post by rosy on Oct 23, 2021 1:20:08 GMT -6
But what exactly is happening and what system?
|
|
|
ROKART
Oct 23, 2021 7:35:24 GMT -6
Post by aurel on Oct 23, 2021 7:35:24 GMT -6
I wil back to johnoo skeleton example It produce window then is closed right now.. huh...why is that ? maybe work on linux but not on windows ... it looks to me that something is wrong with windows handler so why is handler created with number 1 and not with variable ?
|
|
|
ROKART
Oct 23, 2021 7:44:29 GMT -6
Post by aurel on Oct 23, 2021 7:44:29 GMT -6
what a heck what hold window open in rcbasic i tried this and again pop up then close while WindowExists(1) > 0 ' (1) window#1 (0) window#0 update()wendEDIT:randomizeTimer close window
|
|
|
ROKART
Oct 23, 2021 14:49:59 GMT -6
Post by johnno56 on Oct 23, 2021 14:49:59 GMT -6
This skeleton is not supposed to run "as is". In Linux, as well, when executed it produces a window and immediately closes...
The game loop will go after "clearcanvas" then place the remainder of the skeleton at the bottom of the game loop
eg:
clearcanvas
' Game loop
Do
' Game goes in here ...
if Not WindowExists(1) Or WindowEvent_Close(1) Then end end if update()
Loop
|
|
|
ROKART
Oct 24, 2021 1:15:36 GMT -6
Post by aurel on Oct 24, 2021 1:15:36 GMT -6
back to rosy...
after output SDL window is closed then in console window i see this message DrawImage errror : Invalid render ...maybe i remove some images and there is noting to render
|
|
|
ROKART
Oct 24, 2021 4:39:50 GMT -6
Post by rosy on Oct 24, 2021 4:39:50 GMT -6
Because when you closed the graphics window, there is nothing to render.
|
|
|
ROKART
Oct 24, 2021 10:42:32 GMT -6
Post by aurel on Oct 24, 2021 10:42:32 GMT -6
I see this error in few times before SDL_window is closed, and please dont call it graphics window, it is SDL_window because it depend on SDL.dll
|
|
|
ROKART
Oct 24, 2021 10:51:39 GMT -6
Post by rosy on Oct 24, 2021 10:51:39 GMT -6
A window with graphics cannot be called a graphics window ??
|
|
|
ROKART
Oct 25, 2021 13:07:02 GMT -6
Post by rosy on Oct 25, 2021 13:07:02 GMT -6
Interesting thing. I turned off vsync and the FPS function shows that there is no bigger difference in speed with different views, except for the simplest view from above. Either the CanvasClip devours the bulk of the time, or it depends mainly on the total size of the objects displayed and less on the number of transformations.
|
|
|
ROKART
Oct 26, 2021 12:57:08 GMT -6
Post by johnno56 on Oct 26, 2021 12:57:08 GMT -6
Interestingly enough... SDLBasic draws directly to the screen. "Canvases" or "Windows" seem to be ignored but images can be confined to pre-determined windows... Sprites or "bobs" can be drawn over everything... But I have never fully understood all that stuff...
|
|
|
ROKART
Oct 27, 2021 19:09:49 GMT -6
Post by n00b on Oct 27, 2021 19:09:49 GMT -6
rosy When using CanvasClip(), make sure you are setting the flag to 1. A flag of zero will slow your program down but allow the resulting image to be accessible in every available window in your program.
|
|
|
ROKART
Nov 2, 2021 16:43:25 GMT -6
Post by rosy on Nov 2, 2021 16:43:25 GMT -6
Another ROKART2d.bas update. 2nd stage added. Comments are appreciated ... Stage 3 will be in GPS style wet.
|
|
|
ROKART
Nov 5, 2021 7:41:26 GMT -6
Post by rosy on Nov 5, 2021 7:41:26 GMT -6
I have updated the entire package. There are already 3 stages (1st off). In fact, they are 3 different games, and even more if we switch views. Keys while playing: SPACE - another game W - change view C - 2 players K - 1 player 1-9 - number of terms * 10 P - level (0 = PRO) Control: Player 1 - arrows Player 2 - LCtrl, LAlt The 3rd track is supposedly from the GPS version on Amstrad. So how come it has a resolution of 350x200 and some 64 colors ??
|
|