Skip to content

Commit 37cbb5c

Browse files
committed
Merge branch 'release/0.11.0.1125'
2 parents 1589f42 + ce9da49 commit 37cbb5c

File tree

85 files changed

+1557
-2270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1557
-2270
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
# Log files
1515
.consolelog
16+
17+
# Automatically created files
18+
templates.out

.travis.yml

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ sudo: false
33

44
env:
55
- LUA="luajit 2.0"
6-
- LUA="luajit 2.1"
76

87
before_install:
98
- pip install hererocks
@@ -16,7 +15,8 @@ install:
1615

1716
script:
1817
- luacheck .
19-
- busted spc
18+
- busted tests/spc
19+
- tests/templates/validate_templates.sh
2020

2121
branches:
2222
only:

CHANGELOG.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# Version 0.11.0.1125 - 2017-11-08
2+
3+
## Additions
4+
- Added letterboxing to hide parts of the screen which don't fit on the tile grid
5+
- Added Changelog screen to the main menu
6+
7+
## Removals
8+
- Removed old base screen
9+
- Removed german translation
10+
- Removed generators and templates for static maps
11+
12+
## Fixes
13+
- Fixed issue with registering attacks hitting indestructible objects
14+
- Fixed alignment of ui items when the window is resized
15+
- Fixed camera grid alignment
16+
- Fixed inventory items not being dropped when a character bled to death
17+
18+
## Other Changes
19+
- Calculated deviation for ranged shots is floored instead of rounded
20+
- Updated the savegame screen
21+
- Limited mouse cursor for the UI to the actual screen grid
22+
- Player-controlled characters now always spawn with a ranged weapon (additionally they either get a melee or some throwing weapons)
23+
24+
25+
26+
127
# Version 0.10.0.1089 - 2017-10-28
228

329
## Additions
@@ -371,7 +397,7 @@
371397
- The game starts in fullscreen now by default
372398
- The mouse scrolling stops if the mouse cursor leaves the game's window
373399
- Increased the size of the mouse scrolling area
374-
- Renamed _Police Baton_ to _Tonfa_
400+
- Renamed Police Baton to Tonfa
375401
- Ammunition is now handled on a single-round level instead of using magazines
376402
- Pathfinding now uses the more appropriate Chebyshev distance as an heuristic
377403
- Updated spawnpoints for player's characters
@@ -445,6 +471,8 @@
445471

446472

447473
# Version 0.1.0.337 - 2016-07-31
474+
475+
## Additions
448476
- Initial Release
449477
- Add basic implementation of turn based combat mechanics
450478
- Three different factions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# On The Roadside
22

3-
[![Version](https://img.shields.io/badge/Version-0.10.0.1089-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest)
3+
[![Version](https://img.shields.io/badge/Version-0.11.0.1125-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest)
44
[![LOVE](https://img.shields.io/badge/L%C3%96VE-0.10.2-EA316E.svg)](http://love2d.org/)
55
[![Build Status](https://travis-ci.com/rm-code/On-The-Roadside.svg?token=q3rLXeyGTBN9VB2zsWMr&branch=develop)](https://travis-ci.com/rm-code/On-The-Roadside)
66

lib/Camera.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ end
7272

7373
function camera:attach()
7474
local cx,cy = love.graphics.getWidth()/(2*self.scale), love.graphics.getHeight()/(2*self.scale)
75+
cx, cy = math.floor( cx / 16 ) * 16, math.floor( cy / 16 ) * 16
76+
7577
love.graphics.push()
7678
love.graphics.scale(self.scale)
7779
love.graphics.translate(cx, cy)

main.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local ScreenManager = require('lib.screenmanager.ScreenManager');
22
local ProFi = require( 'lib.ProFi' );
33
local Log = require( 'src.util.Log' );
44
local DebugGrid = require( 'src.ui.overlays.DebugGrid' )
5+
local Letterbox = require( 'src.ui.overlays.Letterbox' )
56

67
-- ------------------------------------------------
78
-- Local Variables
@@ -13,6 +14,8 @@ local info;
1314

1415
local debugGrid
1516

17+
local letterbox
18+
1619
-- ------------------------------------------------
1720
-- Constants
1821
-- ------------------------------------------------
@@ -62,10 +65,9 @@ function love.load( args )
6265
local screens = {
6366
bootloading = require( 'src.ui.screens.BootLoadingScreen' ),
6467
mainmenu = require( 'src.ui.screens.MainMenu' ),
65-
basemenu = require( 'src.ui.screens.IngameBaseMenu' ),
6668
ingamemenu = require( 'src.ui.screens.IngameCombatMenu' ),
6769
options = require( 'src.ui.screens.OptionsScreen' ),
68-
base = require( 'src.ui.screens.BaseScreen' ),
70+
changelog = require( 'src.ui.screens.ChangelogScreen' ),
6971
combat = require( 'src.ui.screens.CombatScreen' ),
7072
inventory = require( 'src.ui.screens.InventoryScreen' ),
7173
help = require( 'src.ui.screens.HelpScreen' ),
@@ -76,6 +78,8 @@ function love.load( args )
7678
};
7779

7880
ScreenManager.init( screens, 'bootloading' );
81+
82+
letterbox = Letterbox.new()
7983
end
8084

8185
function love.draw()
@@ -94,6 +98,8 @@ function love.draw()
9498
if debugGrid then
9599
DebugGrid.draw()
96100
end
101+
102+
letterbox.draw()
97103
end
98104

99105
function love.update(dt)

publish-release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ build=${version[3]}
1818

1919
formatted="$major$minor$patch-$build"
2020

21-
# Zip files. Exclude git folder and DS_Store files.
21+
# Zip files.
2222
echo "Packing .love file for $major.$minor.$patch.$build"
23-
zip -r -q OTR_$formatted.love ./ -x *.git* -x *.DS_Store* -x *.sh* -x *.idea* -x .travis.yml -x .luacheckrc -x README.md
23+
zip -r -q OTR_$formatted.love ./ -x .\* -x \*.sh -x tests/\* -x README.md -x config.ld
2424

2525
# Move to releases folder and cd to releases.
2626
mkdir ../releases/OTR_$formatted
2727
mv -i -v OTR_$formatted.love ../releases/OTR_$formatted
2828
cd ../releases/OTR_$formatted || exit
2929

30+
exit
31+
3032
## CREATE WINDOWS EXECUTABLE
3133
# Unzip the LÖVE binaries.
3234
unzip -q ../LOVE_bin.zip -d LOVE_WIN

res/data/items/Ammunition.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ return {
1717
}
1818
},
1919
{
20-
id = "12 gauge",
21-
idDesc = "12 gauge_desc",
20+
id = "12_gauge",
21+
idDesc = "12_gauge_desc",
2222
itemType = "Ammunition",
2323
weight = 0,
2424
volume = 0,

res/data/items/weapons/Ranged.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ return {
7272
stackable = false,
7373
permanent = false,
7474
subType = "Ranged",
75-
caliber = "12 gauge",
75+
caliber = "12_gauge",
7676
sound = 'SHOTGUN',
7777
damage = 15,
7878
magSize = 8,

res/data/maps/1/Map_Ground.png

-689 Bytes
Binary file not shown.

res/data/maps/1/Map_Objects.png

-610 Bytes
Binary file not shown.

res/data/maps/1/Map_Spawns.png

-152 Bytes
Binary file not shown.

res/data/maps/1/info.lua

Lines changed: 0 additions & 28 deletions
This file was deleted.

res/data/maps/Base/Map_Ground.png

-2.07 KB
Binary file not shown.

res/data/maps/Base/Map_Objects.png

-642 Bytes
Binary file not shown.

res/data/maps/Base/Map_Spawns.png

-218 Bytes
Binary file not shown.

res/data/maps/Base/info.lua

Lines changed: 0 additions & 24 deletions
This file was deleted.

res/text/de_DE/body_parts.lua

Lines changed: 0 additions & 41 deletions
This file was deleted.

res/text/de_DE/creature_text.lua

Lines changed: 0 additions & 9 deletions
This file was deleted.

res/text/de_DE/inventory_text.lua

Lines changed: 0 additions & 13 deletions
This file was deleted.

res/text/de_DE/item_text.lua

Lines changed: 0 additions & 48 deletions
This file was deleted.

res/text/de_DE/tiles_text.lua

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)