capnmarcy [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=23299 Spiritboard <p> <table><tr><td> <a href="/bbs/?pid=46847#p"> <img src="/bbs/thumbs/pico46889.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46847#p"> Spiritboard 1.69</a><br><br> by <a href="/bbs/?uid=23299"> capnmarcy</a> <br><br><br> <a href="/bbs/?pid=46847#p"> [Click to Play]</a> </td></tr></table> <br /> A cute game about 3 girls playing with a spiritboard and getting more than they bargained for! Started out as a cute spiritboard thing like an 8 ball but became a visual novel without me realizing it.</p> <p>If you want the executables there is a <a href="https://capnmarceline.itch.io/spiritboard">itch.io page</a> it also contains the full code with comments which I sadly had to strip for the bbs release.</p> <p>The question menu is controlled with x to go to the top of the menu and c to select. Enter opens the start menu.</p> <p>To use the paste option on the question menu you must first paste into the game before it can access your clipboard.</p> https://www.lexaloffle.com/bbs/?tid=30347 https://www.lexaloffle.com/bbs/?tid=30347 Wed, 29 Nov 2017 20:13:48 UTC Text heavy game <p>Hi, I'm currently working on a text heavy narrative game and as of now my main text table(Formatted as a string I then parse into a table at runtime) takes up 41% of the compressed size limit. Is there any way I can slim this down without losing text?<br /> Is it viable to store the strings in a seperate cart and then memcpy them into my main cart? Would that stop it running in html/bbs/.exe?<br /> Alternatively I can split the text into distinct sections and then store them as a string of carts which daisy chain into one another but that won't work in html to my knowledge and would rather fill the bbs up unnecessarily with carts that are just meant to be run by another cart.</p> https://www.lexaloffle.com/bbs/?tid=30270 https://www.lexaloffle.com/bbs/?tid=30270 Wed, 15 Nov 2017 23:48:18 UTC Best OOP method <p>Hi, I find myself doing lots of OOP in pico-8 just as I find it a bit more manageable in my head even if it isn't token efficient. I used to create objects with the following method. As a slightly aside point what does cls in the setmetatable call stand for or do? I never worked it out.</p> <div> <div style="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> setmetatable(actors, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(...) return self end, }) function actors:_init(type,x,y,xoffset,yoffset,xoffset2,yoffset2,health) --actors initilization function sets all of it's parameters return self end add(actorTable,actors(--parameters)) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Recently however I have been creating them with the following method.</p> <div> <div style="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> function createenemy(x,y,path) local enem = {} --Enemy variables and methods are initialized enem.update = function(this) end enem.hit = function(this) end enem.draw = function(this) spr(this.sprite,this.x,this.y) end add(enemy,enem) add(objects,enem) end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Is one of these better than the other? The latter feels simpler at least to me but are there any performance differences or style issues? </p> https://www.lexaloffle.com/bbs/?tid=30069 https://www.lexaloffle.com/bbs/?tid=30069 Sat, 14 Oct 2017 02:47:39 UTC