biteco8 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=68257 Pico 4 <p>I am doing a little project here and decided to show how the results are going.<br /> The project will be called pico 4 and will run on pico 8. It will have an audio editor (16 audios, eaach one with a length of 8 notes, 16 notes and 16 volumes), a sprite editor (4 colors palette, 16 sprites, 4x4 pixels and a 32x32 screen), a map editor (32x32 tiles) and a code editor (256 tokens, each one fitting on exactly 1 byte). In the end you get 961 bytes in a cartridge and with a little 63 bytes of save (mainly for highscores) it results in 1 kilo byte cartidges.<br /> The objective is to do a mini-console where you can do a minigame in les than 2 hours.<br /> Will be possible to use it in any pico 8 port using of virtual keyboards and some type of external saving (thinking in some type of special qr code or something).<br /> And every editor will be written on the bto language (successive letters of asm) the language I am ending now.<br /> Here the first interpreter. (You need to put the code inside the cart code (last lines inside quotes) 'cause I didn't end the code editor yet lol)</p> <p> <table><tr><td> <a href="/bbs/?pid=118911#p"> <img src="/bbs/thumbs/pico8_pico4-5.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=118911#p"> pico4</a><br><br> by <a href="/bbs/?uid=68257"> biteco8</a> <br><br><br> <a href="/bbs/?pid=118911#p"> [Click to Play]</a> </td></tr></table> </p> <p>I will keep updating here.</p> <h1>BTO DOUCMENTATION</h1> <p>Sintax:<br /> <div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div class=scrollable_with_touch style="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> Declaration: a = sentence Sentences: Are like values. A number is a sentence, a id is a sentence, a char is a sentence, a function literal is a sentence and a &quot;function call&quot; is a sentence. Sentences can include other sentences inside of them using parenthesis Every sentence ends in a; Characters are initialized with $c where c is the char you want Function literals are code included inside of {} Example sentences: $a $( $\e (empty char) print 0 0 $a sub var 1 (execute the code) {sub a 2} (store the code on a string) if c {print 0 0 a} Functions: if cond code equal a b -&gt; true if both are equal false if not print x y str1 str2 str3 sub a b add a b str c1 c2 c3 c4... -&gt; gets a lot of characters and put them together in a single string strcat s1 s2 -&gt; cats two strings (similar to str) strsub s start end -&gt; same as pico 8 but zero idexed strlen s btn b key -&gt; returns the first key pressed on the virtual keyboard on the key queue updt fn -&gt; sets the update callback Built in variables: true = 1 false = 0 (x emoji) and (o emoji) = same as pico lua</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div><br /> Examples:<br /> <div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div class=scrollable_with_touch style="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> if 0 {print 0 0 2;}; Doesn't print nothing a = 1; if a {print 0 0 (sub a 2;);}; Prints -1 print 0 0 (str $L $o $v $e;); Prints Love if (btn X;) { print 0 0 (key;);}; If is pressing X, prints the last typed char on the virtual keyboard</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=49748 https://www.lexaloffle.com/bbs/?tid=49748 Tue, 11 Oct 2022 18:19:30 UTC Bug when looping on string <p>Today I was playing with string management and thought: &quot;If strings now work kinda like tables, maybe pairs() can work with them&quot;, but seems that it can't...</p> <img style="margin-bottom:16px" border=0 src="/media/68257/ohman.png" alt="" /> <p>code:<br /> for p, i in pairs(code) do<br /> .<br /> .<br /> .</p> <p>Note: I am on education edition</p> https://www.lexaloffle.com/bbs/?tid=49747 https://www.lexaloffle.com/bbs/?tid=49747 Tue, 11 Oct 2022 17:39:57 UTC Procedural World Generation <p> <table><tr><td> <a href="/bbs/?pid=117724#p"> <img src="/bbs/thumbs/pico8_proceduralworlds-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=117724#p"> proceduralworlds</a><br><br> by <a href="/bbs/?uid=68257"> biteco8</a> <br><br><br> <a href="/bbs/?pid=117724#p"> [Click to Play]</a> </td></tr></table> </p> <p>I'm making a game with procedural world genration and decided to post the generator here. If you have some suggestion, please tell me xD.</p> https://www.lexaloffle.com/bbs/?tid=49416 https://www.lexaloffle.com/bbs/?tid=49416 Tue, 20 Sep 2022 20:01:47 UTC Copy on mobile <p>Playing terra on the bus, I discovered there's no apparent way to copy something on bbs in the mobile. It would be very cool if maybe we had a button to copy the message put on the copy area. It can help to save your progress and etc. The inverse is also a needed thing, pasting into the game.</p> https://www.lexaloffle.com/bbs/?tid=49203 https://www.lexaloffle.com/bbs/?tid=49203 Mon, 05 Sep 2022 15:10:54 UTC FEATURE REQUEST: TERNARY OPERATOR <p>Hi, I think the tittle is self explanatory. I always had to fight against that lua lack. I came from c, so I am very accustomed to use the inline conditions. And it can be very useful for shrink code, like with tweetcarts. I know, there are some approaches in lua to solve this, but an official and explicit way would be very good.</p> https://www.lexaloffle.com/bbs/?tid=49084 https://www.lexaloffle.com/bbs/?tid=49084 Sun, 28 Aug 2022 19:59:10 UTC BUTTER ROOSTER <p> <table><tr><td> <a href="/bbs/?pid=115945#p"> <img src="/bbs/thumbs/pico8_butter_rooster-13.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=115945#p"> butter_rooster</a><br><br> by <a href="/bbs/?uid=68257"> biteco8</a> <br><br><br> <a href="/bbs/?pid=115945#p"> [Click to Play]</a> </td></tr></table> </p> <p>A game with a fighting rooster with butter in the foot.</p> <p>Select a city on the menu and try to beat it's residents.</p> <p>You need to get the rock, get impulse and shoot it on the zombie roosters.</p> <p>Kill all the enemies to go to next wave.</p> <p>Beat all the waves to defeat the selected city</p> <h1>CONTROLS</h1> <p><strong>GET THE ROCK</strong> -&gt; JUST COLLIDE WITH IT<br /> <strong>SHOOT THE ROCK</strong> -&gt; X<br /> <strong>MOVE YOUR ROOSTER</strong> -&gt; ARROW KEYS</p> <h1>1.0</h1> <ul> <li>First official launch</li> </ul> <h1>1.1</h1> <ul> <li>New maps for Grooster (grass and roooster, get it?)</li> </ul> <h1>1.2</h1> <ul> <li>Menu added</li> <li>Outlines added</li> <li>Complete reform on graphics</li> </ul> <h1>1.3</h1> <ul> <li>New cities added</li> <li>New tiles added</li> </ul> <h1>1.4</h1> <ul> <li>Cities completely setted up<br /> <em>Game in constant work and various things can change</em></li> </ul> https://www.lexaloffle.com/bbs/?tid=48951 https://www.lexaloffle.com/bbs/?tid=48951 Wed, 17 Aug 2022 16:47:49 UTC