Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
02025e0
implement HUD portrait boxes, dialog shattering
codeandkey Jul 18, 2021
521ba75
fix shattering dialog
codeandkey Jul 25, 2021
6bdb2a6
make topdialog more dialog-like
codeandkey Aug 3, 2021
b187871
add player portrait and set to npc dialog for testing
quigley-c Aug 3, 2021
f100427
more merge?
codeandkey Aug 3, 2021
793a8ce
portrait image
quigley-c Aug 3, 2021
89e47d6
Merge branch 'shattering-dialog' of github.com:codeandkey/boom into s…
quigley-c Aug 3, 2021
1ee381c
fix sprite positioning when using scale factors
codeandkey Aug 3, 2021
b815473
shooty_dude asset sprites
quigley-c Oct 28, 2021
fda1a80
add enemy object
quigley-c Oct 28, 2021
fe282cb
added sign sprite
quigley-c Oct 28, 2021
0a0d8a9
mountain_start: changed mountain to be less boring
quigley-c Oct 29, 2021
45ddde7
fix snow color and position artifacts
codeandkey Jul 30, 2021
ea6df28
add snow world collisions
codeandkey Jul 30, 2021
d964877
add snow wind direction, add nonsolid AABB to keep snow away from bg …
codeandkey Jul 30, 2021
4eb3053
reduce 'avalanche' artifact by adding noisy respawn delay
codeandkey Jul 30, 2021
37e4e37
fix melting snow wrapping artifact
codeandkey Jul 30, 2021
96b75bb
implement snow parallax effect
codeandkey Aug 3, 2021
76c49aa
reduce snow amount
codeandkey Aug 3, 2021
76aa195
add random_range to util
codeandkey Jan 5, 2022
4349e76
remove global random_range from snow effect
codeandkey Jan 5, 2022
c34817a
use already existing util.randrange
codeandkey Jan 5, 2022
fd6433e
change reset_particle definition to force local
codeandkey Jan 5, 2022
d5ee968
make reset_particle more explicitly local (again)
codeandkey Jan 5, 2022
9161b0b
fix merge
codeandkey Jan 5, 2022
3149915
implement melee interaction
codeandkey Jan 5, 2022
4c2e210
add lever obj
quigley-c Jan 5, 2022
760d739
add slap sprite placeholder
codeandkey Jan 5, 2022
5d29042
lever anim
quigley-c Jan 5, 2022
eea9d4c
implement lever interact
codeandkey Jan 5, 2022
f20a97e
leg
quigley-c Jan 5, 2022
ba712ba
add sign spr
quigley-c Jan 5, 2022
dd731d7
fix lever color
codeandkey Jan 5, 2022
bc389b1
add require spr
quigley-c Jan 5, 2022
9143d7c
Merge branch 'feature/lever' of github.com:codeandkey/boom into featu…
quigley-c Jan 5, 2022
70927c0
Merge pull request #151 from codeandkey/snow-rework
quigley-c Jan 5, 2022
00d73a9
tutorial too hard
quigley-c Jan 5, 2022
59ddf11
implement look-down
codeandkey Jan 5, 2022
eda43ce
signs
quigley-c Jan 5, 2022
510ce18
change look to crouch-only
codeandkey Jan 5, 2022
5d83624
scenery
quigley-c Jan 5, 2022
c404540
implement scenery dialog
codeandkey Jan 5, 2022
a70696f
add compiled maps to gitignore
codeandkey Jan 5, 2022
383b749
sign scenery change
quigley-c Jan 5, 2022
cc5410d
implement scenery sprites
codeandkey Jan 5, 2022
249fe85
fix scenery color
codeandkey Jan 5, 2022
0a851ea
scenery: default img now 32x32 sign
quigley-c Jan 5, 2022
bc53c7d
map update for signs
quigley-c Jan 5, 2022
a09fe12
Merge branch 'dev' of github.com:codeandkey/boom into dev
quigley-c Jan 5, 2022
1e5128d
sign sequences
quigley-c Jan 5, 2022
f107c04
tower signs
quigley-c Jan 5, 2022
0ad147c
32x32 sign
quigley-c Jan 5, 2022
afb242e
implement colored dialog text
codeandkey Jan 5, 2022
fcf72ed
implement colored dialog
codeandkey Jan 5, 2022
20da999
move dialog to worldspace, color tutorial sign
codeandkey Jan 5, 2022
3ea23a8
Merge pull request #158 from codeandkey/feature/look-down
codeandkey Jan 5, 2022
600eddd
fix dialog for signs
quigley-c Jan 5, 2022
1605d24
update map
quigley-c Jan 5, 2022
f4e55ab
camera: zoom out
codeandkey Jan 5, 2022
cc7726f
fix bad map merge
codeandkey Jan 5, 2022
e049737
update map
quigley-c Jan 5, 2022
f13be13
fix noncolored dialog typing
codeandkey Jan 5, 2022
c8c69ae
fix sign text
quigley-c Jan 5, 2022
b0e708c
Merge branch 'dev' of github.com:codeandkey/boom into dev
quigley-c Jan 5, 2022
7380fd9
sign text update
quigley-c Jan 5, 2022
2a5d6f3
mountain start sign
quigley-c Jan 5, 2022
db1e513
remove unused files
quigley-c Jan 5, 2022
4517ada
complete merge, move topdialog/shattering to worldspace
codeandkey Jan 5, 2022
d8dc22d
use slap spr
quigley-c Jan 5, 2022
bf45973
add slap spr
quigley-c Jan 5, 2022
ee96e72
add lever obj
quigley-c Jan 5, 2022
e0cb38a
lever anim
quigley-c Jan 5, 2022
917e30a
add character slap offset
codeandkey Jan 5, 2022
81b2e67
recenter player sprites
quigley-c Jan 5, 2022
b6e7bf9
Merge branch 'melee' of github.com:codeandkey/boom into melee
quigley-c Jan 5, 2022
537aa59
add slap walk anim
quigley-c Jan 5, 2022
ae5d4ca
fix some indentation
codeandkey Jan 5, 2022
7e608c0
add placeholder slap for other chars
codeandkey Jan 5, 2022
dcfbb47
add slapwalk anim switching
codeandkey Jan 5, 2022
6845ead
add lever to village for testing
quigley-c Jan 5, 2022
c08eb97
remove compiled maps, fix bad AABB, slap collision issues
codeandkey Jan 5, 2022
282cabb
fix explosion shifting
codeandkey Jan 5, 2022
6f1b2bc
lever: update func
quigley-c Jan 5, 2022
4e0176f
fix lever alignment
quigley-c Jan 5, 2022
f804b69
remove lever type
codeandkey Jan 5, 2022
71466ac
lever alignment
quigley-c Jan 5, 2022
8c26c44
re-add actual interact event
codeandkey Jan 5, 2022
efed203
lint
quigley-c Jan 5, 2022
2832623
Merge pull request #160 from codeandkey/melee
codeandkey Jan 5, 2022
cd4081b
merge shenanigans
quigley-c Jan 5, 2022
19a6971
Merge branch 'dev' into feature/lever
quigley-c Jan 5, 2022
69a3c31
Merge branch 'feature/lever' into dev
quigley-c Jan 5, 2022
1412817
lever
quigley-c Jan 5, 2022
4570e56
add npc slap push
codeandkey Jan 5, 2022
45ecaf0
Merge branch 'dev' into shattering-dialog
quigley-c Jan 5, 2022
6bafcd4
hud: linting
quigley-c Jan 5, 2022
db10fa6
dialog: linting
quigley-c Jan 5, 2022
dc4df7b
sprite: linting
quigley-c Jan 5, 2022
cc97db6
npc: linting
quigley-c Jan 5, 2022
12085d9
scenery: linting
quigley-c Jan 5, 2022
f28c690
dialog_fragment: linting
quigley-c Jan 5, 2022
3f955db
revert explosion logic
codeandkey Jan 5, 2022
f5487d7
Merge branch 'dev' into shattering-dialog
quigley-c Jan 5, 2022
e24bcb6
re-add map
quigley-c Jan 5, 2022
2907d02
npc lint
quigley-c Jan 5, 2022
e57198f
Merge branch 'shattering-dialog' of github.com:codeandkey/boom into s…
quigley-c Jan 5, 2022
eba2e34
adjust slap timing
codeandkey Jan 5, 2022
d7949b3
fix linting
codeandkey Jan 5, 2022
1dd9100
Merge pull request #147 from codeandkey/shattering-dialog
quigley-c Jan 5, 2022
3c94341
slap animation fixes
codeandkey Jan 5, 2022
5e1a8dc
npc portrait
quigley-c Jan 5, 2022
2e3945f
fix unused player assignments
codeandkey Jan 5, 2022
ae40a3d
fix topdialog colored rendering
codeandkey Jan 5, 2022
e6fdba0
more hud fixes
codeandkey Jan 5, 2022
3a87ba3
set player portrait
quigley-c Jan 5, 2022
a2660de
Merge branch 'dev' of github.com:codeandkey/boom into dev
quigley-c Jan 5, 2022
8b11a0f
hud: fix topdialog default color
codeandkey Jan 5, 2022
0ee2379
hud: more color fixes
codeandkey Jan 5, 2022
8df3509
seq
quigley-c Jan 5, 2022
35d981b
hud: color changes
codeandkey Jan 5, 2022
87631a9
add sign spinning animation when slapped
quigley-c Jan 9, 2022
1cec97b
Merge branch 'dev' of github.com:codeandkey/boom into dev
quigley-c Jan 9, 2022
17ae953
add talking player portrait
quigley-c Jan 9, 2022
a088c47
remove empty spaces between areas in mountain_start
quigley-c Jan 9, 2022
bffcc37
add IJKL inputs for keyboards without directional keys
codeandkey Jan 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
options.lua
profile.lua
src/assets/maps/*.lua
1,478 changes: 0 additions & 1,478 deletions src/assets/maps/first_zone.lua

This file was deleted.

14 changes: 10 additions & 4 deletions src/assets/maps/first_zone.tmx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="903" height="256" tilewidth="16" tileheight="16" infinite="0" nextlayerid="14" nextobjectid="83">
<map version="1.5" tiledversion="1.7.1" orientation="orthogonal" renderorder="right-down" width="903" height="256" tilewidth="16" tileheight="16" infinite="0" nextlayerid="15" nextobjectid="86">
<editorsettings>
<export target="first_zone.lua" format="lua"/>
</editorsettings>
Expand Down Expand Up @@ -59,6 +59,13 @@
<objectgroup id="6" name="background_ground"/>
<objectgroup id="9" name="background_tower"/>
<objectgroup id="5" name="background_silhouettes"/>
<objectgroup id="14" name="BG effect layer">
<object id="84" name="backsnow" type="effect_snow" x="11829" y="15" width="64" height="48">
<properties>
<property name="parallax" type="float" value="4"/>
</properties>
</object>
</objectgroup>
<layer id="10" name="BG Tile Layer" width="903" height="256" tintcolor="#a2a4ff">
<properties>
<property name="background" type="bool" value="true"/>
Expand Down Expand Up @@ -872,10 +879,9 @@
</objectgroup>
<objectgroup id="4" name="phys_objects"/>
<objectgroup id="12" name="effect_layer">
<object id="70" name="snow" type="effect_snow" x="12096" y="0" width="64" height="48">
<object id="85" name="snow" type="effect_snow" x="11750" y="15.5" width="64" height="48">
<properties>
<property name="destination" value="winter"/>
<property name="entry_point" value="winter_0"/>
<property name="parallax" type="float" value="1"/>
</properties>
</object>
</objectgroup>
Expand Down
585 changes: 0 additions & 585 deletions src/assets/maps/intro.lua

This file was deleted.

434 changes: 0 additions & 434 deletions src/assets/maps/main_menu.lua

This file was deleted.

3,225 changes: 0 additions & 3,225 deletions src/assets/maps/mountain_interior.lua

This file was deleted.

1,862 changes: 0 additions & 1,862 deletions src/assets/maps/mountain_start.lua

This file was deleted.

798 changes: 423 additions & 375 deletions src/assets/maps/mountain_start.tmx

Large diffs are not rendered by default.

2,176 changes: 0 additions & 2,176 deletions src/assets/maps/mountain_top.lua

This file was deleted.

1,122 changes: 0 additions & 1,122 deletions src/assets/maps/mountain_village.lua

This file was deleted.

7 changes: 6 additions & 1 deletion src/assets/maps/mountain_village.tmx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="177" height="121" tilewidth="16" tileheight="16" infinite="0" nextlayerid="15" nextobjectid="40">
<map version="1.5" tiledversion="1.7.2" orientation="orthogonal" renderorder="right-down" width="177" height="121" tilewidth="16" tileheight="16" infinite="0" nextlayerid="15" nextobjectid="41">
<editorsettings>
<export target="mountain_village.lua" format="lua"/>
</editorsettings>
Expand Down Expand Up @@ -629,6 +629,11 @@
<property name="spriteset" value="char/hero/"/>
</properties>
</object>
<object id="40" name="lever" type="lever" x="752" y="784" width="32" height="32">
<properties>
<property name="interactable" type="bool" value="true"/>
</properties>
</object>
</objectgroup>
<objectgroup id="6" name="phys_objects"/>
<layer id="2" name="fg_tile_layer" width="177" height="121" opacity="0.8">
Expand Down
632 changes: 0 additions & 632 deletions src/assets/maps/shop.lua

This file was deleted.

1,091 changes: 0 additions & 1,091 deletions src/assets/maps/sky.lua

This file was deleted.

576 changes: 0 additions & 576 deletions src/assets/maps/test.lua

This file was deleted.

1,179 changes: 0 additions & 1,179 deletions src/assets/maps/tower_interior.lua

This file was deleted.

146 changes: 80 additions & 66 deletions src/assets/maps/tower_interior.tmx

Large diffs are not rendered by default.

766 changes: 0 additions & 766 deletions src/assets/maps/tower_top.lua

This file was deleted.

1,219 changes: 0 additions & 1,219 deletions src/assets/maps/town.lua

This file was deleted.

1,091 changes: 0 additions & 1,091 deletions src/assets/maps/vale.lua

This file was deleted.

8 changes: 8 additions & 0 deletions src/assets/sequences/ms_00_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"Nice job!\"',
},
},
}
14 changes: 14 additions & 0 deletions src/assets/sequences/tut_00_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
{
{
actor = 'player',
text = {
'\"You can jump with the ',
{0, 0.4, 0.7, 1},
'Z',
{0, 0, 0, 1},
' key\"',
}
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_01_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"Watch out for traps.\"',
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_02_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"Wow! I thought I was totally hidden!\"',
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_03_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"Ah. A man of culture I see.\"',
},
},
}
12 changes: 12 additions & 0 deletions src/assets/sequences/tut_04_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
return {
{
{
actor = 'player',
text = '\"What a beautiful view.\"',
},
{
actor = 'player',
text = '\"Be careful on your way down.\"',
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_05_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"You can use grenades to get to out-of-reach places.\"',
},
},
}
14 changes: 14 additions & 0 deletions src/assets/sequences/tut_06_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
{
{
actor = 'player',
text = {
'\"You can pull out a grenade with the',
{0.5,0,0.5,1},
'X',
{0,0,0,1},
'key\"',
},
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_07_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"Grenades will push you into the air.\"',
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_08_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"You\'re almost at the exit. Just a little further.\"',
},
},
}
8 changes: 8 additions & 0 deletions src/assets/sequences/tut_09_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
{
{
actor = 'player',
text = '\"This elevator will take you down the the villiage.\"',
},
},
}
14 changes: 14 additions & 0 deletions src/assets/sequences/tut_10_int.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
{
{
actor = 'player',
text = {
'\"You can press ',
{0, 0.4, 0.7, 1},
'DOWN',
{0, 0, 0, 1},
' to look down.\"'
},
},
},
}
Binary file added src/assets/sprites/16x16_sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/flower_freak/slap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/hero/slap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/hero/slapwalk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/sprites/char/player/idle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/sprites/char/player/jump-loop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/sprites/char/player/jump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/player/portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/player/slap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/player/slapwalk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/sprites/char/player/walk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/arm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/body.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/chargeup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/idle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/jump-loop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/jump-start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/jump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/leg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/rightarm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/walk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shooty/wallslide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/char/shopkeep/slap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/obj/16x16_sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/sprites/obj/32x32_lever.png
Binary file added src/assets/sprites/obj/32x32_sign.png
13 changes: 12 additions & 1 deletion src/camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local camera = {
focus_y = 0,
panic_x = 0,
panic_y = 0,
max_game_width = 320, -- maximum camera width in game coordinates
max_game_width = 500, -- maximum camera width in game coordinates
focus_follow_enabled = true,

focus_box = {
Expand Down Expand Up @@ -160,6 +160,17 @@ function camera.to_screenspace(x, y, w, h)
return ((x - bounds.x) / bounds.w) * sx, ((y - bounds.y) / bounds.h) * sy, (w / bounds.w) * sx, (h / bounds.h) * sy
end

--- Convert window coordinates to world coordinates.
-- @param x Input window x.
-- @param y Input window y.
-- @returns x, y in world coordinates.
function camera.to_worldspace(x, y)
local bounds = camera.get_bounds()
local sx, sy = love.graphics.getDimensions()

return (x / sx) * bounds.w + bounds.x, (y / sy) * bounds.h + bounds.y
end

-- Animate the camera towards the focus point.
-- @param dt Update time (seconds).
function camera.update(dt)
Expand Down
Loading