<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Programacion Facil &#187; menu en fenix</title>
	<atom:link href="http://programacionentretenida.wordpress.com/tag/menu-en-fenix/feed/" rel="self" type="application/rss+xml" />
	<link>http://programacionentretenida.wordpress.com</link>
	<description>.net y otras hierbas.</description>
	<lastBuildDate>Wed, 05 Nov 2008 23:52:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='programacionentretenida.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/962c083d4e66ace6b98bc97650740238?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Programacion Facil &#187; menu en fenix</title>
		<link>http://programacionentretenida.wordpress.com</link>
	</image>
			<item>
		<title>Menu en Fenix</title>
		<link>http://programacionentretenida.wordpress.com/2008/04/18/menu-en-fenix/</link>
		<comments>http://programacionentretenida.wordpress.com/2008/04/18/menu-en-fenix/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 02:43:06 +0000</pubDate>
		<dc:creator>jonaxxxthan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[menu en fenix]]></category>
		<category><![CDATA[programacion]]></category>

		<guid isPermaLink="false">http://programacionentretenida.wordpress.com/?p=14</guid>
		<description><![CDATA[Hola, anteriormente les habia comentado sobre el lenguaje fenix, para mi,  la ventaja de este lenguaje es que es mas facil de distribuir ya que no se necesita de un framework, trayendo consigo funsiones y librerias nesesarias para crear juegos , eso si este lenguaje es solo para programacion 2d, bueno les muestro un [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=programacionentretenida.wordpress.com&blog=3348994&post=14&subd=programacionentretenida&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hola, anteriormente les habia comentado sobre el lenguaje fenix, para mi,  la ventaja de este lenguaje es que es mas facil de distribuir ya que no se necesita de un framework, trayendo consigo funsiones y librerias nesesarias para crear juegos , eso si este lenguaje es solo para programacion 2d, bueno les muestro un pequeño programa de un menu tipico de un juego, esta mismo sera implementadoen un futuro tema en XNA, Bueno este menu en realidad es muy facil de  comprender, lo explicare mas a fondo por pasos.</p>
<p>1. Imprimo todas las opciones del menu mostadas por pantalla y leagrego un tipo de fuente.</p>
<p>2. Creo una funcion que se llama resalta, esta funcion resaltara nuestro texto, lo mostamos<br />
por pantalla , pero esta ves con el tamaño de fuente mas grande, pero pongamonos a pensar<br />
tenemos 2 textos impresos en la misma posicion, es por ello que me aseguro que al momento de<br />
lanzar ese resalto , el texto a resaltar deve ser borrado , ya que si no nos quedarian un texto de<br />
una tamañode fuente mayor con uno de menor y en la misma posicion.</p>
<p>3. Y por ultimo esto se va actualizando en cada momento que movemos las teclas up y down.</p>
<pre>
<p style="text-align:left;">program main;

global

string opciones[]="Computadora v/s Computadora",
"Player1 v/s Computadora",
"Player1 v/s Player2",
"Creditos",
"Salir";
int i=0,j=0,var=0,musicOpc,musicFondo,imgFondo,proceTeclado;
fntopc,fntopc2;
end
include "librerias/globales.prg";
begin

proceTeclado=teclado();
SET_MODE(800,600,16,MOde_fullScreen);
loadingElementos();
PUT_SCREEN(imgFondo,1);
PLAY_SONG(musicFondo,0);
mopciones();
frame;
loop
DELETE_TEXT(0);
mopciones();
resalta(var);
teclado();
frame(300);
//if(key(_eSc))break end;
end
end
//
function loadingElementos()
begin
imgFondo=LOAD_FPG("fpg/jona.fpg");
fntopc=load_fnt("fnt/opc1.fnt");
fntopc2=load_fnt("fnt/opc2.fnt");
musicOpc=load_wav("music/opc.wav");
musicFondo=LOAD_SONG("music/marilyn.mp3");
end

//
process teclado()
begin
if(key(_up))
if(var==0) var=4;
PLAY_WAV(musicOpc,0);
else var--;
PLAY_WAV(musicOpc,0);
end
end;
if(key(_down))
if(var==4) var=0;
PLAY_WAV(musicOpc,0);
else var++;
PLAY_WAV(musicOpc,0);
end
end;
if(key(_enter))
ejecuta(var);
end

end
//
function ejecuta(int mivar)
begin
switch(mivar)
case 0:
CLEAR_SCREEN();
STOP_SONG();
UNLOAD_FNT(fntopc);
UNLOAD_FNT(fntopc2);

SIGNAL(proceTeclado,s_sleep);
pantallaDeJuego();
end
case 1:end
case 2:end
case 3:end
case 4:EXIT(0);end
end
end
//
function resalta(int var)
begin
DELETE_TEXT(var+1);
write(fntopc2,380,100+60*var,1,opciones[var]);
end
//
function mopciones()
begin
for(i=0;i&lt;=4;i++)
write(fntopc,380,100+60*i,1,opciones[i]);
end
end</pre>
<p><a href="http://cid-d8dc8c311df66e3a.skydrive.live.com/self.aspx/demos"><img class="alignnone size-medium wp-image-15" src="http://programacionentretenida.files.wordpress.com/2008/04/winrar.png?w=80&#038;h=80" alt="rar" width="80" height="80" /></a></p>
<p>Video</p>
<p><span style="text-align:center; display: block;"><a href="http://programacionentretenida.wordpress.com/2008/04/18/menu-en-fenix/"><img src="http://img.youtube.com/vi/Y1i-aJUM7yk/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/programacionentretenida.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/programacionentretenida.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/programacionentretenida.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/programacionentretenida.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/programacionentretenida.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/programacionentretenida.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/programacionentretenida.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/programacionentretenida.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/programacionentretenida.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/programacionentretenida.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/programacionentretenida.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/programacionentretenida.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=programacionentretenida.wordpress.com&blog=3348994&post=14&subd=programacionentretenida&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://programacionentretenida.wordpress.com/2008/04/18/menu-en-fenix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/81018fa83d2526678ae415ffa2e15a6b?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jonaxxxthan</media:title>
		</media:content>

		<media:content url="http://programacionentretenida.files.wordpress.com/2008/04/winrar.png" medium="image">
			<media:title type="html">rar</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/Y1i-aJUM7yk/2.jpg" medium="image" />
	</item>
	</channel>
</rss>