daleth90

u/daleth90


r/gamedev•

Hi, recently I'm researching for 2D platformer pathfinding algorithm.

I've already seen lots of article about basic A* pathfinding (and most are grid-based). So hope to hear more comprehensive suggestion.

My environment is non-grid-based.

What I have done

  • Basic A* pathfinding.
  • Can place node every where, and create edges between them.
  • Mark each edge with type. e.g. Walkable, VerticalGap, HorizontalGap.
  • AI can do basic movement based on above.

The problems I want to solve

  1. Traversal Platform: Unit can jump to a higher platform from its bottom. And can also drop to lower platform.
  2. Sometimes the better way is "just jump up", but AI will "go to nearest node then jump
27

r/gamedev•

Hi, I want to ask how TCG (e.g. Heartstone, MTG, Pokemon TCG) store and manage their card table (a.k.a. data structure).

Here's my current approach:

  1. I guess designers always need Excel to do balance. (<- If not, tell me.)
  • So all creatures, spells, grounds are in one table
  • And it would have lots of empty cells. (e.g. Spells do not have health.)
  1. Use program to export Excel data to game engine and backend.
  2. Assume my engine is Unity, I would save the whole card table as a big ScriptableObject or JSON or MessagePack. For backend game logic, I would just use JSON.
  • Hmm...I'm not really sure if it's right, I didn't try that BIG table like MTG.
  1. In client, when player open the
17

r/Zenject•

Hello, I'm new to DI Container, so there's still something I couldn't understand.

Here's a little fighting game.

public class Game : ITickable, IInitializable
{
    public Game( [InjectOptional( "Player_1P" )]Character player_1P, 
                    [InjectOptional( "Player_2P" )]Character player_2P)
    { }
}

======================================== public class Character { public Character( CharacterView view ) { } }

public class CharacterView : Monobehaviear
{

}

======================================== public class PlayerController : ITickable { publi

22

You've reached the end of this feed.