Player = 0,
EventListeners = {
MoveLeftPressed = function(self)
- --self.Velocity.x = self.Velocity.x - 3.0
- self.Velocity.y = self.Velocity.y - 1.0
+ self.Velocity.x = self.Velocity.x - 3.0
+ --self.Velocity.y = self.Velocity.y - 1.0
self.Render.flipx = true;
end,
MoveLeftReleased = function(self)
- -- TODO can't put text at world coordinates right now
- --game.puts("default", self.Position.x, self.Position.y+100, "Hey. Hag?")
- --self.Velocity.x = self.Velocity.x + 3.0
- self.Velocity.y = self.Velocity.y + 1.0
+ self.Velocity.x = self.Velocity.x + 3.0
+ --self.Velocity.y = self.Velocity.y + 1.0
end,
MoveRightPressed = function(self)
- --self.Velocity.x = self.Velocity.x + 3.0
- self.Velocity.y = self.Velocity.y + 1.0
+ self.Velocity.x = self.Velocity.x + 3.0
+ --self.Velocity.y = self.Velocity.y + 1.0
self.Render.flipx = false;
end,
MoveRightReleased = function(self)
- --self.Velocity.x = self.Velocity.x - 3.0
- self.Velocity.y = self.Velocity.y - 1.0
+ self.Velocity.x = self.Velocity.x - 3.0
+ --self.Velocity.y = self.Velocity.y - 1.0
end,
JumpKeyPressed = function(self)
if self.Physics.standing == true then
game.play(self.Position, self.Audio)
- self.Velocity.y = self.Velocity.y + 9
+ --self.Velocity.y = self.Velocity.y + 9
end
end,
JumpKeyReleased = function(self)
- game.dialog(30, -150, 400, 100)
+ game.dialog(30, 150, 400, 100)
+ game.puts("default", 36, 52, "Hey. Hag?")
end
},
Position = {
void UISystem::createDialogBox(float x, float y, float w, float h)
{
// Queue for generation in the main thread.
- m_boxes.emplace_back(0, x, y, w, h);
+ m_boxes.emplace_back(0, x, -y, w, h);
}
void UISystem::update(entityx::EntityManager&,