Log In  
Follow
ziggystar

Just some lonely old gamer.

Pico Lenni 0.3
by
[ :: Read More :: ]

When I'm starting a new game, I usually have arrays for different things. Like one array for enemies. One array for bullets, one array for friendly entities.

Then I always wonder, when the number of arrays grows, whether I should store everything in a single array.

Storing it in a single array means you have to check the type each time you scan the array. E.g. when a friendly bullet does collision check with enemy.

On the other hand, if you need to check against multiple types of entities, you need to scan through multiple arrays.

Is there any common approach to this problem? How do you handle this?

P#132214 2023-07-21 20:37

[ :: Read More :: ]

Cart #picoclash-0 | 2022-11-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Pico Clash v1

Pico Clash is a two player card-based real time strategy game.
There is no AI implemented, so you have to find a second player to play the game.

There is not much polish done, but the game is playable.

The game is inspired by Minion Masters or Clash of Clans.

Controls

  • Move cursor with arrow keys.
  • use x to cycle through cards
  • use o to play card at cursor position, if you have enough mana

The goal is to destroy the enemy tower.

Todos

  • nice start screen with explanation
  • more cards
  • more maps
  • staging screen where each player can configure its deck

I'm open for collaborations on this. Better GFX or discussion on improvements would be welcome.

P#120599 2022-11-13 09:15