{"action":"opened","issue":{"url":"https://api.github.com/repos/aubergine10/Proto/issues/20","repository_url":"https://api.github.com/repos/aubergine10/Proto","labels_url":"https://api.github.com/repos/aubergine10/Proto/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/aubergine10/Proto/issues/20/comments","events_url":"https://api.github.com/repos/aubergine10/Proto/issues/20/events","html_url":"https://github.com/aubergine10/Proto/issues/20","id":179066795,"number":20,"title":"`proto.player`","user":{"login":"aubergine10","id":1386719,"avatar_url":"https://avatars.githubusercontent.com/u/1386719?v=3","gravatar_id":"","url":"https://api.github.com/users/aubergine10","html_url":"https://github.com/aubergine10","followers_url":"https://api.github.com/users/aubergine10/followers","following_url":"https://api.github.com/users/aubergine10/following{/other_user}","gists_url":"https://api.github.com/users/aubergine10/gists{/gist_id}","starred_url":"https://api.github.com/users/aubergine10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aubergine10/subscriptions","organizations_url":"https://api.github.com/users/aubergine10/orgs","repos_url":"https://api.github.com/users/aubergine10/repos","events_url":"https://api.github.com/users/aubergine10/events{/privacy}","received_events_url":"https://api.github.com/users/aubergine10/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aubergine10/Proto/labels/pondering","name":"pondering","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-25T04:17:26Z","updated_at":"2016-09-25T04:17:26Z","closed_at":null,"body":"Rough draft, incomplete (eg. some props missing such as minable, and possibly weight and rotation speed like vehicles). Also need to determine how to implement the animation and light states (prolly need a helper method for lights).\r\n\r\n```lua\r\nsound.path = '__base__/sound/'\r\n\r\nproto.player 'player' {\r\n\r\n  animation = {\r\n    distance = 0.13; -- distance per frame, in ticks\r\n    states   = states;\r\n  };\r\n\r\n  box = {\r\n    collision = { {-0.2,-0.2}, {0.2,0.2} };\r\n    selection = { {-0.4,-1.4}, {0.4,0.2} };\r\n  };\r\n\r\n  crafting = {\r\n    categories = { 'crafting' };\r\n  };\r\n\r\n  damage = {\r\n    alert = false; -- ?\r\n    tint = '#F00'; -- map tint\r\n  };\r\n\r\n  fighting = {\r\n    targetTicks  = 100;\r\n    holdGunTicks = 600;\r\n  };\r\n\r\n  flags = { 'pushable', 'placeable-off-grid', 'breaths-air', 'not-repairable', 'not-on-map' },\r\n\r\n  health = {\r\n    maximum = 100;\r\n    healing = 0.01; -- per tick\r\n  };\r\n\r\n  inventory = 60; -- slots\r\n\r\n  mining = {\r\n    categories = { 'basic-solid' };\r\n    speed = 0.01;\r\n    particles = {\r\n      byHand = { 29, 63 };\r\n      byTool = { 28 };\r\n    };\r\n  };\r\n\r\n  order = 'a';\r\n\r\n  reach = { -- in tiles\r\n    build  = 6.0; -- building placement\r\n    drop   = 6.0; -- drop item on floor\r\n    mining = 2.7; -- mining, incl. building deconstruct\r\n    other  = 6.0; -- ?\r\n    pick   = 1.0; -- pick something off floor\r\n    loot   = 2.0; -- automatic loot collection\r\n  };\r\n\r\n  sounds = {\r\n    eating    = sound.random { sound.effect 'eat.ogg'       };\r\n    heartbeat = sound.random { sound.effect 'heartbeat.ogg' };\r\n  };\r\n\r\n  lights = lights;\r\n\r\n  running = {\r\n    dodging  = 0.70; -- corner sliding, in tiles\r\n    speed    = 0.15;\r\n    soundPos = { 5, 16 };\r\n  }\r\n\r\n}\r\n```"}}
{"actor":{"display_login":"aubergine10"}}