Skip to content

Instantly share code, notes, and snippets.

@jonbro
Created May 21, 2014 13:18
Show Gist options
  • Select an option

  • Save jonbro/038adc9626d4b20ae302 to your computer and use it in GitHub Desktop.

Select an option

Save jonbro/038adc9626d4b20ae302 to your computer and use it in GitHub Desktop.
poke the eyeball wwdiy clone game
ActorData = {
['location'] = Vec2(0,0);
['id'] = 'hand';
['art'] = {
{'hand.png'}
};
['actions'] = {
{
['triggers']={
{t="time", d="exactly", td=1};
};
['behaivors']={
{t="jump", a=Rectangle(0, bludG.camera.h/2, bludG.camera.w, bludG.camera.h/2)};
{t="travel", d="reflect", a=Rectangle(0, bludG.camera.h/2, bludG.camera.w, bludG.camera.h/2)};
};
};
{
['triggers']={
{t="tap", d="anywhere"}
};
['behaivors']={
{t="travel", d="direction", direction=math.pi, speed=0.5};
};
};
};
}
EyeActorData = {
['location'] = Vec2(0,0);
['id'] = 'eye';
['art'] = {
{'eye.png'}
};
['actions'] = {
{
['triggers']={
{t="time", d="exactly", td=1};
};
['behaivors']={
{t="jump", a=Rectangle(0, 0, bludG.camera.w, bludG.camera.h/2)};
{t="travel", d="reflect", a=Rectangle(0, 0, bludG.camera.w, bludG.camera.h/2)};
};
};
{
['triggers']={
{t="time", d="exactly", td=8};
};
['behaivors']={
{t="lose"};
};
};
{
['triggers']={
{t="contact", d="object", id='hand'};
};
['behaivors']={
{t="win"};
};
};
};
}
eyePokeLevel = {ActorData, EyeActorData}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment