eth3real [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=26181 THE MATRIX HAS YOU <p> <table><tr><td> <a href="/bbs/?pid=46090#p"> <img src="/bbs/thumbs/pico46188.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46090#p"> MATRIX 1.0</a><br><br> by <a href="/bbs/?uid=26181"> eth3real</a> <br><br><br> <a href="/bbs/?pid=46090#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is my second upload (first was only music), though still not exactly a game.</p> <p>The code looks crazy, and probably isn't the most efficient method, but it works! I'd love any tips on things I could do to improve this. Thanks!</p> <p>-eth3real</p> https://www.lexaloffle.com/bbs/?tid=30225 https://www.lexaloffle.com/bbs/?tid=30225 Thu, 09 Nov 2017 23:00:52 UTC Music - IT Crowd Intro <p>Just started getting familiar with the PICO-8 music editor, it's surprisingly easy to work with once you understand the interface.</p> <p><strong>Update</strong>: Added PICO-8 cart, and changed music slightly. ;)<br /> <strong>Update 2</strong>: Fixed more of the music, probably as good as it can get on PICO-8 at this point.</p> <p> <table><tr><td> <a href="/bbs/?pid=45897#p"> <img src="/bbs/thumbs/pico46946.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=45897#p"> IT_CROWD 1.1</a><br><br> by <a href="/bbs/?uid=26181"> eth3real</a> <br><br><br> <a href="/bbs/?pid=45897#p"> [Click to Play]</a> </td></tr></table> </p> <p>Recording on YouTube (old version now):</p> <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/ffwL57gX4Gg&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/ffwL57gX4Gg&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> <p>If you've never seen / heard of The IT Crowd, here's a video of the intro:</p> <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/6bH-MdVCLWM&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/6bH-MdVCLWM&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> <p>Maybe one day I'll incorporate this into a PICO-8 game. Let me know if you have any suggestions! ;)</p> https://www.lexaloffle.com/bbs/?tid=30194 https://www.lexaloffle.com/bbs/?tid=30194 Sun, 05 Nov 2017 14:11:40 UTC Tutorial: PICO-8 on Raspberry Pi with PiTFT - no X11! <p>Hello everyone!</p> <p>I recently ordered myself a PocketCHIP, and while waiting for it to arrive, I needed something to hold me over. After literally waking up in the middle of the night with this idea, I bought a copy of PICO-8 and broke out my Raspberry Pi + Adafruit PiTFT 2.8&quot; and got working.</p> <p>Fast forward several days of pulling my hair out, since there didn't seem to be any tutorials that A) worked, or B) provided enough detail, I got serious about trying to get a guide together, start to finish. That is to say, I don't want anyone else to go as crazy as I did trying to sort this out.</p> <p>I'd love to know if this works for you, things that you do differently, or any projects that get made from this!</p> <p>Components:<br /> PICO-8 v0.1.11<br /> Raspberry Pi version 1 model B<br /> Raspbian Stretch Lite<br /> PiTFT 2.8&quot; with resistive touchscreen (<a href="https://www.adafruit.com/product/1601">https://www.adafruit.com/product/1601</a>)</p> <p>Raspberry Pi configuration:<br /> Overclocking: Modest<br /> Memory Split: 44<br /> <center><br /> <a href="https://imgur.com/a6QUTuI"><img style="margin-bottom:16px" border=0 src="http://i.imgur.com/a6QUTuI.jpg" alt="" /></a><br /> Raspbian console</p> <p><a href="https://imgur.com/3f3BSEo"><img style="margin-bottom:16px" border=0 src="http://i.imgur.com/3f3BSEo.jpg" alt="" /></a><br /> Loaded &quot;hello&quot; demo. Resolution is wrong, but I think that should be an easy fix.<br /> </center><br /> <strong>Update:</strong> resolution fixed, added &quot;-pixel_perfect 0&quot; to commandline arguments.<br /> <center><br /> <a href="https://imgur.com/KgMgM27"><img style="margin-bottom:16px" border=0 src="http://i.imgur.com/KgMgM27.jpg" alt="" /></a><br /> Resolution fixed!<br /> </center><br /> <strong>Update:</strong> Now portable! Adding a LiPo battery with a charging / boost converter circuit was very easy:<br /> <center><br /> <a href="https://imgur.com/eIFDxSv"><img style="margin-bottom:16px" border=0 src="http://i.imgur.com/eIFDxSv.jpg" alt="" /></a><br /> LiPo battery pack and charging circuit added. Charging circuit is actually a Wemos D1 Mini LiPo shield.</p> <p><a href="https://imgur.com/4KE4E9y"><img style="margin-bottom:16px" border=0 src="http://i.imgur.com/4KE4E9y.jpg" alt="" /></a><br /> Hug Arena in the airport. Irony was realized once I was actually on the plane.<br /> </center><br /> Without further ado, the tutorial:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> # AFTER setting up NEW Raspbian Stretch Lite and configuring network # NOT tested with other versions of Raspbian, or Desktop environments # SAFETY NOTE: be careful compiling/running code from the Internet! # This includes BASH scripts as well as source code! # from another host, transfer the PICO-8 v0.1.11 binaries to the Raspberry Pi # NOT tested with other versions of PICO-8 scp pico-8_0.1.11_raspi.zip pi@raspberrypi:~/ # directions starting here are directly on the Raspberry Pi # unpack the PICO-8 binaries unzip pico-8_0.1.11_raspi.zip # update the system sudo apt-get update sudo apt-get upgrade # the following commands are borrowed from: # https://solarianprogrammer.com/2015/01/22/raspberry-pi-raspbian-getting-started-sdl-2/ # download SDL2 source wget https://www.libsdl.org/release/SDL2-2.0.7.tar.gz # unpack SDL2 source tar zxvf SDL2-2.0.7.tar.gz # install dependencies sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg-dev libtiff5-dev libwebp-dev automake git-core # build SDL2 cd SDL2-2.0.7 # configure SDL2 # NOTE: this is for Raspberry Pi version 1: ./configure --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl # NOTE: this is for Raspberry Pi versions 2 and 3 (NOT TESTED): ./configure --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl # if there were no issues, build and install the binaries # this will take a while, play some PICO-8 BBS cartridges while you wait ;) make -j 4 sudo make install # download and install wiringPi git clone git://git.drogon.net/wiringPi cd wiringPi ./build # the following commands are borrowed from: # https://learn.adafruit.com/running-opengl-based-games-and-emulators-on-adafruit-pitft-displays/pitft-setup # download and run the PiTFT-FBCP script # NOTE: after a reboot, your HDMI monitor will likely be unusable, as the resolution will be too low! # make sure you're able to SSH into your Raspberry Pi before rebooting! cd ~ wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/pitft-fbcp.sh sudo bash pitft-fbcp.sh # select appropriate options for your setup! # to get fbcp running at startup, we need to make a change to /etc/rc.local # in my case, /usr/local/bin/fbcp was already added, but not working properly sudo nano /etc/rc.local # add &quot;sleep 20 &amp;&amp; &quot; BEFORE fbcp so that it looks like this: sleep 20 &amp;&amp; /usr/local/bin/fbcp &amp; # this must be BEFORE the &quot;exit 0&quot; line! # after logging in, start PICO-8 by running: ~/pico-8/pico8 # doesn't matter if you use pico8 or pico8_dyn, both will work! </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Apologies for the huge code block, I was keeping all of my notes in a text editor while trying different things. Final version of these notes were tested start to finish on a new Raspbian install to verify accuracy. :)</p> <p>Next steps: make pico-8 run at boot time, controller and touchscreen setup, and get the case back together with a battery pack to make this portable!</p> <p>Hope this helps someone! Enjoy! :)<br /> -Eth3real</p> https://www.lexaloffle.com/bbs/?tid=30125 https://www.lexaloffle.com/bbs/?tid=30125 Fri, 27 Oct 2017 22:38:30 UTC