Page 1 of 1
Open Screen?
Posted: Sat Sep 22, 2012 2:44 pm
by Swos2009
I want to do Amiga Display like 320 x 200 with 32 colours and can Purebasic do that?
I am using Sprites for my games and at the moment...it is Display 640 X 480 With 16 colours
Every time I used this
OpenScreen(320, 200, 16, "Sprite Test")
but I get the error.....Why that?
Second questions.....TransparentSpriteColor(3,127) The character sprites of outside is grey box where the character of inside sprites is blue and when I move the sprites to left or right but how do I get rid of Grey bit round the character?

Re: Open Screen?
Posted: Sat Sep 22, 2012 3:08 pm
by IdeasVacuum
Run this from Kenmo:
Code: Select all
If InitSprite()
If ExamineScreenModes()
While NextScreenMode()
If ScreenModeDepth() = 32
Debug Str(ScreenModeWidth()) + "x" + Str(ScreenModeHeight())
EndIf
Wend
EndIf
EndIf
That will list the screen sizes that your screen supports.
There are lots of tips in the one (longish) post:
http://www.purebasic.fr/english/viewtop ... en&start=0
Re: Open Screen?
Posted: Sat Sep 22, 2012 3:43 pm
by Swos2009
Thanks for quick reply
The screen Support on my pc are 640 x 480 to 1920 x 1080
That is shame as I was going do Amiga Display Mode (320 x 200)
thanks for purebasic tips

Re: Open Screen?
Posted: Sun Sep 23, 2012 9:11 am
by Shield
You could just open a screen in a higher resolution (probably your native one)
and then use scaling to create the effect of an oldschool screen.

Re: Open Screen?
Posted: Sun Sep 23, 2012 10:17 am
by Swos2009
You could just open a screen in a higher resolution (probably your native one)
and then use scaling to create the effect of an oldschool screen.
How do I do that please?
Re: Open Screen?
Posted: Sun Sep 23, 2012 4:44 pm
by Shield
You can create a screen with a higher resolution and then just scale the sprites so one pixel is actually 4 pixels, for example.
Fairly simple but might be a little tricky to implement.
Basically use larger sprites that are pixelated on purpose.
Re: Open Screen?
Posted: Sun Sep 23, 2012 7:29 pm
by J. Baker
Swos2009 wrote:Thanks for quick reply
The screen Support on my pc are 640 x 480 to 1920 x 1080
That is shame as I was going do Amiga Display Mode (320 x 200)
thanks for purebasic tips

You could still do a 320 x200 game. Just create it in a window screen and use the stretch feature and make the window borderless. Also you can even set it up so that it only stretches the screen by 2X, 4X and so forth to keep the pixels nice and sharp. That way you don't get a blurring effect for like a 1.5X scale or something. Just calculate the users monitor size and set the scale screen to the nearest 2X, 4X, ect...
