juanitogan [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=16263 Landing Party of Legend <p> <table><tr><td> <a href="/bbs/?pid=43037#p"> <img src="/bbs/thumbs/pico43036.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43037#p"> Landing Party of Legend 0.1</a><br><br> by <a href="/bbs/?uid=16263"> juanitogan</a> <br><br><br> <a href="/bbs/?pid=43037#p"> [Click to Play]</a> </td></tr></table> </p> <hr /> <p><h2>NOTE: Not playable here due to cartridge swapping.<br /> Only the menu is here due to level data on other carts.<br /> 10 carts in use with this alpha release.</h2></p> <p><strong>A fully-playable HTML export is on my itch.io page here:</strong></p> <p><a href="https://juanitogan.itch.io/landing-party-of-legend">https://juanitogan.itch.io/landing-party-of-legend</a></p> <hr /> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/16263/lparty.gif" width=256 height=256 alt="" /> <p><h2>Landing Party of Legend</h2></p> <p><em>&quot;Dead people are going to die.&quot;</em></p> <p><strong>Are you an awesome enough starship captain to direct your landing parties through the perils of nine mysterious worlds?</strong></p> <p>Welcome to <em>Landing Party of Legend</em>, a strategy adventure game of campy, red-shirt-style attrition. You and several other famous and notorious people from history have escaped your captors and are trying to make it back to Earth (without too many casualties) so that the world may know your tale.</p> <p>Thanks goes to <a href="https://www.lexaloffle.com/bbs/?uid=9338"> @geckojsc</a>'s <a href="https://www.lexaloffle.com/bbs/?tid=3833">RPG Dialogue Scripting Demo</a> for giving me some skeleton code to start building from.</p> <p>Based on the text-only game, <em>Landing Party</em> (started on a TRS-80 in 1983), by Rick Pitel. Original content used by permission. Last version by Rick Pitel found here:</p> <p><a href="https://archive.org/details/msdos_Landing_Party_1989">https://archive.org/details/msdos_Landing_Party_1989</a></p> <p><h3>Alpha testing release notes</h3></p> <ul> <li> <p>Only content for the first planet is written, with 100% recycled content for the other 8 planets at the moment (mashed up in various ways). The goal is 25% new content for each planet with various mashups of base content and ramping difficulty (which includes making the first planet easier).</p> </li> <li>A couple more interaction types and humor points are coming as well. I ran out of code space to add them to the story processor but have plans to do another cartridge split to make room for them.</li> </ul> https://www.lexaloffle.com/bbs/?tid=29754 https://www.lexaloffle.com/bbs/?tid=29754 Thu, 03 Aug 2017 20:06:45 UTC PICO-8 Programming Fonts <p>As a spinoff to <a href="https://www.lexaloffle.com/bbs/?tid=3760">TTF fonts by @RythmLynx</a>, I created some bitmap fonts (in various typefaces) because I could map them to both OEM and Windows 1252 (which also includes ISO 8859-1) for use in text editors. I have FON font files for only Windows right now (until someone converts them to the Linux types and tests them).</p> <p>UPDATE: DejaVu TrueType fonts have been added to the collection.</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/16263/screenshot-st3-npp-p8.png" width=1500 height=900 alt="" /> <p><em>Screenshot of the same p8 file open in Sublime Text, Notepad++, and PICO-8.</em></p> <p>Fonts and more details on the Github page:</p> <p><a href="https://github.com/juanitogan/p8-programming-fonts">https://github.com/juanitogan/p8-programming-fonts</a></p> https://www.lexaloffle.com/bbs/?tid=28975 https://www.lexaloffle.com/bbs/?tid=28975 Thu, 16 Mar 2017 01:04:41 UTC Token-free Constants <p>In the spirit of sharing readable code, it should not cost tokens for things that only serve to make the code more readable. There are exceptions, of course, that can't be helped, where you might choose a short and less-readable algorithm over a more verbose one that does the same thing -- such as what I call the poor-man's ternary (c = a &gt; b and 3 or 2) versus the &quot;if&quot; block (if a &gt; b then c = 3 else c = 2 end).</p> <p>Anyhow, back to the point, constants are one thing that serve no purpose other than to make reading and debugging easier. Thus, I feel, declaring a constant should cost no tokens in order to encourage the use of them. Referencing a constant, of course, should still cost a token.</p> <p>Now, as most of you have already shouted out, the primary flaw with this proposal is that Lua does not support constants. Constant declarations would have to be added to the PICO-8 flavor of Lua which, well, is already not pure Lua. Furthermore, Lua was surely not imagined to be limited by tokens... so it seems fair to tweak PICO-8 Lua in this way in response to PICO-8's limitations.</p> <p>Why?</p> <p>Well, currently, I have 80 variable declarations (which are really just constants in their function) occupying 240 tokens. I am running out of tokens and want those tokens back from the constants. Thus, I will likely write a preprocessor (or modify <a href="https://www.lexaloffle.com/bbs/?uid=9599"> @dddaaannn</a>'s excellent <a href="https://www.lexaloffle.com/bbs/?tid=2691">picotool</a>) to strip out and replace the constants. I am marking my constants like this in preparation for that work:</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> --[[const]] c_black = 0 --[[const]] c_dkblue = 1 </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>... but it would just be much simpler if I didn't have to pull such shenanigans to get my tokens back (which will also have the side effect of making the code I may distribute less readable).</p> https://www.lexaloffle.com/bbs/?tid=28836 https://www.lexaloffle.com/bbs/?tid=28836 Tue, 14 Feb 2017 19:10:33 UTC