thewreck [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=26973 Bygone Recreational Area Simulation <p> <table><tr><td> <a href="/bbs/?pid=85933#p"> <img src="/bbs/thumbs/pico8_jurgen-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=85933#p"> Bygone Recreational Area Simulation v1.2</a><br><br> by <a href="/bbs/?uid=26973"> thewreck</a> <br><br><br> <a href="/bbs/?pid=85933#p"> [Click to Play]</a> </td></tr></table> </p> <p>v1.2<br /> -fixed issue where vegetation would regrow instantly when frame counter loops around.</p> <p>v1.1<br /> -added more sounds</p> <p>v1.0<br /> A holiday-inspired island simulation with dinosaurs and humans trying their absolute best to prosper.</p> <p>Created after watching Jurassic Park&trade; 1-5 during the holidays.</p> <p>You can only observe in this game.</p> <p>Arrow keys to move camera.<br /> Z to track an entity.<br /> While tracking an entity, tap Z to show/hide ai.<br /> hold X to speed up.<br /> hold X and tap Z to lock ultra speed up and show a faster summary board.<br /> Tap x or z while in ultra speed summary screen to return to normal speed.</p> <img style="margin-bottom:16px" border=0 src="/media/26973/summary.png" alt="" /> <p>The summary board will show the current count of each entity type, as well as the highest generation achieved.<br /> If an entity type is extinct, it will show the remaining respawn delay.</p> <p>The &quot;AI&quot; is a super simple neural net based on the absolute simplest example I could find online.<br /> First input layer is:<br /> 1..n neurons representing a fading signal for each action an entity can take<br /> 1 health fraction neuron<br /> 2 energy fraction neuron<br /> 1-3 neurons for each sense direction (forward, left, right...), for each other entity category (friendly humans, hostile humans, carnivores, herbivores, eggs, plants, non-steppable), as well as one of of these for entities of the same type (or its associated eggs)</p> <p>The hidden layers are just 2x8 neurons.</p> <p>Output layer is 1 neuron for each possible action that entity can take, for example:<br /> &quot;move_forwards, move_backwards, rotate_move_left, rotate_move_right, bite_forwards, egg_backwards&quot;<br /> The output layer is used as a weighted action choice, where the brighter neurons have a higher chance to become the selected action.</p> <p>Each neuron is connected by weights and a bias to the neurons in the previous layer. Negative weights (activation causes sum to go down) are represented by red lines, and Positive weights (activation causes sum to go up) are represented by green lines. Gray lines are &lt; 0.5 distance from 0 weights. The lines light up when their source neuron activates above 0.5)</p> <img style="margin-bottom:16px" border=0 src="/media/26973/ai.png" alt="" /> <p>All actions cost energy.<br /> All entities also require energy just to exist.<br /> Movement costs energy equal to the amount of segments the entity is composed of.<br /> Doing actions which are considered the objective for the entity give them energy:</p> <ul> <li>Herbivores get energy from foraging</li> <li>Carnivores get energy from chewing other things</li> <li>Hunters get energy from shooting herbivores and carnivores</li> <li>Girl gets energy from kicking carnivores</li> <li>Cameramen get energy from getting a unique shot of each entity type</li> <li>Paleontologists get energy from observing unobserved entities in a reasonable frequency</li> <li>Tranquilizer get energy from shooting energy stealing darts at carnivores</li> <li>Biologists get energy from healing other entities</li> <li>Park jeeps get energy from same source as Paleontologists</li> <li>Hunter wranglers get energy from same source as Hunters</li> </ul> <p>If an entity gets above 100% energy, it will convert the extra energy to health.</p> <p>Laying eggs (dinosaurs) or creating a copy of yourself (humans) requires 75% of your energy bar. Eggs increase in energy over time and pop once they are fully charged. Copies are locked for 150 ticks where they can still be damaged, but they cannot do anything.</p> <p>When an entity lays an egg or creates a copy of itself, the child entity inherits part of the parent's neural net. The second generation takes 50% of the parent weight and biases, the third 75%, the forth 83%, and so on.</p> <p>If your type becomes extinct on the island, it will respawn as a group after 3000 ticks.</p> <p>Plants regrow after 1000 ticks.</p> <p>Plants are placed in 3 layers: low, mid, high.<br /> moschops can only reach low<br /> stegosaurus can reach low and mid<br /> diplodocus can reach mid and high</p> <p>Different plants have different energy values, where fruity bushes are big trees are the best, while sparse grass have the lowest.</p> <p>CREDITS:<br /> This thread for rotating sprite code:<br /> <a href="https://www.lexaloffle.com/bbs/?pid=52525">https://www.lexaloffle.com/bbs/?pid=52525</a></p> https://www.lexaloffle.com/bbs/?tid=40991 https://www.lexaloffle.com/bbs/?tid=40991 Wed, 30 Dec 2020 19:35:08 UTC Pico Empires (UPDATED) <p> <table><tr><td> <a href="/bbs/?pid=47415#p"> <img src="/bbs/thumbs/pico47949.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=47415#p"> Pico Empires 0.85</a><br><br> by <a href="/bbs/?uid=26973"> thewreck</a> <br><br><br> <a href="/bbs/?pid=47415#p"> [Click to Play]</a> </td></tr></table> </p> <p><strong>PICO EMPIRES</strong><br /> This is a SPLIT-SCREEN, 1-VERSUS-1, 4X - similar to Civilization or Europa Universalis.</p> <p><span style="text-decoration: underline;">Build cities!<br /> Explore deserted ruins!<br /> Research new technologies!<br /> Wage war!<br /> Build fortifications!<br /> Conquer the world!</span></p> <p><strong>DEFAULT CONTROLS</strong><br /> Player 1:<br /> X - CONFIRM<br /> Z - CANCEL<br /> Arrow keys - Navigate menu &amp; control movement orders.</p> <p>Player 2:<br /> Q - CONFIRM<br /> TAB - CANCEL<br /> EDSF - Navigate menu &amp; control movement orders.</p> <p><strong>CHEAT-SHEET</strong><br /> <a href="https://www.lexaloffle.com/bbs/files/26973/pico_empires_manual.png"><img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/26973/pico_empires_manual.png" width=969 height=1339 alt="" /></a></p> <p><strong>TECH-TREE</strong><br /> <a href="https://www.lexaloffle.com/bbs/files/26973/pico_empires_tech_tree.png"><img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/26973/pico_empires_tech_tree.png" width=1323 height=1354 alt="" /></a></p> <p><strong>How to play</strong><br /> Use your Scout to uncover the surrounding area and explore ruins to gain gold and resources.<br /> Use your Settler to find a resource rich strategic location for your first city.<br /> Use your City to build, workers improve cities and build military buildings, inventors for defense and research.</p> <p>Good Luck!<br /> <table style="width:640px" cellspacing=0 cellpadding=10><tr><td bgcolor=#ffeedd><span style="color: #101010;"></p> <p><br></span></td></tr></table><br /> <strong>Tips</strong></p> <p>When giving units move orders:<br /> Hold the direction you would like to go and press Confirm to add a step to the move order.<br /> To undo a step you added, hold the opposite direction and press Confirm.<br /> Release the direction keys and press Confirm to confirm the order. press Cancel to cancel the order.</p> <p>When placing your first city, what it covers is important, but also the surrounding tiles since you can expand your city later.</p> <p>When a building is placed, it must first complete construction (brown bar). This is automatic and simply takes a couple of seconds.</p> <p>Every 'turn', each city harvests a number of surrounding tiles matching its population. Cities will additionally always generate 3 production from the center tile.</p> <p>When a city has harvested enough food (yellow bar), it will grow 1 population. The bigger the city, the slower the growth. If the city is starving, it will eventually loose population.</p> <p>When producing something, the city will collect production (white bar). When enough production has been collected, the selected unit will be created (if no other unit is blocking the city tile).</p> <p>If nothing is being produced by the city, it defaults to &quot;tax&quot;, which automatically converts all generated production into gold.</p> <p>You can build workers to create improvements around your city which will increase the amount of resources generated by your population. An improvement built on top of a natural resource will replace the natural resource.</p> <p>You can build settlers to establish new cities, but keep in mind each settler built will reduce your city population by 1.</p> <p>To build new types of units, your worker will need to build one of the military tech buildings (garrison, archery, stables, siege, docks...).</p> <p>To build even more advanced units, you will need to 'research' by first building the 'lab' which can be built by the 'Inventor'. The lab can once built be found under the &quot;forts &amp; research&quot; tab. </p> <p>The lab, as well as any building built by the inventor, can be placed anywhere and does not need to be in range of a city.</p> <p>Buildings under attack will temporarily pause construction.</p> <p>Military units cost upkeep, but if they are standing on a completed friendly structure, they will always cost 1 gold in upkeep.</p> <p>If you cannot pay for upkeep, your military units will start to lose health.</p> <p>Units cannot occupy the same tile.</p> <p>Destroyed city improvement and city tech buildings never die, but simply become disabled for 180 seconds. They will automatically rebuild themselves as the war dies down.</p> <p>Movement into a tile can never be canceled.</p> <p>All units can walk in shallow water, but much more slowly.</p> <p>Boats and ships can move on land, as long as there is a friendly structure present. This means that you can build canals by placing any type of structure to connect the bodies of water.</p> <p>Damage dealt causes a knock-back on moving units. If your close combat unit is moving towards multiple ranged units, the knock-back can significantly hinder your chances of ever getting in range yourself!</p> <p>You only need to research the final level of one type to access &quot;Research Industry&quot; (Modern age unlock).</p> <p>If you no longer need a unit, you can disband it.</p> <p><strong>Unit tips</strong></p> <p>The <span style="text-decoration: underline;">Scout</span> is a unique fast upkeep-free unit. It can't be built. Take care of it!</p> <p><span style="text-decoration: underline;">Walls</span> and <span style="text-decoration: underline;">Trenches</span> slow the movement of enemy units.</p> <p><span style="text-decoration: underline;">Stable</span> units are generally more expensive to build!</p> <p><span style="text-decoration: underline;">Canoe</span> and <span style="text-decoration: underline;">longboat</span> can't travel in deep ocean water (black).</p> <p><span style="text-decoration: underline;">Artillery</span> and <span style="text-decoration: underline;">siege</span> units can attack 2 tiles away, but their health and speed is not that great!</p> <p><span style="text-decoration: underline;">Rocket</span> can even attack 3 tiles away!</p> <p><span style="text-decoration: underline;">Horses</span> are fast! But not in forests...</p> <p><span style="text-decoration: underline;">Stable</span> units are generally more expensive to build and cost 4 upkeep!</p> <p><span style="text-decoration: underline;">Mechanized</span> units are generally more expensive to build and cost between 4-5 upkeep!</p> <p><span style="text-decoration: underline;">Airfield</span> units are the most expensive to build and cost up to 6 upkeep!</p> <p><span style="text-decoration: underline;">Balloon</span> range is less than 1 which means it cannot attack other units (units cannot occupy the same tile!). Only the buildings and tiles directly under it.</p> <p><span style="text-decoration: underline;">Man-o-war</span> is a very powerful ship, but it mainly gets its power from more attacks per second, this means its attacks are less effective vs very armored ships like the modern <span style="text-decoration: underline;">Ironclad</span> or armored units like <span style="text-decoration: underline;">knights</span></p> <p><span style="text-decoration: underline;">Ranger</span> shoots fast low damage, while <span style="text-decoration: underline;">Bazooka</span> shots slow and high damage. </p> <p><span style="text-decoration: underline;">Tank</span> and <span style="text-decoration: underline;">Heavy Tank</span> have lots of armor!</p> <p><span style="text-decoration: underline;">Destroyer</span> can shoot up to 2 tiles and <span style="text-decoration: underline;">Cruiser</span> can attack up to 3 tiles away!</p> https://www.lexaloffle.com/bbs/?tid=30453 https://www.lexaloffle.com/bbs/?tid=30453 Sat, 16 Dec 2017 01:01:30 UTC