Skip to content

Commit

Permalink
Increase the shooting hitbox slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
10yard committed Oct 21, 2022
1 parent a1a83a9 commit 2c474a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions galakong/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
-----------------------------------------------------------------------------------------
local exports = {}
exports.name = "galakong"
exports.version = "1.2"
exports.version = "1.3"
exports.description = "GalaKong: A Galaga Themed Shoot 'Em Up Plugin for Donkey Kong (and Donkey Kong Junior)"
exports.license = "GNU GPLv3"
exports.author = { name = "Jon Wilson (10yard)" }
Expand Down Expand Up @@ -696,7 +696,7 @@ function galakong.startplugin()
if mem:read_u8(address) ~= 0 and enemy_y > 0 and enemy_x ~= 250 then
enemy_x = enemy_x - 15
enemy_y = 256 - enemy_y
if missile_y > enemy_y - 7 and missile_y < enemy_y + 7 and missile_x > enemy_x - 7 and missile_x < enemy_x + 7 then
if missile_y > enemy_y - 8 and missile_y < enemy_y + 8 and missile_x > enemy_x - 8 and missile_x < enemy_x + 8 then
hit_count = hit_count + 1
_exp_y = _format("%03d", enemy_y)
_exp_x = _format("%03d", enemy_x)
Expand Down
2 changes: 1 addition & 1 deletion galakong/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"plugin": {
"name": "galakong",
"description": "GalaKong: A Galaga Themed Shoot 'Em Up Plugin for Donkey Kong",
"version": "1.2",
"version": "1.3",
"author": "Jon Wilson (10yard)",
"type": "plugin",
"start": "false"
Expand Down

0 comments on commit 2c474a4

Please sign in to comment.