pages/assets/garden_dice-armor_index.md.Rr3nnh6V.js

1 line
7.2 KiB
JavaScript

import{u as i,c as o,j as e,a as s,k as t,ag as n,o as r,ai as l,aj as d,ak as c,al as h,am as p,an as m,ao as u,ap as g,aq as f}from"./chunks/framework.VBE0TPts.js";import{d as y}from"./chunks/git.data.CyBiH_4j.js";const b=e("h1",{class:"p-name"},"Dice Armor",-1),v=["innerHTML"],w=n('<hr><blockquote><p>Referenced by: <a href="/garden/babble-buds/">Babble Buds</a></p></blockquote><blockquote><p>Tags: <a href="/garden/my-projects/">My Projects</a></p></blockquote><p>Download it <a href="https://drive.google.com/open?id=18rwqEIdMChdGtB-9LdI4wiqeM5C5ViOL" target="_blank" rel="noreferrer">here</a></p><p>Dice Armor is a game that started development as a semester-long project by a team of nine: a producer, a creative director, a narrative writer, an artist, two programmers, and 3 game designers. The information here is about my contributions as the lead programmer over the semester because I can show off stuff like the editor scripts I wrote. I was doing everything from interface coding, editor scripts, integrating Babble Buds, and of course, everything related to the gameplay itself. To date I&#39;m still the lead programmer for the game; for more up-to-date information on the current state of the game please visit the official site.</p><p>The build available here was created for showing off at the end of the semester, and as such has some buttons present to make the game easier to skip parts of the game to see all the content: You start with all the dice in the game already in the shop, there&#39;s a button to give yourself free money to buy these dice with, and in the duel, there are buttons to force a win or a loss, which can be used to skip the tutorial (not recommended for first-time players).</p><div class="img-container"><img src="'+l+'" title="Tutorial"></div><p>Dice Armor is a dice dueling game. Players can use abilities, flip dice, and attack each other to win in a dice game that puts chance into the hands of the players. This is what the dueling scene looks like, with a tutorial cutscene happening on top to guide the player through the basics. Also, all the dice are constructed dynamically, using quaternion math to figure out the placement of each component relative to the face it is going on. The die in the middle has one of the player&#39; and opponents&#39; portraits on each of its sides.</p><div class="img-container"><img src="'+d+'" title="Editors"></div><p>For many of the objects I&#39;ve created, I&#39;ve made scriptable objects so that game designers can add and modify them easily. Additionally, I would create custom inspectors for the objects to help make them as easy to understand and edit as possible. The opponent&#39;s artificial intelligence is made up of many strategies, in a prioritized list. When it is the opponents&#39; turn they go through each strategy and check if they can be run, and if so then the opponent performs the strategy and starts back over at the top of the list of strategies. The + sign under the list of strategies opens an organized dropdown of all the various strategies.</p><div class="img-container"><img src="'+c+'" title="Simulator"></div><p>In addition to custom inspector code, I&#39;ve created new tools for the editor for our game designers to use. This is a duel simulator that will take two opponents and simulate an arbitrary number of duels between them, and output the results and summarize them for you, much much quicker than manually going through the duels, even with an absurdly high timeScale. This will become incredibly useful in making balance changes and testing new dice against existing sets. This is a screenshot of it in edit mode, but in play mode it removes the &quot;Dueling Managers&quot; field and will use whatever the current duel balance settings are, allowing for the GDs to test freely in play mode without worrying about undoing all their changes afterward.</p><div class="img-container"><img src="'+h+'" title="da1.png"></div><p>I created the Babble Buds puppet editor and ported the rendering library I wrote for it to C# so it could be used in Unity. Dice Armor has a full campaign using cutscenes made using the Babble Buds cutscene editor, taking advantage of its support for custom commands and fields to control things like talking, giving the player dice and money, starting duels, and controlling player progression through the story.</p><div class="img-container"><img src="'+p+'" title="Action Wheel"></div><p>When a cutscene ends, its final command is to either start a duel or set the next cutscene in the story. In the latter case, there is an additional field for what to call the next cutscene, and what location it takes place. The cutscene is then added to the player&#39;s save file, and when they visit the city locations are greyed out until they have at least one action to do there. Each location has a dynamically populated action wheel with a custom range of acceptable angles.</p><div class="img-container"><img src="'+m+'" title="Shop"></div><p>The dice shop is dynamically populated by a list of dice available to the player, which can be changed during cutscenes, and is checked against the dice owned by the player to generate sold-out indicators. On the left, the player can choose to filter the options down to a single dice effect, which also updates the &quot;Buy All&quot; button to buy only all the dice in the current filter.</p><div class="img-container"><img src="'+u+'" title="Inventory"></div><p>The inventory works most the same as the shop, but for equipping dice. It also allows you to drag individual dice or entire sets to the equipped dice glyph. While dragging it will highlight all the slots the new dice will be equipped into.</p><div class="img-container"><img src="'+g+'" title="Dice Rolling"></div><p>The dice rolling uses the physics engine and detects once the dice have stopped moving, then determines which side is face up based on which of the normals is closest to straight up. It flags the die as cocked if that smallest angle is above a threshold. The dice sink into the table when not rolling to not interfere with any dice that are rolling.</p><div class="img-container"><img src="'+f+'" title="Missile Storm"></div><p>During certain events like winning the game or having the face of a die broken, the players&#39; portraits will flash an emotion for a second. After winning, a random living die from the winning player is chosen to play their &quot;finisher move&quot;, a flashy and dramatic effect to end the game. Shown is the arcane mechana&#39;s finisher, &quot;Missile Storm&quot;.</p><p>After development stopped, the project became <a href="/garden/open-source/">Open Source</a> - check it out <a href="https://github.com/sreynoldsdesign/dice_armor/tree/master/Assets/Scripts/babble.cs" target="_blank" rel="noreferrer">here</a></p>',25),D=JSON.parse('{"title":"Dice Armor","description":"","frontmatter":{"public":"true","slug":"dice-armor","tags":["My Projects"],"title":"Dice Armor","prev":false,"next":false},"headers":[],"relativePath":"garden/dice-armor/index.md","filePath":"garden/dice-armor/index.md"}'),_={name:"garden/dice-armor/index.md"},B=Object.assign(_,{setup(k){const a=i();return(T,q)=>(r(),o("div",null,[b,e("p",null,[s("963 words, ~5 minute read. "),e("span",{innerHTML:t(y)[`site/${t(a).page.value.relativePath}`]},null,8,v)]),w]))}});export{D as __pageData,B as default};