demo handle_move_event() functionality

This commit is contained in:
Josh Holtrop 2013-02-17 23:24:41 -05:00
parent e7ea9dc19c
commit ba0fea06fe

View File

@ -30,6 +30,8 @@ public:
}
void handle_move_event(int type, bool stop)
{
m_players[m_pindex].x += [-10, 10, 0, 0][type];
m_players[m_pindex].y += [0, 0, 10, -10][type];
}
Player[] get_players() { return m_players; }
protected: