{"author_link":"\/users\/simplepotential","author_name":"SimplePotential","author_uid":"1001155","comments":[{"author_name":"TolMera","author_uid":"1004837","time":"2020-10-05T04:14:01Z","epoch":1601871241,"modified":1601871241,"text":"Awesome an HTML Game!\n\nVery cool, I was trying to avoid the walls for the entire run, so was really surprised when I hit the wall and passed right through :)\n\nI love the sounds, and they give a good bit of feedback when you hit a block that's good\/bad (I think the brown box was bad?)\n\n![Screen Shot 2020-10-05 at 2.12.00 pm.png](\/\/\/raw\/5e2\/1\/z\/362d7.png)\n\n![Screen Shot 2020-10-05 at 2.11.53 pm.png](\/\/\/raw\/5e2\/1\/z\/362d8.png)","likes":2,"format":"md"},{"author_name":"APBakeWare","author_uid":"1214375","time":"2020-10-05T04:15:07Z","epoch":1601871307,"modified":1601871307,"text":"I like the DOS style feel. It really plays like one. I think the game struck a balance between easy and hard. With more time, I think that icons to help differentiate between colors would help color-blind players like myself. Although this might take away from the style of game the blocks provide.","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-05T13:22:55Z","epoch":1601904175,"modified":1601904175,"text":"@tolmera - Thanks!  Yes the brown ones are bad they're the \"poo\" :)  I may update the title screen to indicate you can pass through the wall to the other side of the screen.\n\n@apbakeware - Thanks!  Color blindness was my main concern with play ability, I thought about adding a letter to the middle of the squares to help differentiate them but ultimately it was causing my some positioning issues so I abandoned it.  I think I could set it up with an icon mode, might do that in the future then the player would could use their preference.","likes":0,"format":"md"},{"author_name":"Nestral","author_uid":"1169219","time":"2020-10-05T14:43:07Z","epoch":1601908987,"modified":1601909031,"text":"So, on the third attempt I managed to get over 200 points without dying, after that the game was really easy until the point, when a lot of area was covered by poo and food, and the game actually started lagging a bit. I ended up with a pretty good score, I think.\n\n![\u0421\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 2020-10-05 191200.png](\/\/\/raw\/305\/92\/z\/36781.png)\n\nTo solve the difficulty problem, I think, you just need to make the start easier, and the rest harder. You could probably spawn a couple food before the start of the game, so the player had a chance to get to one of them before dying. In the mid-game (what I call a stage before poo overflow) you could limit the amount of food being able to spawn(not sure how hard it is in js, never used it).\nThe rest of the game is pretty simple, and not too bad for a quick jam.","likes":2,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-05T16:13:07Z","epoch":1601914387,"modified":1601914387,"text":"@nestral - thats a good score!  Good suggestions too, thanks.  I hadn't experienced any lag even when simulating food and poo overload, any chance you can provide pc specs and browser you used? ","likes":0,"format":"md"},{"author_name":"BeaverGames","author_uid":"1171803","time":"2020-10-05T19:20:53Z","epoch":1601925653,"modified":1601925653,"text":"Nice HTML coded from scratch! at least it looks like it was. It was a little hard to figure out what to do, but the rest was good!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-05T19:37:45Z","epoch":1601926665,"modified":1601926665,"text":"@beavergames - Yeah, 100% coded from scratch aside from a copy paste of the audio object form w3c, didn't figure there was a need to write something that was going to be identical to what I wrote.","likes":0,"format":"md"},{"author_name":"minibobbo","author_uid":"1001819","time":"2020-10-06T04:09:37Z","epoch":1601957377,"modified":1601957377,"text":"That was a nice little diversion.  I stopped around 6000 points but I think I could have gone much higher.  ![poo.png](\/\/\/raw\/b17\/z\/38c29.png)\n\nI think the problem is that you don't ever have to poo.  Just wait until you are under 50% before picking up the purple and just randomly eat greens until you can get to a purple with under 50% food.  Maybe you could add some objects to dodge or have the game change in some way as you progress?\n\nNicely done coding everything from scratch!\n","likes":2,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-06T14:45:29Z","epoch":1601995529,"modified":1601995529,"text":"@minibobbo - thanks for the feedback!  I'm thinking of making poo happen randomly when above something like 25% or maybe after using too much %.  I wanted to do levels where maybe after a certain score you could progress to a new room with obstacles or other monsters.","likes":0,"format":"md"},{"author_name":"Douwe_Ravers","author_uid":"1168729","time":"2020-10-06T20:00:12Z","epoch":1602014412,"modified":1602014412,"text":"It's a nice and unique little game. In my opinion the game was a little to long although it gave me a sense of being very good at it :D ","likes":1,"format":"md"},{"author_name":null,"author_uid":1012453,"time":"2020-10-06T20:06:20Z","epoch":1602014780,"modified":1602014780,"text":"the sound effects are so cute! and this is one of those simple & addictive games,  i am happy it exists \uff65\uff9f\u2727","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-06T21:07:06Z","epoch":1602018426,"modified":1602018426,"text":"@douwe-ravers - I've had mixed reaction with family and friends, most find it too difficult but some find it overly simple.  Definitely needs some more balancing.\n\n@milk - Thanks so much!","likes":0,"format":"md"},{"author_name":"Pincushion","author_uid":"1144460","time":"2020-10-07T00:34:23Z","epoch":1602030863,"modified":1602030863,"text":"The game's pretty easy if you eat purple. Those greens don't give enough energy to live on. I found that if I eat enough purple, I can have it with a side of brown.\n\nGood job making 3 colours of squares fun. Also, it's cool that you tried something new.\n\n","likes":1,"format":"md"},{"author_name":"Barrier","author_uid":"1102302","time":"2020-10-07T10:04:01Z","epoch":1602065041,"modified":1602065041,"text":"The game seems to be slowing down the longer I played, at some point it got unplayable. But it is pretty nice otherwise.","likes":1,"format":"md"},{"author_name":"burnedkirby","author_uid":"1005168","time":"2020-10-07T12:24:18Z","epoch":1602073458,"modified":1602073458,"text":"Nice simple game, easy to understand, challenging to get a high score. Good work!","likes":1,"format":"md"},{"author_name":"JudgeZedd","author_uid":"1025361","time":"2020-10-07T15:42:38Z","epoch":1602085358,"modified":1602085358,"text":"Sometimes simple is the best, and sometimes things haven't changed much over the years because they didn't need much doing to them in the first place, and I think that's where I am with this. Really simple concept, well executed, fun time. ","likes":2,"format":"md"},{"author_name":"cogcomp","author_uid":"1001978","time":"2020-10-07T15:46:00Z","epoch":1602085560,"modified":1602085560,"text":"That was a lot more fun than I thought it was going to be. Nice game idea! Well done!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-07T20:31:00Z","epoch":1602102660,"modified":1602102660,"text":"@pincushion - Yeah, some balance is needed.  It was intended to be a strategy but too easy to abuse.\n\n@barrier - Heard that from one other in the comments.  Any chance you can provide the browser you used and some high level PC specs?  I haven't been able to replicate but both my machines are gaming rigs.\n\n@burnedkirby - Thanks!\n\n@judgezedd - Thanks, exactly what I was going for and it was a good place to try out a new technology (new to me anyway).\n\n@cogcomp - Lol, thanks.  My brother said something similar and apparently wasted too much time on it","likes":0,"format":"md"},{"author_name":"Unicornfrog","author_uid":"1223778","time":"2020-10-08T01:30:53Z","epoch":1602120653,"modified":1602120653,"text":"Nice pure js game :)","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-08T01:35:07Z","epoch":1602120907,"modified":1602120907,"text":"@unicornfrog - thanks!","likes":1,"format":"md"},{"author_name":"Vleue","author_uid":"1216912","time":"2020-10-08T20:29:47Z","epoch":1602188987,"modified":1602189013,"text":"when the game started I almost expected a snake like game, where the length of the snake would depend on how full the belly is, which would also give a clue to how close to death you are without looking in the corner.\n\nfun game, with just a few coloured squares, nicely done!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-08T20:35:17Z","epoch":1602189317,"modified":1602189317,"text":"@vleue - Thanks!  Yeah, I need to visualize the Belly better.  Either color change, size change, or something.  Originally it was very much more snake like, but I wanted to get away from that and I had a funny bug where the snake tail would drop off and thus poo was born","likes":0,"format":"md"},{"author_name":"island-jam-2-group-3","author_uid":"1064718","time":"2020-10-08T20:39:49Z","epoch":1602189589,"modified":1602189589,"text":"Simple but cool game!. I missed having retry button instead of having to refresh though.","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-08T21:54:24Z","epoch":1602194064,"modified":1602194064,"text":"@island-jam-2-group-3 - Thanks, yeah scrapped a New Game (as well as score board) due to time constraints but I do plan a post compo version with some improvements at some point.","likes":1,"format":"md"},{"author_name":null,"author_uid":1213574,"time":"2020-10-09T18:47:31Z","epoch":1602269251,"modified":1602269251,"text":"Nice Idea. I like how you interpreted the loop as what goes in comes out. Some of the blocks start to overlap when you play for sometime. Maybe you can add like a collider and check if a block exists? I don't know which engine you would be using so you could do like check if something is already present and if yes then don't place green or purple block there. Anyways nice game. :smile: ","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-09T20:11:36Z","epoch":1602274296,"modified":1602274296,"text":"@leofiremage - Thanks!  I didn't use a game engine, I wrote everything custom in JavaScript but I do have collision detection and could certainly add that type of thing.","likes":1,"format":"md"},{"author_name":"Unimaginable_Code_Studios","author_uid":"1180920","time":"2020-10-09T20:12:04Z","epoch":1602274324,"modified":1602274324,"text":"Fun game. Nice interpretation! Fun and challenging! Well done!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-09T21:46:14Z","epoch":1602279974,"modified":1602279974,"text":"@unimaginable-code-studios - Thanks!","likes":0,"format":"md"},{"author_name":"Flaterectomy","author_uid":"1003398","time":"2020-10-10T16:43:41Z","epoch":1602348221,"modified":1602348221,"text":"Super simple concept, but it works. In the end I scored 7520 points. \n\nI noticed some purple cubes covered by brown poo squares, but other than that everything seemed to work well.\n\nAs for graphics, well... they're cubes, and in colour tones on a black background that don't really come across as a balanced colour palette. I'm glad you had the audio that was there, and it definitely suits the retro look of the game, but there's clear room for improvement there as well. \n\nThat said, a solid idea executed well enough. Good job!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-10T17:29:03Z","epoch":1602350943,"modified":1602350943,"text":"@flaterectomy - solid feedback, thanks!","likes":0,"format":"md"},{"author_name":"Ramble House Games","author_uid":"1185062","time":"2020-10-10T23:59:48Z","epoch":1602374388,"modified":1602374388,"text":"Solid little game, I had fun.","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-11T00:21:33Z","epoch":1602375693,"modified":1602375693,"text":"@ramble-house-games - Glad you liked it!","likes":0,"format":"md"},{"author_name":"toby1645","author_uid":"1212294","time":"2020-10-12T13:31:49Z","epoch":1602509509,"modified":1602509509,"text":"Cool retro feel. However I find it a bit difficult to get started, I kept running out of food before I could reach the next piece. I don't know if that's just me being bad or the game. Anyway not that bad for something made in HTML5 and JS in 48 hours.","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-12T13:37:02Z","epoch":1602509822,"modified":1602509822,"text":"@toby1645 - Thanks, great feedback. My post version is going to generate food guaranteed in movement distance.  And more like 10 hours of work too, so that's why I didn't get to things like making sure you'd have food in range.","likes":0,"format":"md"},{"author_name":"Doc_Moustache","author_uid":"1126054","time":"2020-10-12T19:47:33Z","epoch":1602532053,"modified":1602532053,"text":"I quite liked the game. Maybe the beginning was a bit difficult (always running out of food) and was about to make me miss the main \"end game\" part of the game where it's to avoid your own poo, that is created because you eat too much food with your speed. Which was nice!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-12T19:51:17Z","epoch":1602532277,"modified":1602532277,"text":"@doc-moustache - Thanks for the feedback.  Definitely some balance work needed.","likes":0,"format":"md"},{"author_name":"Flying Dog Fish","author_uid":"1122902","time":"2020-10-13T17:10:53Z","epoch":1602609053,"modified":1602609053,"text":"Simple but fun. The controls seemed to get sluggish towards the end, when a lot of stuff was on the screen.","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-14T01:19:58Z","epoch":1602638398,"modified":1602638398,"text":"@flying-dog-fish - thanks, I'm trying to fix the sluggish controls, haven't pinned it down yet","likes":1,"format":"md"},{"author_name":"noxymu5","author_uid":"1218338","time":"2020-10-15T08:15:55Z","epoch":1602749755,"modified":1602749755,"text":"I don't relly like that player moves in increments mush slower than its size. It leads to difficulties with aligning to the food and avoiding poo. Also I had some problems, when I clearly did not touch poo, but collected it anyway. And performance seems to worsen, when you play some time. Other than that, I really think that thats pretty addictive and good game. Add leaderboard and that is a pretty complete game, ready to publishing to some marketplace!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-15T17:01:13Z","epoch":1602781273,"modified":1602791018,"text":"@noxymu5 - thanks, good feedback. I think I have most of the lag fixed in the post jam version, it looks to be related to sound mostly.  And yes, I need to get it to move in pixel increments relative to the player size and spawn food\/poo accordingly. I haven't noticed the collision issue, but will check into it, could be a visual issue with ticks to draw version movement.","likes":0,"format":"md"},{"author_name":"healthire","author_uid":"1014965","time":"2020-10-24T12:26:00Z","epoch":1603542360,"modified":1603542360,"text":"It started off hard and got easier as the game progressed, because more food spawns as you play and there's more food spawning than you need. The game also slows down as you play so it's easier to control. Other than that it works fine and the gameplay is solid, well done!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-25T23:59:54Z","epoch":1603670394,"modified":1603670394,"text":"@healthire - Thanks!  I have a new version in the works but it is nearly a complete re-write but it should take care of most of the slow down.  Apparently the Canvas object doesn't take kindly to having the entire thing redrawn over and over.  So I'm working on a layered canvas approach that I think will take care of the issue.  The food has been balanced a bit more too.","likes":0,"format":"md"},{"author_name":"Tim Eriksen","author_uid":"1032759","time":"2020-10-27T14:33:05Z","epoch":1603809185,"modified":1603809185,"text":"Cool game! Working in js + canvas is a lot of fun! The game is simple but works well, I like it :)","likes":1,"format":"md"},{"author_name":"notime4games","author_uid":"1002265","time":"2020-10-27T16:51:27Z","epoch":1603817487,"modified":1603817526,"text":"Good job! I experienced the slowdowns aswell, I'm on a new gaming rig with Firefox here. As was mentioned the non-alignment of the squares were annoying, and also just passing (0 pixels from the other square, not intersecting. Even diagonally) resulted in a hit so I sure ate some stuff I didn't intend to :)\n\nWould have been more enjoyable without the slowdown, however the basic idea is good and could be expanded upon. My best score was 12245. Oh, and I couldn't restart once I lost so I had to refresh the window everytime. Brave of you not to use one of the common game engines. :) Overall, well done!","likes":1,"format":"md"},{"author_name":"SimplePotential","author_uid":"1001155","time":"2020-10-27T22:29:48Z","epoch":1603837788,"modified":1603837788,"text":"@tim-eriksen - Thank you!  I enjoyed making it, I had some experience with Canvas through building charts but first time trying to use it for a game.\n\n@notime4games - Thank you as well!  Pretty sure I figured out the lag issue I just gotta take time to rewrite it :)  As for the restarting of the game, I have that in the post jam version but didn't get it into the original unfortunately.  Not sure on the collision issue, I haven't experienced it.  My guess is I have something messed up in the collision function maybe a float is getting parse as int and rounding off the position.  I'll look into it.","likes":0,"format":"md"}],"format":"md","images":["ld47\/225157-859ae5e76d2e8eab45ed4e236bdc9c3d.png"],"links":[{"url":"https:\/\/simplepotential.com\/projects\/LD47\/game.htm","text":"Youtube"},{"url":"view-source:https:\/\/simplepotential.com\/projects\/LD47\/game.htm","text":"Youtube"},{"url":"view-source:https:\/\/simplepotential.com\/projects\/LD47\/game.js","text":"Youtube"},{"url":"https:\/\/simplepotential.com\/projects\/LD47v2\/game.htm","text":"Youtube"},{"url":"https:\/\/github.com\/SimplePotential\/What-Goes-In-Must-Come-Out","text":"Youtube"}],"metadata":{"g_key":"58828","g_author":"1001155","g_event":"LD47","g_eventkey":"76","g_subevent":"COMPO","g_urlkey":"269458","g_title":"What Goes In Must Come Out","g_status":"PVT1","g_place":"585","g_commentcount":"45","g_site2_node_id":"225157","g_hide":"N","g_has_icon":"Y","g_rqueue":"0","g_random":"0"},"nds":{"n_key":"225157","n_urlkey":"269458","n_parent":"212256","n_path":"\/events\/ludum-dare\/47\/what-goes-in-must-come-out","n_slug":"what-goes-in-must-come-out","n_type":"item","n_subtype":"game","n_subsubtype":"compo","n_author":"1155","n_created":"1601831622","n_modified":"1603117840","n_version":"707031","n_status":"COMMIT"},"node":{"id":225157,"parent":212256,"superparent":9,"author":1155,"type":"item","subtype":"game","subsubtype":"compo","published":"2020-10-04T18:33:13Z","created":"2020-10-04T17:13:42Z","modified":"2020-10-19T14:30:40Z","version":707031,"slug":"what-goes-in-must-come-out","name":"What Goes In Must Come Out","body":"My Compo entry for LD47, \"What Goes In Must Come Out\".\n\nNot a lot of time to dedicate to this so I stripped down to using HTML and JS Only this time around, no Unity.  Used Bfxr for the sound effects.\n\nI took a lot of inspiration from old DOS style games such as Snake.\n\nControls:\nAt the title screen, Pressing S, Space, or Enter will start the game.\n\nP will toggle Pause\n\nM will toggle Mute\n\nUse Arrow Keys or WASD to move; Game will actually start once you start moving\n\nYou are the White box.\n\nNote that you can pass through the wall to the other side of the screen\n\nRefresh the page to start a new game\n\nWhile I consider myself well versed in HTML and JS, I was completely new to using the Canvas for anything other than Graph style work but found it remarkably easy to build on.  If I was doing it over I'd change a lot of code, such as how I'm building the title screen.\n\nI opted for nothing other that drawing shapes and text on the canvas in order to stay in my time restraints and in the Compo.  I rather like the old school look though.  It'd be pretty easy to switch to actual icons too though.\n\nA note about balance... I play tested as much as I could but it is still pretty random.  Try it again a couple times if you die right away.  You should be able to get a score of at least 1000 points I think.  I average between 3,000 and 10,000 points.\n\nMy play testers went from saying it was too hard to now being too easy.  Let me know what you think, I wouldn't mind fleshing this out a bit more, cleaning up the code and using as a tutorial on my site.\n\n![playing.png](\/\/\/raw\/384\/z\/355bf.png)\n\nUPDATED ON 10\/19\/2020:\n\nWorking more on this last few days but nothing new ready to deploy.  Added a bonus item that will show when there is X amount of poo on screen with a spawn chance that increased for every X poo.  This helps a bit with garbage clean up if you manage to get high scores and helps with lag.  However lag is still an issues I'm tracking down.  I know it is happening as the arrays get larger.  I can see it in the delta times going from about 10-15ms toward start of game up to 30ms or so the longer you play.\n\nUPDATED ON 10\/14\/2020:\n\nI've been working a bit on a post jam version.  Which is always something I say I'll do but never quite get around to it.  Change log below but most significant is I've narrowed down the lag I think and have take steps to mitigate it.  More work to do still but far more playable at higher levels.\n\nPost Jam Version: https:\/\/simplepotential.com\/projects\/LD47v2\/game.htm\n\n- Changed keyup Event Listener to a switch statement rather than multiple listeners\n- No longer using keyCode on the KeyboardEvent object\n    - Using \u201ccode\u201d as keyCode has been deprecated\n    - Adjusted appropriate code to check based on string matches rather than numeric codes\n- Removed \u201cS\u201d as the way to start the game\n    - It is now Space or Enter.\n    - \u201cP\u201d can also be used to Start the game\n    - The same keys all now pause the game as well.\n- Pooing can now occur when you are >= 50% belly.\n    - Speeds up game play\n    - Keeps it more interesting\n    - Currently a 5% chance to poo when above 50% belly\n    - At 100% belly, you poo all excess % just as you would have before\n- Corrected bug with Player movement cost\n    - I was adding\/subtracting based on players Belly fullness but never using the value from that calculation so your energy cost was always flat.\n- Removed play speed increase based on score.\n    - Thought this might be the source of lag but I\u2019ve managed to reproduce the lag I think so still investigating\n    - Game is fast paced enough without increasing the actual play speed though\n- Corrected all spellings of Collision\n- Added more commenting\n- Food is now removed from game play if it gets poo on it.\n    - I mean, who wants to eat food with poo on it right?\n- Mouse cursor now hidden from the game play area\n- Pressing F2 will now start a new game without having to refresh the page\n- Max food that can spawn at any time is now 30\n    - This balances the game a bit\n    - Also helps a bit with the lag since there is less things to collision detect\n- Turned player moving sound into a loop rather than play\/stop each tick.\n    - This has helped a lot with lag\n    - Removing all sound gets rid of all lag but I\u2019d prefer another solution and I\u2019m still investigating.\n","meta":{"author":[1155],"allow-anonymous-comments":"1","link-01":"https:\/\/simplepotential.com\/projects\/LD47\/game.htm","link-01-tag":[42336],"link-02":"view-source:https:\/\/simplepotential.com\/projects\/LD47\/game.htm","link-02-tag":[42332],"link-03":"view-source:https:\/\/simplepotential.com\/projects\/LD47\/game.js","link-03-tag":[42332],"cover":"\/\/\/content\/384\/z\/355a8.png","link-04":"https:\/\/simplepotential.com\/projects\/LD47v2\/game.htm","link-04-tag":[42336],"link-04-name":"Post Jam Version","link-05":"https:\/\/github.com\/SimplePotential\/What-Goes-In-Must-Come-Out","link-05-tag":[42332],"link-05-name":"Post Compo Source Code"},"path":"\/events\/ludum-dare\/47\/what-goes-in-must-come-out","parents":[1,5,9,212256],"love":0,"notes":45,"notes-timestamp":"2020-10-27T22:29:48Z","grade":{"grade-01":47,"grade-02":47,"grade-03":47,"grade-04":46,"grade-05":46,"grade-06":43,"grade-07":38,"grade-08":40},"magic":{"cool":105.89557513121,"feedback":59,"given":48.5,"grade":44.25,"grade-01-average":2.689,"grade-01-result":585,"grade-02-average":2.667,"grade-02-result":541,"grade-03-average":2.556,"grade-03-result":570,"grade-04-average":2.261,"grade-04-result":609,"grade-05-average":1.966,"grade-05-result":604,"grade-06-average":2.378,"grade-06-result":470,"grade-07-average":2.264,"grade-07-result":368,"grade-08-average":2.145,"grade-08-result":568,"smart":-1.9101349699082}},"text":"My Compo entry for LD47, \"What Goes In Must Come Out\".\n\nNot a lot of time to dedicate to this so I stripped down to using HTML and JS Only this time around, no Unity.  Used Bfxr for the sound effects.\n\nI took a lot of inspiration from old DOS style games such as Snake.\n\nControls:\nAt the title screen, Pressing S, Space, or Enter will start the game.\n\nP will toggle Pause\n\nM will toggle Mute\n\nUse Arrow Keys or WASD to move; Game will actually start once you start moving\n\nYou are the White box.\n\nNote that you can pass through the wall to the other side of the screen\n\nRefresh the page to start a new game\n\nWhile I consider myself well versed in HTML and JS, I was completely new to using the Canvas for anything other than Graph style work but found it remarkably easy to build on.  If I was doing it over I'd change a lot of code, such as how I'm building the title screen.\n\nI opted for nothing other that drawing shapes and text on the canvas in order to stay in my time restraints and in the Compo.  I rather like the old school look though.  It'd be pretty easy to switch to actual icons too though.\n\nA note about balance... I play tested as much as I could but it is still pretty random.  Try it again a couple times if you die right away.  You should be able to get a score of at least 1000 points I think.  I average between 3,000 and 10,000 points.\n\nMy play testers went from saying it was too hard to now being too easy.  Let me know what you think, I wouldn't mind fleshing this out a bit more, cleaning up the code and using as a tutorial on my site.\n\n![playing.png](\/\/\/raw\/384\/z\/355bf.png)\n\nUPDATED ON 10\/19\/2020:\n\nWorking more on this last few days but nothing new ready to deploy.  Added a bonus item that will show when there is X amount of poo on screen with a spawn chance that increased for every X poo.  This helps a bit with garbage clean up if you manage to get high scores and helps with lag.  However lag is still an issues I'm tracking down.  I know it is happening as the arrays get larger.  I can see it in the delta times going from about 10-15ms toward start of game up to 30ms or so the longer you play.\n\nUPDATED ON 10\/14\/2020:\n\nI've been working a bit on a post jam version.  Which is always something I say I'll do but never quite get around to it.  Change log below but most significant is I've narrowed down the lag I think and have take steps to mitigate it.  More work to do still but far more playable at higher levels.\n\nPost Jam Version: https:\/\/simplepotential.com\/projects\/LD47v2\/game.htm\n\n- Changed keyup Event Listener to a switch statement rather than multiple listeners\n- No longer using keyCode on the KeyboardEvent object\n    - Using \u201ccode\u201d as keyCode has been deprecated\n    - Adjusted appropriate code to check based on string matches rather than numeric codes\n- Removed \u201cS\u201d as the way to start the game\n    - It is now Space or Enter.\n    - \u201cP\u201d can also be used to Start the game\n    - The same keys all now pause the game as well.\n- Pooing can now occur when you are >= 50% belly.\n    - Speeds up game play\n    - Keeps it more interesting\n    - Currently a 5% chance to poo when above 50% belly\n    - At 100% belly, you poo all excess % just as you would have before\n- Corrected bug with Player movement cost\n    - I was adding\/subtracting based on players Belly fullness but never using the value from that calculation so your energy cost was always flat.\n- Removed play speed increase based on score.\n    - Thought this might be the source of lag but I\u2019ve managed to reproduce the lag I think so still investigating\n    - Game is fast paced enough without increasing the actual play speed though\n- Corrected all spellings of Collision\n- Added more commenting\n- Food is now removed from game play if it gets poo on it.\n    - I mean, who wants to eat food with poo on it right?\n- Mouse cursor now hidden from the game play area\n- Pressing F2 will now start a new game without having to refresh the page\n- Max food that can spawn at any time is now 30\n    - This balances the game a bit\n    - Also helps a bit with the lag since there is less things to collision detect\n- Turned player moving sound into a loop rather than play\/stop each tick.\n    - This has helped a lot with lag\n    - Removing all sound gets rid of all lag but I\u2019d prefer another solution and I\u2019m still investigating.\n","title":"What Goes In Must Come Out"}