Skip to content

Commit 0364a81

Browse files
committed
Fixed message id to avoid conflicts with Defold 1.6.4
1 parent c95f952 commit 0364a81

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include_dirs = walker
33

44
[project]
55
title = Kinematic Walker
6-
version = 1.3.1
6+
version = 1.3.2
77
dependencies#0 = https://github.com/indiesoftby/defold-pointer-lock/archive/refs/tags/2.0.0.zip
88
dependencies#1 = https://github.com/astrochili/defold-operator/archive/refs/tags/1.5.2.zip
99
dependencies#2 = https://github.com/astrochili/defold-trenchfold/archive/refs/tags/1.6.1.zip

walker/body.script

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ local hashes = require 'walker.hashes'
1313

1414
function on_message(self, message_id, message, sender)
1515
if self.walker then
16-
if message_id == hash 'contact_point_response' then
16+
if message_id == hashes.contact_point_response then
1717
local message = { point = message, sender = sender}
18-
msg.post(self.walker, hashes.contact_point, message)
19-
elseif message_id == hash 'trigger_response' then
18+
msg.post(self.walker, hashes.contact_point_info, message)
19+
elseif message_id == hashes.trigger_response then
2020
local message = { point = message, sender = sender}
21-
msg.post(self.walker, hashes.trigger, message)
21+
msg.post(self.walker, hashes.trigger_info, message)
2222
end
23-
elseif message_id == hash 'walker_here' then
23+
elseif message_id == hashes.walker_here then
2424
self.walker = sender
2525
end
2626
end

walker/hashes.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
local hashes = {
1010
acquire_input_focus = hash 'acquire_input_focus',
1111
collision_mask = hash 'collision_mask',
12-
contact_point = hash 'contact_point',
12+
contact_point_info = hash 'contact_point_info',
13+
contact_point_response = hash 'contact_point_response',
1314
debug = hash 'debug',
1415
default = hash 'default',
1516
did_init = hash 'did_init',
@@ -30,7 +31,8 @@ local hashes = {
3031
ray_cast_response = hash 'ray_cast_response',
3132
spectator_mode = hash 'spectator_mode',
3233
teleport = hash 'teleport',
33-
trigger = hash 'trigger',
34+
trigger_info = hash 'trigger_info',
35+
trigger_response = hash 'trigger_response',
3436
unfollow_camera_rotation = hash 'unfollow_camera_rotation',
3537
walker_crouching = hash 'walker_crouching',
3638
walker_falling = hash 'walker_falling',

walker/walker.script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,9 @@ end
833833
function on_message(self, message_id, message, sender)
834834
if message_id == hashes.post_update then
835835
post_update(self)
836-
elseif message_id == hashes.contact_point then
836+
elseif message_id == hashes.contact_point_info then
837837
handle_contact_point(self, message.point, message.sender)
838-
elseif message_id == hashes.trigger then
838+
elseif message_id == hashes.trigger_info then
839839
handle_trigger(self, message.point, message.sender)
840840
elseif message_id == hashes.collision_mask then
841841
self.collision_mask = message

0 commit comments

Comments
 (0)