Game
Vampire Dystopia
5 years ago

I setup a great action system! It's simple and extendable. It's like event driven fuzzy pattern matching. I took a lot from this talk: https://www.youtube.com/watch?v=tAbBID3N64A&t=1799s
#horrorjam2020 #shooter #horror #surivival #logicandchaos


YouTube
https://www.youtube.com/watch?v=tAbBID3N64A&t=1799s
youtube.com

I created two classes, actions and conditions, each action has a list of conditions, conditions can be anything! If I want a character to have an action I just add it to their list of actions, the character checks all actions and executes the best one.

I didn't make any states and I just have a break and delay to prevent multiple states from firing, I use a canAct flag. My character class checks all the conditions for each action in the list and the 1st one to match gets called, then the flag gets set and I break out of the loop.

I have my actions list sorted so that the ones with the most conditions are checked 1st, that way pressing down and space will trigger before just hitting space. What I really like is how I setup my conditions, I used an abstract class as base so I can make anything a condition, a button press, requiring ammo, anything!

It's so easy to swap out different actions now!



0 comments

Loading...

Next up

Made up a vampire and decided to throw together a quick title screen. I should be adding vampres to the game soon! :D #horrorjam2020 #vampireDystopia #shooter #horror #survival #logicandchaos

I redid the title page and adjusted Ai behaviours! #HorrorJam2020 #Vampire #2d #shooter #survival #horror

I just uploaded a new version of Space Survival. It's got a great retro arcade space shooter feel but with a modern update for graphics! https://gamejolt.com/games/spacesurvival/442310

So a great artist and friend pointed out all the ways my title page sucks and helped to redesign it. I'm quite happy with the results :) #horrorjam2020 #horror #2dshooter #survival #vampires #madewithunity

Hey it's time to vote! Vote for Vampire Dystopia for horrorjam2020!!!

http://jams.gamejolt.io/horr.../games/vampiredystopia/460337

I just designed the 1st real character in Vampire Dystopia, Sheriff Tom. Made a splash screen :) #horrorjam2020

here's a #screenshotsaturday of my latest game for #horrorjam2020 Vampire Dystopia!

Hey it's time to vote! Vote for Vampire Dystopia for horrorjam2020!!!

http://jams.gamejolt.io/horr.../games/vampiredystopia/460337