1. Vitrual screen pages

I'm looking to write some sort of game in 320x200x256 resolution but
video_config() only reports 1 page (numbered 0) that I can work with.
Will it make a difference if I use use_vesa(1)? Any ideas or tips?

Matt Sephton
--
u5ms at csc.liv.ac.uk
http://www.csc.liv.ac.uk/~u5ms/

new topic     » topic index » view message » categorize

2. Re: Vitrual screen pages

On Wed, 12 Mar 1997, Matt Sephton wrote:
>
> I'm looking to write some sort of game in 320x200x256 resolution but
> video_config() only reports 1 page (numbered 0) that I can work with.
> Will it make a difference if I use use_vesa(1)? Any ideas or tips?

That's right.  You get one and only one page to work with.  The best way
to work is to create a screen sized sequence (called a Virtual Screen) and
"draw" you images into it, then after all your sprites are drawn, you
update all the changed regions on the real screen by grabbing the
corresponding portions of the virtual screen and display_image()ing them.

My book, "The OidZone Programmer's Reference" explains this in gross
detail, as well as keeping track of hundreds of sprites at the same time.

Michael Packard
Lord Generic Productions
lgp at exo.com http://exo.com/~lgp
A Crash Course in Game Design and Production
http://exo.com/~lgp/euphoria

new topic     » goto parent     » topic index » view message » categorize

3. Re: Vitrual screen pages

> I'm looking to write some sort of game in 320x200x256 resolution but
> video_config() only reports 1 page (numbered 0) that I can work with.
> Will it make a difference if I use use_vesa(1)? Any ideas or tips?
>
> Matt Sephton

use_vesa() only makes your program use the Video Electonics Standards
Association setup for screen access instead of accessing the hardware
directly. The number of pages available per screen mode is a feature of
your video card and is not affected by use_vesa(1) as a result.

If you are looking for ways to create multiple virtual screen pages,
Michael Packard's $40 dollar version of OIdzone comes with a manual that
talks about virtual pages and how to clip and paste images to them before
writing the screen out. I've purchased it and it is a good source of
information for what you are looking for.

Thanks

David Gay
http://www.interlog.com/~moggie/Euphoria

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu