06 April 2022

Scaffolding: Progress Review

 Like I said in my concept review, I will be covering the game Vampire Survivors.


 

Steam store page: https://store.steampowered.com/app/1794680/Vampire_Survivors/

Again, Vampire survivors uses a simple WASD controls for movement, no other inputs are needed to play the game. So I will be using the accelerometer that is part of the Circuit Playground Bluefruit. Out of the 3 main concepts I came up with, I ultimately opted for the garlic, which I 3D printed at the Maker Space.

 

 In this roguelike game, the goal is to fight off a horde of vampires and monsters. Defeating an enemy sometimes rewards you with a gem that gives XP points. Once a certain amount of XP is reached the player levels up. At each level up you are rewarded with either a new item/ability or the possibility to level up and increase the power of already held items. Items and abilities are used automatically, so an area of effect or projectiles automatically fire, the more you level up the faster the fire rate becomes.


One of my favorite items in the game is the GARLIC which provides the player with an aura around the character that damages and pushes back enemies (kind of like a stinky garlic breath).

 

 

 The controller I am making will consist of the garlic 3D print, with the Circuit Playground Bluefruit inside of it. I made sure the garlic was printed in 2 different halves so I could easily access and attach the CPB inside.

With the CPB inside, I will make use of the included accelerometer and have my controller be played with TILT MOVEMENTS: Mapping the appropriate X and Y values to the W A S D keys on the keyboard. 

What I am still unsure of is whether to use a cable to connect the CPB to the PC (cable going through the top of the garlic) or use the bluetooth functionalities of the CPB and have an external battery tucked in there under the CPB.



Pseudo Code:

#include <Keyboard.h>
#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_Circuit_Playground.h>
#include <math.h>

const int debounce;

void setup:

serial begin;

circuit playground begin;

keyboard begin;

 

void loop: 

float x = circuit playground x;

float y = circuit playground y;

 

if x > 2 , keyboard write A (LEFT) 

if x < -2 , keyboard write D (RIGHT) 

if y > 2 , keyboard write S (DOWN)  

if y < -2 , keyboard write W (UP)

 

 

Here I have 2 possible inquiries:

 * Would a handle be useful to attach to the garlic or is grabbing it with one hand more natural/convenient ?

* I always prefer wired controllers because I am oldschool like that... Is the bluetooth option in the CPB clearly better or can the wire coming out of the garlic stem (top) be original and interesting?

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.