martes, noviembre 21, 2006

Tutorial 1 - Animación de un Sprite

Por fin mi primer tutorial finalizado. Tal y como prometí ayer, he terminado de comentar el código, explicando cada uno de los detalles al mínimo, y aquí tenéis el código fuente del tutorial. En funcionalidad es igual al ejecutable que colgué ayer, salvo que ahora esta disponible en código fuente para que podáis aprenderlo.



Como ya comente, creo que mejor que explicar el código directamente en el blog, es mejor que comente el código fuente, y así lo he hecho. Para verlo de una forma cómoda, os recomiendo que tengáis una versión con los comentarios, y otra con los comentarios borrados, para poder leer el código mas rápidamente.



Para que os hagáis una idea de la profundidad de los comentarios, he sacado una captura:





Ver en grande...

Y para finalizar, aquí tenéis os fuentes del primer tutorial:

TUTORIAL 1 - ANIMACION DE UN SPRITE

Un apunte final. Para cualquier duda, comentario, sugerencia acerca del contenido y la forma de hacer los tutoriales, simplemente dejarme un comentario en este post con lo que se os ocurra. Un poco de feedback me permitirá ir limando un poco los sucesivos tutoriales hasta encontrar el mejor formato.

Un saludo!!!

42 comentarios:

Carlos dijo...

No sé, si la gente no ha escrito porque le da vergüenza o porque pero me ha parecido un tutorial buenisimo. Te felicito, sigue asi

David dijo...

Muchas gracias por la aportación. Soy estudiante de C# y me dedico también al 3d studio max. Encontré XNA mi solución perfecta. Seguiré pasándome por aquí a ver qué nos ofreces.

Will dijo...

Aun no he leido el tutorial 1 completo pero lo poco que he leido me parece excelente, como recomendacion t sugeriria q no pongas los comentarios demasiado largos puesto q los leo directamente desde la interfaz de c# y es incomodo mover el scroll para leer la oracion completa, aunque es solo un capricho

Sergio dijo...

Es una gozada leer tu código. Soy nuevo en XNA y la verdad es que tu proyecto me ha servido de gran ayuda! Sigue así! Eres grande!

Anónimo dijo...

Hola!!! he bajado el tutorial y me parese muy bueno ya que esta muy bien explicado solo que al querer depurarlo me marca un error en la linea game.Run();(el error es Microsoft.Xna.Framework.NoSuitableGraphicsDeviceExeption{"Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater."}), espero y me puedas brindar tu ayuda ya que la verdad es que no se nada hacerca del visual studio por lo cual no tengo idea de como corregir el error.

Venom dijo...

Eduardo muchas gracias por los aportes, el blog esta muy bueno y ojala podamos tener mas de tus trabajos para si aprender.
Gracias!;)

Pd: No se por que el codigo me marca un error en el constructor de la clase sprite1... dice que no se controlo la excepcion FileNotFoundException pero no veo el porque haya que controlarla, iwal tampoco se como hacerlo en c#

Anónimo dijo...

hola antes que nada yo quisiera saber como se hace el mono de guerrero o arkero que teneis en los tutoriales

tu blog esta buenisimo gracias por tus aportes.

feroracle dijo...

muchas gracias por el tutorial, espero que sigas con este blog, ya que me interesa mucho. saludos

Anónimo dijo...

http://markonzo.edu Wonderfull great site ashley furniture price [url=http://jguru.com/guru/viewbio.jsp?EID=1536072]ashley furniture price[/url], 243, allegiant air verdict [url=http://jguru.com/guru/viewbio.jsp?EID=1536075]allegiant air verdict[/url], pxhrk, pressure washers info [url=http://jguru.com/guru/viewbio.jsp?EID=1536078]pressure washers info[/url], wbcqss, dishnetwork blog [url=http://jguru.com/guru/viewbio.jsp?EID=1536080]dishnetwork blog[/url], pjwdoai, adt security preview [url=http://jguru.com/guru/viewbio.jsp?EID=1536076]adt security preview[/url], ismtpuv,

Anónimo dijo...

Enrique Dijo:

Hola. Yo todavia no he visto tu tutorial, ( no me he puesto en ello, aun... ) pero estoy empezando a probar el XNA de microsoft y busco tutoriales en español como este, con lo cual te doy las gracias por hacer estos.

Anónimo dijo...

Splendidly done is sick than extravagantly said.

Anónimo dijo...

Artistically done is sick than well said.

Anónimo dijo...

Lovingly done is better than well said.

Anónimo dijo...

Well done is richer reconsider than well said.

Anónimo dijo...

Splendidly done is well-advised b wealthier than spectacularly said.

Anónimo dijo...

Splendidly done is better than well said.

Anónimo dijo...

Splendidly done is sick than extravagantly said.
[url=http://citizen-promaster.webs.com/apps/blog/]citizen promaster[/url]

citizen promaster

Anónimo dijo...

A man who dares to barrens everyone hour of time has not discovered the value of life.

[url=http://www.campusbug.com/view/viewuser.php?id=72835]Jenna[/url]


Jane

Anónimo dijo...

We should be careful and fussy in all the intelligence we give. We should be signally painstaking in giving guidance that we would not dream up of following ourselves. Most of all, we ought to refrain from giving advise which we don't imitate when it damages those who depreciate us at our word.

scroll saw

[url=http://scroll-saw-72.webs.com/apps/blog/]scroll saw[/url]

Anónimo dijo...

A gink begins scathing his perceptiveness teeth the earliest chance he bites on holiday more than he can chew.

Anónimo dijo...

A human beings begins cutting his wisdom teeth the earliest chance he bites on holiday more than he can chew.

Anónimo dijo...

To be a upright benign being is to procure a amiable of openness to the mankind, an gift to guardianship aleatory things beyond your own pilot, that can front you to be shattered in very exceptional circumstances as which you were not to blame. That says something exceedingly weighty thither the condition of the honest compulsion: that it is based on a trustworthiness in the fitful and on a willingness to be exposed; it's based on being more like a spy than like a jewel, something kind of tenuous, but whose mere precise beauty is inseparable from that fragility.

Anónimo dijo...

To be a noble human being is to be enduring a amiable of openness to the mankind, an ability to group uncertain things beyond your own manage, that can lead you to be shattered in unequivocally extreme circumstances as which you were not to blame. That says something exceedingly impressive with the fettle of the principled passion: that it is based on a trustworthiness in the unpredictable and on a willingness to be exposed; it's based on being more like a shop than like a sparkler, something kind of fragile, but whose acutely particular handsomeness is inseparable from that fragility.

Anónimo dijo...

Exercise ferments the humors, casts them into their adapted channels, throws substandard redundancies, and helps cosmos in those secret distributions, without which the association cannot subsist in its vigor, nor the typification dissimulate with cheerfulness.

Anónimo dijo...

In everyone's existence, at some time, our inner throw goes out. It is then bust into passion beside an face with another magnanimous being. We should all be glad recompense those people who rekindle the inner transport

Anónimo dijo...

I don't like the sound of all those lists he's making - it's like intriguing too divers notes at high school; you experience you've achieved something when you haven't.

Anónimo dijo...

In everyone's existence, at some time, our inner throw goes out. It is then blow up into enthusiasm beside an contend with with another hominoid being. We should all be glad for those people who rekindle the inner spirit

Anónimo dijo...

In everyone's existence, at some dated, our inner pep goes out. It is then blow up into passion by an encounter with another benign being. We should all be glad for the duration of those people who rekindle the inner transport

Anónimo dijo...

In the whole world's existence, at some dated, our inner fire goes out. It is then break asunder into zeal by an face with another human being. We should all be indebted for those people who rekindle the inner inspiration

Anónimo dijo...

In everyone's life, at some time, our inner throw goes out. It is then bust into flame by an encounter with another hominoid being. We should all be glad recompense those people who rekindle the inner inclination

Anónimo dijo...

In the whole world's life, at some pass‚, our inner throw goes out. It is then blow up into enthusiasm beside an face with another human being. We should all be thankful for the duration of those people who rekindle the inner spirit

Anónimo dijo...

In the whole world's time, at some time, our inner fire goes out. It is then break asunder into flame at hand an contend with with another magnanimous being. We should all be indebted quest of those people who rekindle the inner transport

Anónimo dijo...

In the whole world's existence, at some dated, our inner pep goes out. It is then break asunder into passion at hand an encounter with another magnanimous being. We should all be indebted for those people who rekindle the inner transport

Anónimo dijo...

In every tom's sustenance, at some time, our inner throw goes out. It is then blow up into flame at hand an face with another benign being. We should all be under obligation for the duration of those people who rekindle the inner transport

Anónimo dijo...

In everyone's life, at some pass‚, our inner throw goes out. It is then blow up into enthusiasm by an face with another hominoid being. We should all be indebted quest of those people who rekindle the inner spirit

Anónimo dijo...

In every tom's sustenance, at some occasion, our inner foment goes out. It is then bust into zeal by an face with another magnanimous being. We should all be indebted for the duration of those people who rekindle the inner transport

Anónimo dijo...

In the whole world's life, at some occasion, our inner pep goes out. It is then break asunder into enthusiasm by an face with another benign being. We should all be indebted quest of those people who rekindle the inner spirit

Anónimo dijo...

intente abrir el aprite 1 con visual studio 2008 y xna 3.1 y no pudo. intento actualisarlo pero tampoco no se puede =(

pero gracias por subirlo

Anónimo dijo...

A untroubled beloved majority is the reward of a well-spent youth. A substitute alternatively of its bringing wretched and dolour prospects of degenerate, it would give in to defeat us hopes of timeless lad in a less ill world.

Anónimo dijo...

To be a noble lenient being is to procure a philanthropic of openness to the far-out, an ability to trusteeship unsure things beyond your own restrain, that can front you to be shattered in unequivocally extreme circumstances on which you were not to blame. That says something uncommonly outstanding about the prerequisite of the righteous passion: that it is based on a conviction in the uncertain and on a willingness to be exposed; it's based on being more like a weed than like a prize, something somewhat tenuous, but whose extremely precise attractiveness is inseparable from that fragility.

TiFON dijo...

Saludos como estan, espero sigan con el blog, descargue el tutorial pero mmm no encuentro la librería XGameInput, no se si pueideras subirla o dar un nuevo link, gracias de antemano

Anónimo dijo...

Some of thе mοst poρular Celtic designѕ foг men іnclude knots, ѕpігals, mazes,
shamroсkѕ, heаrts, the treе of life and zoomοrphic tattoo designs.
The website listed at the bottοm of thіs article exρlаins еach zοdiac sіgn as well as other tattoo meanings.

Αztec Warrior Tattοоs ' Otontin and Cuahchicqueh Aztec Warrior Tattoos.

my web site: tattos.info