Design, design, trying to find ya

logo

Mech Retriever Dev Blog

After getting the basic Punch functionality in place, the next important step was to get Weapon attacks working. Therein lies the difficulty–displaying an arbitrary possible number of weapons.

It’s not exactly a problem I haven’t solved before–I did it with the Parts Panel for the Build screen. But the way I did it there was limited to displaying exactly four elements on screen at a time, and only Part Cards. But I probably want to display less, and with a button next to each one. To make matters more complicated, I find myself in a position where if I use an attack form more than once, an exception is thrown. Instead, the code should simply make it to where that is not an option.

I think that the interface between the GUI and the engine is wrong. Instead of giving a list of your equipped weapons and breaking if a weapon is reused, the code should tell the view what it can still use after each attack.

May you build the ultimate giant robot.

Like, Share, Subscribe, or Tweet us!

Check us out on Youtube or Deviantart!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s