Open Screen?

Advanced game related topics
Swos2009
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Nov 08, 2008 8:19 pm

Open Screen?

Post 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?

:)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Open Screen?

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Swos2009
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Nov 08, 2008 8:19 pm

Re: Open Screen?

Post 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 :D
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Open Screen?

Post 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. :)
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Swos2009
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Nov 08, 2008 8:19 pm

Re: Open Screen?

Post 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?
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Open Screen?

Post 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. :wink:

Basically use larger sprites that are pixelated on purpose.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
J. Baker
Addict
Addict
Posts: 2192
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Open Screen?

Post 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 :D
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... ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply