Skip to content

Instantly share code, notes, and snippets.

@NikkyAI
Last active February 27, 2016 22:28
Show Gist options
  • Save NikkyAI/81ccbea2195c4de1bb74 to your computer and use it in GitHub Desktop.
Save NikkyAI/81ccbea2195c4de1bb74 to your computer and use it in GitHub Desktop.
SpaceGame from the february belin mini gamejam

Rules

pics at https://aww.moe/a7mhd8.zip

Game Preparations

objects:

  • 4 Player objects
  • 6 Role-cards
  • 32 Status-cards

  • sort out { 5 negative, 4 positive} status-cards on a stack, mix and
  • distribute them on the board (face down)
  • status-cards on the shredder controls are flipped and stay always visible
  • every player draws 2 status-cards (and keeps them hidden)
aliens identify teammates
  • all players close their eyes
  • only the aliens open their eyes

Game Loop

boolean gameRunning = true
while(gameRunning) {

    move
        move 1 tile in a cardinal direction
        optional:
            move 1 tile in cardinal direction except the reverse of the previous move

    play cards
        if (in shredder) {
            optional:
                drop any number of cards from your hand in the shredder
                draw the same number of cards from the stack
                continue //goto shredder_action
        }
        exchange all cards on the tile with cards from your hand
        //exchange with the same card is allowed

    shredder_action
        if (in shredder_activator && room isIntact) {
            optional:
                activate shredder:
                    destroy/void/burn all cards in the shredder room //including players cards
                    send affected players to the medbay
                    paralyze affected players for one turn
        }

    gameRunning = (statuscardStack is not empty)

}

    uncover all status-cards on the board
    uncover all player identity-cards

wincondition
    a = number of aliens (aliens.length())
    alienswin = detroyedTiles <= 1 + (a * 2)
    hoomanswin = !alienswin
    return "GAME ENDS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment