Paste number 52535: My idea for Ludum Dare X

Paste number 52535: My idea for Ludum Dare X
Pasted by: RB[0]
When:1 year, 6 months ago
Share:Tweet this! | http://paste.lisp.org/+14JB
Channel:None
Paste contents:
Raw Source | XML | Display As
BASICs
player vs. computer.

game is 3d

map grid is flat

Players get points to use at the start of the game

Players spend points buying new units

Both players move there own and there opponents pieces on there turns.

You get more points for moving your opponents piece well, but negative points for doing something mean ;)


Story:
You control a clan of Voltzies.
Voltzies are energetic - literally - beings.
When one is injured, it will overload and hurt adjacent Voltizes - friendand foe alike.
On the plus side, healing is a chain-reaction as well, except it only affects friendlies.



AI:
well, it has to, primarily, find the best moves to be made. So:

Locate all units that are within range of an enemy, or vice-versa.
Find which enemy is next to teh lowest concetration of enemies, ie teh seperated one.
Find if any of our troops are exposed to enemies.
Randomly choose whether to attck teh enemy, or retreat our unit.
Find a group of enemies that are huddled together.
Choose whether to attack the group, or attack teh exposed enemy.


Calculating good move:
For old pos and new pos
First count the number of enemies within range of unit.
Count number of friendlies within range
Count number of enemies/friendlies are adjacent.
Decide whether this is a backward movement, ie the target is within half the units movement speed of the spot it was in two turns back.

Points for larger number of freindlies/enemies, double points for enemies in a chain, fewer points for friendlies in a chain.
Big time point deduction for a backwards move.


UNITS:
a unit has these variables:
hitpoints/max_hp
experience/max_hp
speed
attack
defense
most_liked_terrain? If used, get's a +1/3 bonus to all atts when on the terrain
medic - Whether this unit can heal other units - and start a chain-reaction heal
cost - how many points it costs to create this unit.



Fighting:
When a unit attacks, it uses it's attack value, and the enemy uses it's defense value.
The enemy then attacks a random adjacent unit(friend or foe) if there is one.
The new attack uses the current units(the enemy) attack, and the targets defense.



Points:
Each player has a certain number of points at the start of the game.
These points are spent to create units.
Units must be placed within 2 spaces of the start pos, or within two tiles of another friendly unit.

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.