Skip to content

more features for the contestant #4

Description

@maurermax

the contestants should have more features available. for example controlling the height and speed of the paddle by setting percentages. such that the creators can assign 100 points to height and speed in total to vary the behavior of their paddles.

for this we should change the way a contestant is created by not only being a function declaration but rather by declaring a whole object.

instead of return 1they could be forced to created something like:

{
   height: 50,
   speed: 50,
   compute: function(dt, gameInfo, ballInfo, myPaddleInfo, otherPaddleInfo) {
      return 1;
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions