<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2spanishfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>THEbatzuk.org</title>
	
	<link>http://thebatzuk.org</link>
	<description>rock, mecatrónica y tonterías</description>
	<lastBuildDate>Sat, 01 Oct 2011 04:31:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/estoyenunrincon" /><feedburner:info uri="estoyenunrincon" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><image><link>http://www.estoyenunrincon.com/</link><url>http://i495.photobucket.com/albums/rr315/THEbatzuk/avatar-comen.gif</url><title>Estoy en un Rincon</title></image><feedburner:emailServiceId>estoyenunrincon</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Festoyenunrincon" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/estoyenunrincon" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Festoyenunrincon" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Festoyenunrincon" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Festoyenunrincon" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://add.my.yahoo.com/content?lg=es&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Festoyenunrincon" src="http://eur.i1.yimg.com/eur.yimg.com/i/es/my/addto1.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.feedness.com/alta/http://feeds.feedburner.com/estoyenunrincon" src="http://www.feedness.com/ayuda/wp-content/square_b_sh_feed.gif">Subscribe with Feedness</feedburner:feedFlare><feedburner:feedFlare href="http://www.addtoany.com/?linkname=THEbatzuk.org&amp;linkurl=http%3A%2F%2Ffeeds.feedburner.com%2Festoyenunrincon&amp;type=feed" src="http://www.addtoany.com/addfr-b.gif">Add to Any Feed Reader</feedburner:feedFlare><item>
		<title>Lo nuevo en mi biblioteca: The Kills &amp; Blood Red Shoes</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/Xj0SHSAQ_HE/lo-nuevo-en-mi-biblioteca-the-kills-blood-red-shoes.html</link>
		<comments>http://thebatzuk.org/2011/09/lo-nuevo-en-mi-biblioteca-the-kills-blood-red-shoes.html#comments</comments>
		<pubDate>Sat, 01 Oct 2011 04:21:47 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Música]]></category>
		<category><![CDATA[bandas]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=2011</guid>
		<description><![CDATA[En realidad a Blood Red Shoes los vengo escuchando desde hace algún tiempo y la verdadera nueva banda en mi biblioteca es The Kills, pero como ambas bandas son en realidad dúos me pareció buena idea ponerlas juntas. The Kills Compuesta por Alison Mosshart (Americana) y Jamie Hince (Británico) es un dúo de indie rock [...]]]></description>
			<content:encoded><![CDATA[<p>En realidad a <em>Blood Red Shoes</em> los vengo escuchando desde hace algún tiempo y la verdadera nueva banda en mi biblioteca es <em>The Kills</em>, pero como ambas bandas son en realidad dúos me pareció buena idea ponerlas juntas.</p>
<h4>The Kills</h4>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/09/The+Kills+thekills2.jpg"><img class="aligncenter size-full wp-image-2013" title="The+Kills+thekills2" src="http://thebatzuk.org/wp-content/uploads/2011/09/The+Kills+thekills2.jpg" alt="the kills" width="425" height="339" /></a><br />
Compuesta por <strong>Alison Mosshart</strong> (<em>Americana</em>) y <strong>Jamie Hince</strong> (<em>Británico</em>) es un dúo de indie rock / garage rock que hace un poco de trampa porque tiene un tercer miembro: una caja de ritmos, pero lejos de ser una desventaja, ésto les da un toque de repetitividad y simplicidad muy especial a sus canciones. La verdad durante las últimas semanas únicamente los he estado escuchando a ellos, porque simplemente después de escuchar a The Kills las demás bandas parecen malísimas, lo que no es para nada cierto, pero es el efecto que provoca <strong>The Kills</strong>.  Mi rola recomendada es: ¡TODAS! jaja, bueno esta: <a href="http://www.youtube.com/watch?v=yd1nNN6nzmo">Sour Cherry</a>.</p>
<h4>Blood Red Shoes</h4>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/09/Blood+Red+Shoes+_1280.png"><img class="aligncenter size-full wp-image-2012" title="Blood+Red+Shoes+_1280" src="http://thebatzuk.org/wp-content/uploads/2011/09/Blood+Red+Shoes+_1280.png" alt="blood red shoes" width="425" height="283" /></a><br />
Este si es un dúo sin trampas :) formado por <strong>Steven Ansell</strong> y <strong>Laura-Mary Carter</strong>, ambos de Inglaterra y tocan algo como indie rock / alternative rock. Es increíble como sólo dos personas pueden llegar a hacer tan buena música con sólo batería y guitarra. Mi rola recomendada es: <a href="http://www.youtube.com/watch?v=cXuuOJULE0o">HeartSink</a>.</p>
<p>Yo la verdad nunca pensé que una banda pudiera llegar a sonar bien sin bajo, sin embargo ya tengo dos pruebas bastante buenas de que eso no es cierto.</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/Xj0SHSAQ_HE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/09/lo-nuevo-en-mi-biblioteca-the-kills-blood-red-shoes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/09/lo-nuevo-en-mi-biblioteca-the-kills-blood-red-shoes.html</feedburner:origLink></item>
		<item>
		<title>Dotship: Juego en Arduino (LCD + Pot + Pushbutton)</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/1b1bAfr2-mU/dotship-juego-en-arduino-lcd-pot-pushbutton.html</link>
		<comments>http://thebatzuk.org/2011/09/dotship-juego-en-arduino-lcd-pot-pushbutton.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 03:57:29 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Ingeniería]]></category>
		<category><![CDATA[arduino]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=2005</guid>
		<description><![CDATA[Ok, esto es algo que se me ocurrió hacer al programar un poco en un framework de Lua llamado Löve (luego les contaré sobre eso). Se trata de un juego simple que podemos programar en nuestro arduino haciendo uso de un LCD y una pequeña función llamada lcd.createChar(). En este juego tú eres un simple [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, esto es algo que se me ocurrió hacer al programar un poco en un framework de Lua llamado <a href="http://love2d.org/">Löve</a> (<em>luego les contaré sobre eso</em>). Se trata de un juego simple que podemos programar en nuestro arduino haciendo uso de un LCD y una pequeña función llamada <a href="http://arduino.cc/en/Reference/LiquidCrystalCreateChar">lcd.createChar()</a>.</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/09/dotship-f1.jpg"><img class="aligncenter size-full wp-image-2008" title="dotship-f1" src="http://thebatzuk.org/wp-content/uploads/2011/09/dotship-f1.jpg" alt="dotship lcd game" width="425" height="318" /></a></p>
<p>En este juego tú eres un simple pixel que se desplaza únicamente lateralmente y que puede disparar. El objetivo es evitar que &#8216;el enemigo&#8217; llegue hasta donde estás tú. Cada vez que matas al enemigo éste reaparece más enojado y con mayor velocidad, así que en realidad no puedes ganar, sólo se trata de sobrevivir por el mayor tiempo posible.</p>
<h4>Lo que se necesita</h4>
<ul>
<li>Arduino</li>
<li>LCD 16&#215;2 Hitachi HD44780 compatible (<em>es decir, la más común</em>)</li>
<li>2 Potenciómetros (<em>cualquier tamaño está bien</em>)</li>
<li>1 Pushbutton</li>
<li>1 Resistencia de 10 Kohms</li>
<li>1 Resistencia de 100 ohms</li>
</ul>
<div>El potenciómetro va a ser nuestro &#8216;analog stick&#8217; de bajos recursos: con él controlaremos a nuestra nave-pixel. El pushbutton es el gatillo de nuestra superduper arma destructora.</div>
<h4>El diagrama</h4>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/09/dotship-e1-Custom.png"><img class="aligncenter size-full wp-image-2007" title="dotship-e1 (Custom)" src="http://thebatzuk.org/wp-content/uploads/2011/09/dotship-e1-Custom.png" alt="dotship diagrama" width="425" height="299" /></a></p>
<p>&nbsp;</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/09/dotship-f2.jpg"><img class="aligncenter size-full wp-image-2009" title="dotship-f2" src="http://thebatzuk.org/wp-content/uploads/2011/09/dotship-f2.jpg" alt="dotship lcd game 2" width="425" height="318" /></a></p>
<p>En la foto hay dos pushbuttons por otro programa que estaba haciendo antes, sólo es necesario uno. El segundo potenciómetro (<em>el de abajo</em>) es el que ajusta el contraste del LCD.</p>
<h4>El código</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #ff0000; font-style: italic;">/*
  __DOTSHIP__
  &quot;The adventure of a dot-shaped ship versus the thing-shaped 
  immortal enemy&quot;
&nbsp;
  A simple Arduino game that uses a common 16x2 LCD (Hitachi 
  HD44780 compatible) and a potentiometer and a pushbutton as 
  a controller.
&nbsp;
  You can find the LCD wiring here: 
  http://arduino.cc/en/Tutorial/LiquidCrystal
    - RS to 12
    - Enable to 11
    - Data pins to 5, 4, 3, 2
    - R/W to GND
&nbsp;
  also you will need a:
  * Potentiometer: 
    - end pins to +5v and GND
    - middle pin to A0 pin
  * Pushbutton:
    - attached to pin 8 from +5V
    - 10K resistor attached to pin 8 from ground
&nbsp;
  More details: http://thebatzuk.org/2011/09/dotship-juego-en-
  arduino-lcd-pot-pushbutton.html
&nbsp;
  11 Sep 2011
  by Raúl Rivas (thebatzuk)   &lt;--------\
                                        \  
  You can use, copy and modify           \
  this code but do not remove this  line -\
*/</span>
&nbsp;
<span style="color: #339900;">#include &lt;LiquidCrystal.h&gt;</span>
LiquidCrystal lcd<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">12</span>, <span style="color: #0000dd;">11</span>, <span style="color: #0000dd;">5</span>, <span style="color: #0000dd;">4</span>, <span style="color: #0000dd;">3</span>, <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">unsigned</span> <span style="color: #0000ff;">long</span> <span style="color: #0000dd;">time</span> <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
boolean game <span style="color: #000080;">=</span> <span style="color: #0000ff;">true</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">unsigned</span> <span style="color: #0000ff;">int</span> score <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #666666;">// potentiometer and button pins</span>
<span style="color: #0000ff;">int</span> pot_pin <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> bttn_pin <span style="color: #000080;">=</span> <span style="color: #0000dd;">8</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> bttn_val <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> bttn_last <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #666666;">// ship variables </span>
<span style="color: #0000ff;">int</span> ship_px <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> ship_y <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #666666;">// shoots variables</span>
boolean shot <span style="color: #000080;">=</span> <span style="color: #0000ff;">false</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> shoot_time <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
byte shot_pos<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">5</span><span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> <span style="color: #008000;">&#123;</span>B00001, B00010, B00100, B01000, B10000<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> shoot_x <span style="color: #000080;">=</span> <span style="color: #0000dd;">14</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> shoot_y <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> shoot_px <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> mi <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #666666;">// enemies variables</span>
byte enemies<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">8</span><span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> <span style="color: #008000;">&#123;</span>B00000, B00110, B00001, B01111, B01111, 
                   B00001, B00110, B00000<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> enemy_y <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> enemy_x <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> enemy_vel <span style="color: #000080;">=</span> <span style="color: #0000dd;">100</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> vel_increment <span style="color: #000080;">=</span> <span style="color: #0000dd;">20</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">void</span> setup<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> 
<span style="color: #008000;">&#123;</span>
  lcd.<span style="color: #007788;">begin</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">16</span>, <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
  lcd.<span style="color: #007788;">createChar</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">2</span>, enemies<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
  randomSeed<span style="color: #008000;">&#40;</span>analogRead<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">void</span> loop<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> 
<span style="color: #008000;">&#123;</span>
  <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>game<span style="color: #008000;">&#41;</span>
  <span style="color: #008000;">&#123;</span>
    <span style="color: #0000dd;">time</span><span style="color: #000040;">++</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">// ship stuff</span>
    byte ship<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">8</span><span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> <span style="color: #008000;">&#123;</span>B00000, B00000, B00000, B00000, B00000, 
                    B00000, B00000, B00000<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
    ship_px <span style="color: #000080;">=</span> map<span style="color: #008000;">&#40;</span>analogRead<span style="color: #008000;">&#40;</span>pot_pin<span style="color: #008000;">&#41;</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">1023</span>, <span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">16</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>ship_px <span style="color: #000080;">&gt;=</span> <span style="color: #0000dd;">0</span> <span style="color: #000040;">&amp;&amp;</span> ship_px <span style="color: #000080;">&lt;=</span> <span style="color: #0000dd;">7</span><span style="color: #008000;">&#41;</span>
      ship_y <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>ship_px <span style="color: #000080;">&gt;=</span> <span style="color: #0000dd;">8</span> <span style="color: #000040;">&amp;&amp;</span> ship_px <span style="color: #000080;">&lt;=</span> <span style="color: #0000dd;">15</span><span style="color: #008000;">&#41;</span>
      ship_y <span style="color: #000080;">=</span> <span style="color: #0000dd;">1</span><span style="color: #008080;">;</span> 
    ship<span style="color: #008000;">&#91;</span>ship_px <span style="color: #000040;">-</span> ship_y <span style="color: #000040;">*</span> <span style="color: #0000dd;">8</span><span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> B10000<span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">createChar</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span>, ship<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">setCursor</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">15</span>, ship_y<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">write</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
    <span style="color: #666666;">// shoots stuff</span>
    byte shoot<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">8</span><span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> <span style="color: #008000;">&#123;</span>B00000, B00000, B00000, B00000, B00000, 
                     B00000, B00000, B00000<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
    bttn_val <span style="color: #000080;">=</span> digitalRead<span style="color: #008000;">&#40;</span>bttn_pin<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>bttn_val <span style="color: #000040;">!</span><span style="color: #000080;">=</span> bttn_last <span style="color: #000040;">&amp;&amp;</span> bttn_val <span style="color: #000080;">==</span> HIGH <span style="color: #000040;">&amp;&amp;</span> <span style="color: #000040;">!</span>shot<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      shot <span style="color: #000080;">=</span> <span style="color: #0000ff;">true</span><span style="color: #008080;">;</span>
      shoot_time <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
      mi <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
      shoot_px <span style="color: #000080;">=</span> ship_px <span style="color: #000040;">-</span> ship_y <span style="color: #000040;">*</span> <span style="color: #0000dd;">8</span><span style="color: #008080;">;</span>
      shoot_y <span style="color: #000080;">=</span> ship_y<span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>shot<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      <span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> i <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span> i <span style="color: #000080;">&lt;</span> <span style="color: #0000dd;">15</span><span style="color: #008080;">;</span> i<span style="color: #000040;">++</span><span style="color: #008000;">&#41;</span>
      <span style="color: #008000;">&#123;</span>
        <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>shoot_time <span style="color: #000080;">&gt;=</span> mi <span style="color: #000040;">&amp;&amp;</span> shoot_time <span style="color: #000080;">&lt;=</span> mi<span style="color: #000040;">+</span><span style="color: #0000dd;">4</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
          shoot_x <span style="color: #000080;">=</span> <span style="color: #0000dd;">14</span> <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span>mi <span style="color: #000040;">/</span> <span style="color: #0000dd;">5</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
          mi <span style="color: #000040;">+</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">5</span><span style="color: #008080;">;</span>
          <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>shoot_x <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>
            shot <span style="color: #000080;">=</span> <span style="color: #0000ff;">false</span><span style="color: #008080;">;</span>
          <span style="color: #0000ff;">break</span><span style="color: #008080;">;</span>
        <span style="color: #008000;">&#125;</span>
      <span style="color: #008000;">&#125;</span>
      shoot<span style="color: #008000;">&#91;</span>shoot_px<span style="color: #008000;">&#93;</span> <span style="color: #000080;">=</span> shot_pos<span style="color: #008000;">&#91;</span>shoot_time <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span><span style="color: #0000dd;">14</span> <span style="color: #000040;">-</span> shoot_x<span style="color: #008000;">&#41;</span> <span style="color: #000040;">*</span> <span style="color: #0000dd;">5</span><span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span>
      lcd.<span style="color: #007788;">createChar</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1</span>, shoot<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      lcd.<span style="color: #007788;">setCursor</span><span style="color: #008000;">&#40;</span>shoot_x, shoot_y<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      lcd.<span style="color: #007788;">write</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      shoot_time<span style="color: #000040;">++</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
    <span style="color: #666666;">// enemies stuff</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">time</span> <span style="color: #000040;">%</span> enemy_vel <span style="color: #000080;">==</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      enemy_x<span style="color: #000040;">++</span><span style="color: #008080;">;</span>
      enemy_y <span style="color: #000080;">=</span> random<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
    lcd.<span style="color: #007788;">setCursor</span><span style="color: #008000;">&#40;</span>enemy_x, enemy_y<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">write</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">// enemy got shot:</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>shoot_y <span style="color: #000080;">==</span> enemy_y <span style="color: #000040;">&amp;&amp;</span> shoot_x <span style="color: #000080;">==</span> enemy_x <span style="color: #000040;">&amp;&amp;</span> 
       shoot_px <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">0</span> <span style="color: #000040;">&amp;&amp;</span> shoot_px <span style="color: #000080;">&lt;</span> <span style="color: #0000dd;">7</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      score <span style="color: #000040;">+</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">10</span> <span style="color: #000040;">*</span> enemy_x<span style="color: #008080;">;</span>
      enemy_x <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
      enemy_vel <span style="color: #000040;">-</span><span style="color: #000080;">=</span> vel_increment<span style="color: #008080;">;</span>
      vel_increment <span style="color: #000040;">-</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">5</span><span style="color: #008080;">;</span>
      <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>enemy_vel <span style="color: #000080;">&lt;=</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>
        enemy_vel <span style="color: #000080;">=</span> <span style="color: #0000dd;">2</span><span style="color: #008080;">;</span>
      <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>vel_increment <span style="color: #000080;">&lt;=</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>
        vel_increment <span style="color: #000080;">=</span> <span style="color: #0000dd;">5</span><span style="color: #008080;">;</span>
      shot <span style="color: #000080;">=</span> <span style="color: #0000ff;">false</span><span style="color: #008080;">;</span>
      shoot_x <span style="color: #000080;">=</span> <span style="color: #0000dd;">14</span><span style="color: #008080;">;</span>
      delay<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">25</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
    <span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>enemy_x <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">14</span><span style="color: #008000;">&#41;</span>
      game <span style="color: #000080;">=</span> <span style="color: #0000ff;">false</span><span style="color: #008080;">;</span>
&nbsp;
    <span style="color: #666666;">// other stuff</span>
    delay<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">15</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">clear</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    bttn_last <span style="color: #000080;">=</span> bttn_val<span style="color: #008080;">;</span>
  <span style="color: #008000;">&#125;</span>
  <span style="color: #0000ff;">else</span>
  <span style="color: #008000;">&#123;</span> 
    lcd.<span style="color: #007788;">setCursor</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
    lcd.<span style="color: #007788;">print</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Game Over.&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">setCursor</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span>, <span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
    lcd.<span style="color: #007788;">print</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Score: &quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    lcd.<span style="color: #007788;">print</span><span style="color: #008000;">&#40;</span>score<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #666666;">// reset Arduino to play again</span>
  <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>También puedes encontrar el código aquí: <a href="https://gist.github.com/1210566">Dotship, an Arduino Game (LCD, Pot and Pushbutton)</a></p>
<p>La función de las LCD es mostrar caracteres (<em>a-z, 0-9</em>), sin embargo cada segmento tiene pixeles individuales que puede ser &#8216;explotados&#8217; para hacer este tipo de juegos. La función lcd.createChar() te permite crear caracteres extras a los que admite la pantalla LCD, por medio de una matriz puedes decidir cual pixel se enciende y cual no. Además éstos caracteres especiales pueden ser creados dinámicamente, por lo que las posibilidades son bastante amplias.</p>
<p>Eso es todo, espero y alguien lo pruebe en su arduino y nos cuente que tal está.</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/1b1bAfr2-mU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/09/dotship-juego-en-arduino-lcd-pot-pushbutton.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/09/dotship-juego-en-arduino-lcd-pot-pushbutton.html</feedburner:origLink></item>
		<item>
		<title>Mi Tumblr</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/f5qDlH46qpg/mi-tumblr.html</link>
		<comments>http://thebatzuk.org/2011/09/mi-tumblr.html#comments</comments>
		<pubDate>Sat, 03 Sep 2011 22:13:38 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=2003</guid>
		<description><![CDATA[Hola, tengo Tumblr, adiós. Bueno, bueno, escribiré un poco más. Tumblr es un servicio para bloggear, tiene todas las herramientas básicas que un blogger necesita, sin embargo tiene un enfoque de red social: puedes seguir a personas y otras personas te pueden seguir. Cuando sigues a alguien todas sus publicaciones te llegan a tu dashboard, [...]]]></description>
			<content:encoded><![CDATA[<p>Hola, tengo <strong>Tumblr</strong>, adiós.</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/09/tumblr-logo.png"><img class="aligncenter size-full wp-image-2004" title="tumblr-logo" src="http://thebatzuk.org/wp-content/uploads/2011/09/tumblr-logo.png" alt="tumblr logo" width="425" height="111" /></a></p>
<p>Bueno, bueno, escribiré un poco más. <a href="http://www.tumblr.com/">Tumblr</a> es un servicio para bloggear, tiene todas las herramientas básicas que un blogger necesita, sin embargo tiene un enfoque de red social: puedes seguir a personas y otras personas te pueden seguir. Cuando sigues a alguien todas sus publicaciones te llegan a tu dashboard, por lo tanto (<em>si sigues a las personas indicadas</em>) tu dashboard se convierte en un feed muy interesante.</p>
<p>La mejor herramienta de Tumblr es el botón reblog. Mientras que en este tipo de blogs &#8216;normales&#8217; el reblog se considera como robar un post, en Tumblr es algo que todo mundo hace y es bien recibido. Claro que hay gente que crea el contenido, pero muchas otras personas (<em>yo incluido</em>) sólo nos dedicamos a rebloggear lo que sea que nos pegue la gana.</p>
<p>Así que si tienen Tumblr pueden seguirme aquí: <a href="http://thebatzuk.tumblr.com/">thebatzuk.tumblr.com</a> o si no pueden ver<a href="http://www.tumblr.com/why-tumblr"> porqué vas a amar Tumblr</a>.</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/f5qDlH46qpg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/09/mi-tumblr.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/09/mi-tumblr.html</feedburner:origLink></item>
		<item>
		<title>Los nuevos héroes</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/YxOIqfeOxOU/los-nuevos-heroes.html</link>
		<comments>http://thebatzuk.org/2011/08/los-nuevos-heroes.html#comments</comments>
		<pubDate>Thu, 01 Sep 2011 02:10:10 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Frikismo]]></category>
		<category><![CDATA[series]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=2001</guid>
		<description><![CDATA[No se a qué edad o qué es lo que tenga que pasar para que un ser humano vea ciencia ficción (en series o películas) y simplemente diga &#8220;cámbiale&#8221; o &#8220;quita eso&#8221;. Sé que depende de gustos pero conozco personas que se pierden de historias geniales por no aceptar ver algunos cuantos aliens, mutantes, superhéroes, [...]]]></description>
			<content:encoded><![CDATA[<p>No se a qué edad o qué es lo que tenga que pasar para que un ser humano vea ciencia ficción (<em>en series o películas</em>) y simplemente diga &#8220;cámbiale&#8221; o &#8220;quita eso&#8221;. Sé que depende de gustos pero conozco personas que se pierden de historias geniales por no aceptar ver algunos cuantos aliens, mutantes, superhéroes, monstruos, fantasmas o cosillas así. En la mayoría de los casos (<em>que son los que valen la pena</em>) toda esta fantasía es un pretexto para contar una buena historia.</p>
<p>Por ejemplo, mucha gente se enojó con el fin de Lost (<em>la serie esa</em>) porque dejó sin explicar muchísimas cosas. Pero todos los misterios de la isla (<em>y los mismo escritores lo dijeron</em>) eran sólo estrategias para tener enganchado al público, en realidad la serie trata de la vida personal (<em>pasada, presente y hasta futura</em>) de un puñado de personas que coincidieron en estar en un accidente de avión.</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/08/the-mentalist.jpg"><img class="aligncenter size-full wp-image-2002" title="the-mentalist" src="http://thebatzuk.org/wp-content/uploads/2011/08/the-mentalist.jpg" alt="the mentalist" width="425" height="319" /></a></p>
<p>Pero bueno, el asunto es que (<em>yo pienso</em>) que los escritores se han estado fijando que a mucha gente simplemente no le gusta la fantasía, y para darles gusto han creado a <strong>los nuevos héroes</strong>, que simplemente son personas con alguna habilidad fuera de lo común pero sin salirse de la realidad. Ejemplos hay muchos:</p>
<ul>
<li><strong>Lie to me</strong>. En esta serie el <em>Dr. Cal Lightman</em> tiene el &#8216;superpoder&#8217; de reconocer microexpresiones faciales e interpretar el lenguaje corporal para detectar si una persona está mintiendo.</li>
<li><strong>Numb3rs</strong>. <em>Charlie Eppes</em> es un genio matemático que ayuda al FBI a resolver crímenes usando modelos matemáticos y demás cosas matemáticas.</li>
<li><strong>The Mentalist</strong>. <em>Patrick Jane</em> era un estafador que fingía ser psíquico y médium, sin embargo tiene la capacidad de analizar psicológicamente a las personas y es excelente para deducir (<em>por eso era buen estafador</em>). Por ciertas razones ahora trabaja como consultor resolviendo crímenes para el CBI.</li>
</ul>
<p>Son exactamente como nuestros superhéroes de siempre pero sin trajes ridículos ni poderes increíbles. ¿A ustedes les gustan este tipo de héroes o prefieren los superhéroes?</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/YxOIqfeOxOU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/08/los-nuevos-heroes.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/08/los-nuevos-heroes.html</feedburner:origLink></item>
		<item>
		<title>Sutil diferencia</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/HtKvt6CLegA/sutil-diferencia.html</link>
		<comments>http://thebatzuk.org/2011/08/sutil-diferencia.html#comments</comments>
		<pubDate>Mon, 29 Aug 2011 22:42:00 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Música]]></category>
		<category><![CDATA[guitarra]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=1999</guid>
		<description><![CDATA[Un día hace ya bastante rato un compañero de escuela (con el que me junté un rato porque también tocaba guitarra) me mostró un video de Dragonforce, a su criterio la hipermegamejor banda de todos los tiempos, específicamente este: Through The Fire And Flames, específicamente entre 3:00 y 4:30, y yo le tuve que reconocer [...]]]></description>
			<content:encoded><![CDATA[<p>Un día hace ya bastante rato un compañero de escuela (<em>con el que me junté un rato porque también tocaba guitarra</em>) me mostró un video de <strong>Dragonforce</strong>, a su criterio la hipermegamejor banda de todos los tiempos, específicamente este: <a href="http://www.youtube.com/watch?v=0jgrCKhxE1s&amp;ob=av2e">Through The Fire And Flames</a>, específicamente entre 3:00 y 4:30, y yo le tuve que reconocer que son bastante buenos, pero siempre me quedé con las ganas de decirle &#8220;<em>Bitch, please</em>&#8221; y luego mostrarle este:</p>
<p style="text-align:center;"><iframe width="425" height="348" src="http://www.youtube.com/embed/lqAuuIDU2sw" frameborder="0" allowfullscreen></iframe></p>
<p>¡BB King y Gary Moore juntos! ¡Tocando! ¡TOCANDO! *se desmaya de la emoción*</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/HtKvt6CLegA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/08/sutil-diferencia.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/08/sutil-diferencia.html</feedburner:origLink></item>
		<item>
		<title>Lo nuevo en mi biblioteca: Xavier Rudd</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/cU969VoV4Wg/lo-nuevo-en-mi-biblioteca-xavier-rudd.html</link>
		<comments>http://thebatzuk.org/2011/08/lo-nuevo-en-mi-biblioteca-xavier-rudd.html#comments</comments>
		<pubDate>Sat, 27 Aug 2011 15:23:50 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Música]]></category>
		<category><![CDATA[bandas]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=1997</guid>
		<description><![CDATA[Hace un buen rato me recomendaron el juego Machinarium (y yo se los recomiendo a ustedes), pero lo importante es una canción que aparece en una parte del juego donde le ayudas a una banda a recuperar sus instrumentos. La pueden oír aquí: Machinarium Robot Band Song. ¿Ya la escucharon&#8230;? ¿Ahora&#8230;? Pues es una canción [...]]]></description>
			<content:encoded><![CDATA[<p>Hace un buen rato me recomendaron el juego <a href="http://machinarium.net/demo/">Machinarium</a> (<em>y yo se los recomiendo a ustedes</em>), pero lo importante es una canción que aparece en una parte del juego donde le ayudas a una banda a recuperar sus instrumentos. La pueden oír aquí: <a href="http://www.youtube.com/watch?v=JWb92LknUaQ">Machinarium Robot Band Song</a>. ¿Ya la escucharon&#8230;? ¿Ahora&#8230;? Pues es una canción jazz bastante buena y pegajosilla y lo que mas me llamó la atención es el instrumento que toca el robot rojo. Ya después supe que es un instrumento indígena australiano que se llama <strong>didgeridoo</strong>. Luego me puse a buscar alguna banda moderna que usara didgeridoo en su música y así es como dí con <strong>Xavier Rudd</strong> y su canción <a href="http://www.youtube.com/watch?v=2Id69Ab1RIs">Maná</a>.</p>
<p>Xavier Rudd es un multi-instrumentalista y cantautor de algo que puede llegar a describirse como <em>indie folk rock</em>, que en mi opinión suena genial.</p>
<p style="text-align:center;"><iframe width="425" height="348" src="http://www.youtube.com/embed/4PqrvD4wnZ4" frameborder="0" allowfullscreen></iframe></p>
<p>Esa fue <em>Fortune Teller</em> del álbum <strong>Food in the Belly</strong>, sin embargo mi rola recomendada es <a href="http://www.youtube.com/watch?v=S7aK-TRl6KA">Food in the Belly</a>, de la cual no hallé un buen video en vivo.</p>
<p>Y bueno, aquí es donde pondría un link a su página oficial, pero parece que está caída&#8230;</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/cU969VoV4Wg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/08/lo-nuevo-en-mi-biblioteca-xavier-rudd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/08/lo-nuevo-en-mi-biblioteca-xavier-rudd.html</feedburner:origLink></item>
		<item>
		<title>Arduino, potentiometer, serial port and C # (2)</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/-5H17urHVro/arduino-potentiometer-serial-port-and-c-2.html</link>
		<comments>http://thebatzuk.org/2011/08/arduino-potentiometer-serial-port-and-c-2.html#comments</comments>
		<pubDate>Thu, 18 Aug 2011 01:05:47 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Ingeniería]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[c sharp]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=1994</guid>
		<description><![CDATA[Warning! This post was translated by a not-so-clever bunch of trained parrots, sorry for the possible mistakes. Original: Arduino, potenciómetro, puerto serial y C# (2) - &#8211; - &#8211; - ! &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - [...]]]></description>
			<content:encoded><![CDATA[<h4>Warning!</h4>
<p><strong>This post was translated by a not-so-clever bunch of trained parrots, sorry for the possible mistakes.</strong><br />
Original: <a href="http://thebatzuk.org/2011/07/arduino-potenciometro-puerto-serial-y-c-2.html">Arduino, potenciómetro, puerto serial y C# (2)</a></p>
<p style="text-align:center; font-size:8px;">- &#8211; - &#8211; - ! &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -  ! &#8211; - &#8211; - &#8211; </p>
<p>In the previous post on arduino we made a simple ASCII bar in a console window moved by a potentiometer. But now I realized that if instead of putting one potentiometer we put two potentiometers, we can do something like one of those toys to draw, where two knobs control a small magnet to make shapes on your screen (Etch A Sketch).</p>
<p style="text-align: center;"><a href="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-F2.jpg"><img class="aligncenter size-full wp-image-1972" title="Arduino-Sketch-F2" src="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-F2.jpg" alt="Arduino-Sketch-F2" width="425" height="319" /></a><em>It&#8217;s a bit dark but you can reach to appreciate the delicate curves created by my surgeon-like pulse.</em></p>
<h4>The idea</h4>
<p>In our arduino we connected two knobs and a button for sensing. The arduino sends the data by serial port. Our C# program receives and manipulates the data for the potentiometers to represent a coordinate in the console window and pressing the button to clear the screen.<br />
<span id="more-1994"></span></p>
<h4>What is needed?</h4>
<ul>
<li>Arduino <em>(and its USB cable and IDE of course)</em></li>
<li>Two potentiometers <em>(any size is good)</em></li>
<li>A pushbutton</li>
<li>A resistor <em>(10 kilo-ohms to below)</em></li>
<li>A computer</li>
<li><a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express">Visual C# 2010 Express</a> . It&#8217;s for PC, is free and you can download it from the link I just put on.</li>
</ul>
<h4>The circuit</h4>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-C2.jpg"><img title="Arduino-Sketch-C2" src="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-C2.jpg" alt="Arduino-Sketch-C2" width="424" height="478" /></a></p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-F1.jpg"><img title="Arduino-Sketch-F1" src="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-F1.jpg" alt="Arduino-Sketch-F1" width="425" height="319" /></a></p>
<h4>The problem</h4>
<p>The problem we have here is that we have to send some diferent data by the serial port <em>(values ​​of the potentiometers and the state of the button)</em> and take them into the correct variables. What can we do for not mix them?</p>
<p>What I came up with <em>(I don&#8217;t know if this is the best way to do it)</em> is to put an identifier to each value you want to read. So:</p>
<ol>
<li>In C# program we send a key to tell Arduino what data we want to receive.</li>
<li>Arduino program receives the key, so the right value is read and sent back.</li>
<li>C# program receives and stores the value in some variable.</li>
</ol>
<p>This is done once for a pot and stored in a variable <em>x</em>, then for the other pot and saved in <em>y</em>, and then for the button and stored in <em>b</em>. Taking these two values ​​we move to the point (x, y) of the console and then print a character there. Putting this into an infinite loop have our Etch A Sketch :D</p>
<h4>Programs</h4>
<p>Arduino:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">int</span> potx <span style="color: #000080;">=</span> A0<span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> potvalx <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> poty <span style="color: #000080;">=</span> A1<span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> potvaly <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> bttn <span style="color: #000080;">=</span> <span style="color: #0000dd;">2</span><span style="color: #008080;">;</span>
<span style="color: #0000ff;">int</span> bval <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">void</span> setup<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  Serial.<span style="color: #007788;">begin</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">9600</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">void</span> loop<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>Serial.<span style="color: #007788;">available</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">&gt;</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span>
  <span style="color: #008000;">&#123;</span>
    <span style="color: #0000ff;">int</span> in <span style="color: #000080;">=</span> Serial.<span style="color: #007788;">read</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>in <span style="color: #000080;">==</span> <span style="color: #FF0000;">'x'</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      potvalx <span style="color: #000080;">=</span> analogRead<span style="color: #008000;">&#40;</span>potx<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      Serial.<span style="color: #007788;">println</span><span style="color: #008000;">&#40;</span>potvalx<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      delay<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">10</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      in <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>in <span style="color: #000080;">==</span> <span style="color: #FF0000;">'y'</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      potvaly <span style="color: #000080;">=</span> analogRead<span style="color: #008000;">&#40;</span>poty<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      Serial.<span style="color: #007788;">println</span><span style="color: #008000;">&#40;</span>potvaly<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      delay<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">10</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      in <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
    <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>in <span style="color: #000080;">==</span> <span style="color: #FF0000;">'b'</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
      bval <span style="color: #000080;">=</span> digitalRead<span style="color: #008000;">&#40;</span>bttn<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      Serial.<span style="color: #007788;">println</span><span style="color: #008000;">&#40;</span>bval<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      delay<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">10</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
      in <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
  <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>Basically it read the value <em>(line 17)</em> that our C# program sends and then compares it to know what information you are requesting. As the case is, it read the value and sends it by serial port.</p>
<p>For C #:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO.Ports</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> EtchaSketch
<span style="color: #008000;">&#123;</span>
    <span style="color: #6666cc; font-weight: bold;">class</span> Program
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            SerialPort port <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SerialPort<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;COM6&quot;</span>, <span style="color: #FF0000;">9600</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            port<span style="color: #008000;">.</span><span style="color: #0000FF;">Open</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>port<span style="color: #008000;">.</span><span style="color: #0000FF;">IsOpen</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">while</span> <span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span>
                <span style="color: #008000;">&#123;</span>
                    <span style="color: #008080; font-style: italic;">// Leer potenciómetro 1: coordenada x</span>
                    port<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;x&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #6666cc; font-weight: bold;">string</span> t <span style="color: #008000;">=</span> port<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #6666cc; font-weight: bold;">int</span> x <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>t<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    x <span style="color: #008000;">=</span> map<span style="color: #008000;">&#40;</span>x, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">79</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                    <span style="color: #008080; font-style: italic;">// Leer potenciómetro 2: coordenada y</span>
                    port<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;y&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    t <span style="color: #008000;">=</span> port<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #6666cc; font-weight: bold;">int</span> y <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>t<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    y <span style="color: #008000;">=</span> map<span style="color: #008000;">&#40;</span>y, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">23</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                    <span style="color: #008080; font-style: italic;">// Leer botón: borrar</span>
                    port<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;b&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    t <span style="color: #008000;">=</span> port<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #6666cc; font-weight: bold;">int</span> b <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>t<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                    <span style="color: #008080; font-style: italic;">// Si el botón se oprime, borrar</span>
                    <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>b <span style="color: #008000;">==</span> <span style="color: #FF0000;">1</span><span style="color: #008000;">&#41;</span>
                        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Clear</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                    <span style="color: #008080; font-style: italic;">// Ir a la coordenada leída y dibujar</span>
                    Console<span style="color: #008000;">.</span><span style="color: #0000FF;">SetCursorPosition</span><span style="color: #008000;">&#40;</span>x, y<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;.&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #008000;">&#125;</span>
            <span style="color: #008000;">&#125;</span>
            port<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">int</span> map<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span> value, <span style="color: #6666cc; font-weight: bold;">int</span> start, <span style="color: #6666cc; font-weight: bold;">int</span> end<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> value <span style="color: #008000;">*</span> <span style="color: #008000;">&#40;</span>end <span style="color: #008000;">-</span> start<span style="color: #008000;">&#41;</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">1023</span> <span style="color: #008000;">+</span> start<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>Within the infinite loop: first the arduino sends the key to know what value we need, then gets that value, it&#8217;s transformed into an int <em>(integer)</em> and then it&#8217;s mapped. All analog values ​​read by arduino are in a range from 0 to 1023. As our console is 80 × 24 characters, we have to transform the values ​​of the potentiometers on that scale, that is what the map function do.</p>
<p>In last post&#8217;s program we map the values ​​in the Arduino program, but I think is a better idea to map them in the C# program so we can use the same Arduino&#8217;s program for various purposes.</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-C1.jpg"><img title="Arduino-Sketch-C1" src="http://thebatzuk.org/wp-content/uploads/2011/06/Arduino-Sketch-C1.jpg" alt="Arduino-Sketch-C1" width="425" height="221" /></a></p>
<p>The button serves to clear the screen, constantly being read its value: when isn&#8217;t oppressed its value is zero, when oppressed is 1; so, when <em>b</em> is 1 we call the <em>Console.Clear()</em> function and go.</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/-5H17urHVro" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/08/arduino-potentiometer-serial-port-and-c-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/08/arduino-potentiometer-serial-port-and-c-2.html</feedburner:origLink></item>
		<item>
		<title>VVVVVV</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/ZlZ9cPiZZ74/vvvvvv.html</link>
		<comments>http://thebatzuk.org/2011/08/vvvvvv.html#comments</comments>
		<pubDate>Fri, 05 Aug 2011 05:22:23 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Frikismo]]></category>
		<category><![CDATA[juegos]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=1991</guid>
		<description><![CDATA[Ok, después del larguísimo post que me aventé hace unos días, hoy sólo les voy a presumir que ya terminé VVVVVV, uno de los juegos que vienen en el Humble Indie Bundle. Aquí mis estadísticas: ¡Casi 4 horas! ¡1226 muertes! No es para nada bueno, pero pues hay se va.  Claro que lo obvio en estos días [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, después del larguísimo post que me aventé hace unos días, hoy sólo les voy a presumir que ya terminé VVVVVV, uno de los juegos que vienen en el <a href="http://thebatzuk.org/2011/08/5-videojuegos-al-precio-que-quieras.html">Humble Indie Bundle</a>. Aquí mis estadísticas:</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/08/vvvvvv-end.png"><img class="aligncenter size-full wp-image-1992" title="vvvvvv-end" src="http://thebatzuk.org/wp-content/uploads/2011/08/vvvvvv-end.png" alt="vvvvvv-end" width="425" height="336" /></a></p>
<p style="text-align: center;"><em>¡Casi 4 horas! ¡1226 muertes! No es para nada bueno, pero pues hay se va. </em></p>
<p>Claro que lo obvio en estos días es comprarlo vía <a href="http://www.humblebundle.com/">Humble Bundle</a> o si se les pasaron los días pueden conseguirlo en su página <a href="http://thelettervsixtim.es/">thelettervsixtim.es</a> o si no, pues ya saben que existe Taringa.</p>
<p>Muy buen juego. Recomendado.</p>
<p>Dato: No se si sea la verdadera razón del nombre del juego, pero los nombres de los personajes son: Viridian, Violet, Victoria, Vermillion, Vitellary y Verdigris; o tal vez el nombre solo sea una representación del principal enemigo del juego: los picos vvvvvv.</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/ZlZ9cPiZZ74" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/08/vvvvvv.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/08/vvvvvv.html</feedburner:origLink></item>
		<item>
		<title>5 videojuegos al precio que quieras</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/IjKDaWQjO9M/5-videojuegos-al-precio-que-quieras.html</link>
		<comments>http://thebatzuk.org/2011/08/5-videojuegos-al-precio-que-quieras.html#comments</comments>
		<pubDate>Mon, 01 Aug 2011 08:17:35 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[Frikismo]]></category>
		<category><![CDATA[juegos]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=1987</guid>
		<description><![CDATA[El termino &#8216;indie&#8217; se está oyendo cada vez más, y no sólo en música sino también en el cine, la literatura y incluso en los videojuegos. Pero bueno, indie es una abreviación de independent (independiente) y significa que el producto (ya sea un álbum, un corto, un libro o un videojuego) fue desarrollado/producido sin el [...]]]></description>
			<content:encoded><![CDATA[<p>El termino &#8216;indie&#8217; se está oyendo cada vez más, y no sólo en música sino también en el cine, la literatura y incluso en los videojuegos. Pero bueno, <strong>indie</strong> es una abreviación de <strong>independent</strong> (<em>independiente</em>) y significa que el producto (<em>ya sea un álbum, un corto, un libro o un videojuego</em>) fue desarrollado/producido sin el apoyo económico de las compañías que se consideran líderes en su rama.</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/08/The-Humble-Indie-Bundle-3.jpg"><img class="aligncenter size-full wp-image-1989" title="The-Humble-Indie-Bundle-3" src="http://thebatzuk.org/wp-content/uploads/2011/08/The-Humble-Indie-Bundle-3.jpg" alt="The Humble Indie Bundle 3" width="425" height="105" /></a></p>
<p>Ya siendo mas específicos les quiero hablar de <a href="http://www.humblebundle.com/">The Humble Indie Bundle</a>, es una iniciativa en la que podemos comprar al precio que queramos un paquete de 5 videojuegos indie. ¿<em>O sea que puedo pagar $1USD por algo que me costaría $50</em>? Sí y hasta menos (<em>pero tampoco hay que ser tan codos</em>). Después de elegir la cantidad que quieres pagar puedes elegir cómo quieres que se reparta tu dinero entre los desarrolladores, la EFF?, los promotores y la caridad. Es la tercera vez que se hace, así que debe de tener bastante éxito.</p>
<p>Esta promoción sólo dura 15 días, de los cuales sólo quedan ocho. Y hasta el momento han vendido alrededor de 195 mil bundles y recaudado ¡más de 900 mil dólares!</p>
<p>Los juegos son multiplataforma y una vez que haces la compra obtienes un link desde donde puedes bajarlos sin ninguna prisa (<em>el link no caduca ni nada</em>). Los juegos no tiene DRM, lo cual significa básicamente que los puedes instalar en todas tus computadoras sin problema; están completos, sin publicidad, perfectos. Los juegos son: <a href="http://www.crayonphysics.com/">Crayon Physics Deluxe</a>, <a href="http://www.cogsgame.com/">Cogs</a>, <a href="http://thelettervsixtim.es/">VVVVVV</a>, <a href="http://www.koshutin.com/">Hammerfight</a> y <a href="http://www.andyetitmoves.net/">And Yet It Moves</a>.</p>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/08/humble-indie-bundle-3.jpg"><img class="aligncenter size-full wp-image-1988" title="humble-indie-bundle" src="http://thebatzuk.org/wp-content/uploads/2011/08/humble-indie-bundle-3.jpg" alt="humble bundle" width="425" height="121" /></a></p>
<p>El primero que bajé fue <strong>VVVVVV</strong> (<em>supongo que me llamó la atención el nombre</em>) y (<em>después de haber jugado todos</em>) creo que es el más adictivo. Es un juego de plataformas con estilo visual muy muy retro en dos dimensiones; te mueves a la izquierda, te mueves a la derecha, pero al intentar moverte hacia arriba te das cuenta que no brincas, sino que vuelas directo hacia el techo y empiezas a caminar sobre él, te mueves hacia abajo y todo normal otra vez. Aquí un <a href="http://www.youtube.com/watch?v=sf06P-_1lkU">Gameplay</a> por si no me expliqué XD Te acostumbras muy fácil a esa forma de movimiento y el juego es en general bastante rápido, aunque hay algunas partes que son un verdadero dolor de cabeza pero que cuando al fin las logras pasar no te puedes evitar soltar un <a href="http://3.bp.blogspot.com/_4-k4YH3MeeE/TSpkNodQS5I/AAAAAAAAAhY/lvehzszHOuM/s400/fuck_yeah_.jpg">Fuck Yeah!</a> Ah y la música es excelente.</p>
<p>El juego que más me sorprendió fue <strong>Crayon Physics Deluxe</strong>, después de iniciarlo y ver la interfaz tan infantil no tuve otra reacción mas que WTF!?, pero después de 2 minutos estoy seguro que fuí el ser humano más sorprendido y emocionado en al menos 24km a la redonda, creo que no despegué mis ojos de la pantalla como por dos horas. El objetivo del juego es hacer llegar una pequeña pelota a un lugar marcado con una estrella, para lograr eso se necesitan hacer dibujos, los dibujos adquieren propiedades físicas después de haberlos terminado; si dibujas un circulo en medio del aire éste va a caer como su fuera una piedra y, dependiendo del tamaño, con mayor o menor intensidad. Puedes dibujar simples rocas y cajas, pernos, pédulos, poleas, cuerdas, puentes. Les dejo el <a href="http://www.youtube.com/watch?v=avkacGQKWec">trailer</a> del juego y recuerden que no se trata de encontrar una solución, se trata de encontrar la más asombrosa de todas.</p>
<p><strong>Cogs</strong> es un juego de puzzles donde tienes que acomodar engranes, tuberías y demás objetos para hacer que una máquina funcione. Son 50 niveles e incluso los primeros tres ya te ponen a pensar. Definitivamente muy entretenido y nos sirve para hacer algo de ejercicio mental que nunca está demás. El <a href="http://www.youtube.com/watch?v=lZzWVkJ5fZk">trailer</a>.</p>
<p><strong>Hammerfight</strong> no lo pude jugar decentemente porque se supone que tú eres un helicoptercillo con una piedra colgando y tienes que hacer girar la piedra alrededor de tí para golpear a tus enemigos, lo cual requiere un movimiento bastante pronunciado del ratón y como yo no tengo ratón pues&#8230; pero <a href="http://www.youtube.com/watch?v=tAVYpvWRdoM">se ve</a> muy bien.</p>
<p>No se si sería porque lo jugué estando cansado o que, pero <strong>And Yet It Moves</strong> me hartó muy pronto. Es un juego de plataformas en dos dimensiones con un aspecto visual que nunca había visto (<em>parece hecho de papel y cartón</em>). El chiste es que con WASD mueves al personaje y con las flechas mueves el mundo alrededor de tí. Como se desarrolla dentro de una cueva no tardas en matarte a tí mismo porque pusiste un montón de piedras justo sobre tu cabeza jeje. Pero bueno, tal vez estaba cansado o tal vez fue la falta de historia (<em>sólo apareces ahí sin más explicación y sin otra cosa que hacer mas que avanzar</em>) o la música de tensión, pero cerré muy pronto este juego. El <a href="http://www.youtube.com/watch?v=1QLp7q18iZk">trailer</a>.</p>
<p>Y bueno pues no hubiera hecho este post si no les quisiera recomendar que compraran el Humble Bundle ¿verdad? así que si pueden vayan y donen aunque sea un dólar y apoyen a los desarrolladores independientes, los juegos de verdad valen más que eso.</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/IjKDaWQjO9M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/08/5-videojuegos-al-precio-que-quieras.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/08/5-videojuegos-al-precio-que-quieras.html</feedburner:origLink></item>
		<item>
		<title>Lo nuevo en mi biblioteca: The Black Angels</title>
		<link>http://feedproxy.google.com/~r/estoyenunrincon/~3/bmulMfE9RZ0/lo-nuevo-en-mi-biblioteca.html</link>
		<comments>http://thebatzuk.org/2011/07/lo-nuevo-en-mi-biblioteca.html#comments</comments>
		<pubDate>Thu, 28 Jul 2011 04:59:23 +0000</pubDate>
		<dc:creator>THEbatzuk</dc:creator>
				<category><![CDATA[¿...?]]></category>
		<category><![CDATA[Música]]></category>
		<category><![CDATA[bandas]]></category>

		<guid isPermaLink="false">http://thebatzuk.org/?p=1984</guid>
		<description><![CDATA[Una de las cosas que más me gusta hacer cuando estoy aburrido y no quiero despegarme de la computadora es buscar bandas nuevas (al menos para mí). Gracias a Last.fm esto me ha resultado algo fácil últimamente, ya que te recomienda automáticamente artistas dependiendo de lo que escuches. Así es que, bueno, espero que esto [...]]]></description>
			<content:encoded><![CDATA[<p>Una de las cosas que más me gusta hacer cuando estoy aburrido y no quiero despegarme de la computadora es buscar bandas nuevas (<em>al menos para mí</em>). Gracias a <a href="http://last.fm">Last.fm</a> esto me ha resultado algo fácil últimamente, ya que te recomienda automáticamente artistas dependiendo de lo que escuches. Así es que, bueno, espero que esto se convierta en una especie de sección aquí en mi blog, donde recomiende las nuevas bandas que se han integrado a mi biblioteca. (<em>¿Porqué le diremos biblioteca a nuestra colección de música si biblioteca significa literalmente caja de libros?</em>).</p>
<h4>The Black Angels</h4>
<p><a href="http://thebatzuk.org/wp-content/uploads/2011/07/blackangels4.jpg"><img class="aligncenter size-full wp-image-1986" title="blackangels" src="http://thebatzuk.org/wp-content/uploads/2011/07/blackangels4.jpg" alt="blackangels" width="400" height="284" /></a></p>
<p>Es una banda americana de Psychedelic Rock. Antes de conocer esta banda me imaginaba el rock psicodélico como ese sonido setentero como un exceso de órgano electrónico con ese extraño sonido como si se escuchara a través de un tubo. Pero no, el rock psicodélico trata de emular la sensación de estar drogado con LSD o al menos fueron escritas usando LSD o hablan del LSD o algo así.</p>
<p>Pero bueno su álbum <strong>Directions to See a Ghost</strong> de verdad, como su nombre lo dice, te transporta a otros lugares. Su ritmo repetitivo mas bien lento, la voz relajada (<em>y relajante</em>), los cambios de intensidad, todo eso hace que te vayas metiendo dentro de las canciones. Definitivamente un muy álbum para escuchar de principio a fin.</p>
<p>La rola recomendada es <a href="http://www.youtube.com/watch?v=Bmqwr8RMCdI">Science Killer</a>. Es genial como se empieza con una línea de bajo y a partir de ahí se construye todo, y la línea se repite prácticamente durante toda la canción.</p>
<ul>
<li><a href="http://www.theblackangels.com/index2.php">The Black Angels Official Site</a></li>
<li><a href="http://www.last.fm/music/The+Black+Angels">The Black Angels Last.fm</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/estoyenunrincon/~4/bmulMfE9RZ0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebatzuk.org/2011/07/lo-nuevo-en-mi-biblioteca.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebatzuk.org/2011/07/lo-nuevo-en-mi-biblioteca.html</feedburner:origLink></item>
	</channel>
</rss>

