Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
How code is structured. For questions on the internal design of a game engine.
0
votes
2
answers
89
views
How do I design my classes so that my Player.cs code can use class-specific abilities from a... [duplicate]
Right now, I have a Player.cs class that handles button pushes, movement speed, damage, Update() etc. At the moment, all of the logic for button presses triggering an ability, and the logic surroundin …
0
votes
2
answers
421
views
How do I design my RPG-like class system in a more modular way?
I'm building a mod for Terraria that will add classes and their corresponding abilities to the game. You're a warrior? Push your ability key and you'll use your berserk ability.
I'm trying to make m …
0
votes
How do I design my RPG-like class system in a more modular way?
This adds three main benefits I see right now:
Really nice, readable code and code architecture. You know exactly what file and class to edit to change a class or ability. …
0
votes
How do I design my classes so that my Player.cs code can use class-specific abilities from a...
This adds three main benefits I see right now:
Really nice, readable code and code architecture. You know exactly what file and class to edit to change a class or ability. …
0
votes
1
answer
61
views
Ideal way to instantiate abilities in a class give a dynamic list of abilities to use?
I have a PlayerClass class that is used to set my Player's class. For instance, this will make him a warrior:
PlayerClass warrior = new WarriorClass();
WarriorClass will instantiate abilities like …
0
votes
1
answer
67
views
Best way to implement a class or interface for a set of UI buttons that only differ in their...
I have three types of UI buttons that go on a cooldown bar:
A traditional cooldown bar button where once the corresponding key is pressed, a timer shows over the button and dims the texture.
A butto …