1. TWINS GAME - Reply
		
		
It is not a harmless bug, it's a 'feature'! (David, if you upgrade to a
pre-historic 486, like mine, you will not notice it.) - It is actually
embarrassing nine different stone images, drawn & saved.
Question: Since the mode 18 (640x480x16) has only ONE active/display
page, what is the best technique for hiding sins like the 'feature'
above?  Jiri.
		
	 
	
		
		2. Re: TWINS GAME - Reply
		
		
On Sun, 2 Feb 1997, BABOR, JIRI wrote:
> Question: Since the mode 18 (640x480x16) has only ONE active/display
> page, what is the best technique for hiding sins like the 'feature'
> above?  Jiri.
Pretty simple: don't draw them in the first place! =)
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
		
	 
	
		
		3. Re: TWINS GAME - Reply
		
		
>Question: Since the mode 18 (640x480x16) has only ONE active/display
>page, what is the best technique for hiding sins like the 'feature'
>above?  Jiri.
>
Hi Jiri,
   The following code show how to use another video mode which as more than
one video
page to hide sprites initialisation to the viewer.
-- demo to show how to hide sprite generation to user.
-- rationale: mode 18 as only one video page so one can't use a hidden page to
-- initialise sprites.
-- The trick used here consist in setting another video mode at the beginning.
-- It use mode 16 which as 2 pages and draw the token on the hidden page and
-- save it before switching to mode 18, where it it drawn again.
include image.e
atom junk
sequence token
junk = graphics_mode(16)
set_active_page(1)
--   this won be seen by the viewer
      ellipse(2,1,{35,85},{85,100})
      ellipse(2+8,1,{35,81},{85,96})
      token=save_image({35,81},{85,100})
set_active_page(0)
puts(1,"press  a key.")
while get_key() = -1 do
end while
junk=graphics_mode(18)
-- saved image, it display corrrectly even if it was origially drawn in another
-- video mode.
display_image({0,0},token)
while get_key() = -1 do
end while
junk = graphics_mode(-1)
  Many years, ago when I Had a TRS-80 color computer, I used that kind video
mode
switching, to create a magnification effect.  In fact by drawing hi-res.
saving the
image an poking the same image in a low-res mode, it produce a magnication,
whith
not need to draw fat pixel. If the two video-mode use the memory the same
way and
have the same x/y ratio it work just fine.
Your twins, graphical interface is as nice as usual.
Jacques Deschenes
Baie-Comeau, Quebec
Canada
desja at quebectel.com