<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- generator="FeedCreator 1.7.2" --><?xml-stylesheet href="" type="text/css"?><?xml-stylesheet href="" type="text/xsl"?><rss version="2.0">
    <channel>
        <title>Zophon</title>
        <description><![CDATA[All my news around Openmoko and the Freerunner]]></description>
        <link>http://scalde.free.fr/</link>
        <lastBuildDate>Tue, 14 Apr 2026 02:38:17 +0000</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><item>
            <title>Pong progresses</title>
            <link>http://scalde.free.fr/index.php/blog/openmoko/93-pong-pogresses</link>
            <description><![CDATA[<p align="justify">It has been one week since I decided to program a pong for my favourite phone. I made some progress :</p><p align="justify">First on the graphics (yes I call white rectangles "graphics"! ) : I ran into a major speed problem with SDL. With a whole screen update each iteration I got only 5 to 6 fps, so I had to look into a "dirty rectangles" technique to implement. That is, redrawing only what needs a redraw at each frame. Well, that seemed a bit too complicated for me. By the way thanks Aapo Rantalainen for all the explanations. So I followed Gustavo Sverzut Barbieri's advice and tried EFL. Hmm, a bit hard at first sight but after some hours of work I got something nice and smooth running :</p><p>&nbsp;</p><div style="text-align: center"><img src="http://scalde.free.fr/images/stories/openmoko/pong/pong-screenshot-2.png" border="0" width="450" height="599" /></div><div style="text-align: center"> </div> <p align="justify"> On the control part : first I used the mouse_button_down event and divided the screen into to zone (left to move the paddle left and so on). That way I had to click like a fool to make my paddle move, poor touchscreen <img src="http://scalde.free.fr/plugins/editors/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif" border="0" alt="Wink" title="Wink" />. Then I switched to used the mouse_motion event and the x,y coordinates but if by chance yor finger stays in the same location the paddle won't move...Is there any possibility to look whenever I want (not with a particular triggered event) the mouse x and y's?</p><p align="justify">So I programmed the graphics, the ball motion and acceleration after each hit, the score is displayed (first to 11 wins) and a basic AI...</p><p align="justify">Here is the package : <a class="doclink" href="http://scalde.free.fr/index.php?option=com_docman&task=doc_download&gid=4&Itemid=71">pong_0.1_armv4t.ipk (<span class="small">11.36 kB</span>)</a> just paste it to your /home and opkg install it.</p><p align="justify">What's next? A little menu where you could set options (like amount of points to win and so on...), moving the look and feel to an edje file and maybe an accelerometer controlled paddle. For the moment I won't release the sources because it would be a shame to release such an ugly and undocumented code <img src="http://scalde.free.fr/plugins/editors/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-sealed.gif" border="0" alt="Sealed" title="Sealed" />, I am working on that too.</p><p align="justify"> Have fun ! </p>]]></description>
            <author>Harald "Zophon" Zophoniasson &lt;zophon@gmail.com&gt;</author>
            <pubDate>Mon, 24 Nov 2008 02:39:00 +0000</pubDate>
            <guid>http://scalde.free.fr/index.php/blog/openmoko/93-pong-pogresses</guid>
        </item>
        <item>
            <title>My first Openmoko project</title>
            <link>http://scalde.free.fr/index.php/blog/openmoko/87-my-first-openmoko-project</link>
            <description><![CDATA[<p align="justify"> I recently spoke about my intentions to develop some little games for Openmoko. I can now announce that my first project will be a Pong (yeah I know, I don't start big...). I just begun coding and already run into some difficulties. But I made a big step forward : I created an icon for my project. What? Isn't that a big step? Well you' re right...Here it is : </p><div style="text-align: center"><img src="http://scalde.free.fr/images/stories/openmoko/pong/icone.png" border="0" /></div><p>Nice, isn't it? And here an in-game screenshot : </p><div style="text-align: center"><img src="http://scalde.free.fr/images/stories/openmoko/pong/pong-screenshot-1.png" border="0" width="450" height="600" /></div> <p align="justify">&nbsp;</p><p align="justify">Well now let's speak about the problem I have. I am developping this game with SDL. I am just drawing one black box and three white boxes and polling events (SDL_PollEvent(&event)), to know if there was a mouse click. That is not much and it is already lagging. Maybe polling is not the right thing to do? Also I've figured out that the "enable repeat" does not work for the mouse. I want to avoid continuous clicking and have a nice smooth movement while keeping  pressing on the screen... I will try to fix that during the weekend, more infos by the end of it. </p>]]></description>
            <author>Harald "Zophon" Zophoniasson &lt;zophon@gmail.com&gt;</author>
            <pubDate>Fri, 14 Nov 2008 06:08:00 +0000</pubDate>
            <guid>http://scalde.free.fr/index.php/blog/openmoko/87-my-first-openmoko-project</guid>
        </item>
    </channel>
</rss>