Skip to content

Commit 363021a

Browse files
committed
Merge branch 'release/0.16.1.1627'
2 parents 1eb1a95 + cf06d9d commit 363021a

29 files changed

Lines changed: 345 additions & 340 deletions

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Version 0.16.1.1627 - 2018-09-02 (LÖVE 11.1)
2+
3+
## Additions
4+
- Added support for latin-1 charset.
5+
6+
## Fixes
7+
- Fixed camera focusing on the wrong character when switching from the current to the previous character.
8+
- Fixed faulty loading of world objects.
9+
- Fixed faulty loading of characters.
10+
11+
## Other Changes
12+
- Changed how fonts are loaded by the game to support different charsets.
13+
14+
15+
16+
117
# Version 0.16.0.1615 - 2018-08-30 (LÖVE 11.1)
218

319
## Additions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# On The Roadside
22

3-
[![Version](https://img.shields.io/badge/Version-0.16.0.1615-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest)
4-
[![LOVE](https://img.shields.io/badge/L%C3%96VE-11.0-EA316E.svg)](http://love2d.org/)
3+
[![Version](https://img.shields.io/badge/Version-0.16.1.1627-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest)
4+
[![LOVE](https://img.shields.io/badge/L%C3%96VE-11.1-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

77
_On the Roadside_ is a turn-based strategy game in which you take control of a squad of mercenaries fighting for survival in a world shaped by unknown forces. It currently is in the very _early stages_ of development.
-1.37 KB
Binary file not shown.
1018 Bytes
Loading
1.38 KB
Loading

res/texturepacks/default/info.lua

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,23 @@ return {
99
}
1010
},
1111
font = {
12-
source = 'imagefont.png',
13-
glyphs = {
14-
source = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄÖÜäöü0123456789.,:;!?-+/()[]%&"\'*=_<>ß^©|',
15-
width = 8,
16-
height = 16
12+
width = 8,
13+
height = 16,
14+
charsets = {
15+
{
16+
-- LATIN BASIC
17+
-- 0020-007F (Excluded: 007F)
18+
-- !"# $%&' ()*+ ,-./ 0123 4567 89:; <=>? @ABC DEFG HIJK LMNO PQRS TUVW XYZ[ \]^_ `abc defg hijk lmno pqrs tuvw xyz{ |}
19+
source = 'imagefont_latin_basic.png',
20+
glyphs = [[ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~]]
21+
},
22+
{
23+
-- LATIN-1
24+
-- 00A0-00FF (Excluded: 00A0, 00AD)
25+
-- ¡¢£¤ ¥¦§¨ ©ª«¬ ®¯°± ²³´µ ¶·¸¹ º»¼½ ¾¿ÀÁ ÂÃÄÅ ÆÇÈÉ ÊËÌÍ ÎÏÐÑ ÒÓÔÕ Ö×ØÙ ÚÛÜÝ Þßàá âãäå æçèé êëìí îïðñ òóôõ ö÷øù úûüý þÿ
26+
source = 'imagefont_latin_1.png',
27+
glyphs = [[¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ]]
28+
}
1729
}
1830
}
1931
}

src/CombatState.lua

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ function CombatState:initialize( playerFaction, savegame )
8383
end)
8484
end)
8585

86-
self.stateManager = StateManager( self.states )
87-
self.stateManager:push( 'planning', self.factions )
86+
self.explosionManager = ExplosionManager( self.map )
87+
88+
self.projectileManager = ProjectileManager( self.map )
89+
self.projectileManager:observe( self.explosionManager )
8890

89-
self.sadisticAIDirector = SadisticAIDirector( self.factions, self.stateManager )
91+
self.stateManager = StateManager( self.states )
92+
self.stateManager:push( 'planning', self.factions, self.explosionManager, self.projectileManager )
9093

91-
ProjectileManager.init( self.map )
92-
ExplosionManager.init( self.map )
94+
self.sadisticAIDirector = SadisticAIDirector( self.factions, self.stateManager, self.explosionManager, self.projectileManager )
9395

9496
-- Register observations.
9597
self.map:observe( self )
@@ -137,11 +139,6 @@ function CombatState:serialize()
137139
return t
138140
end
139141

140-
function CombatState:close()
141-
ProjectileManager.clear()
142-
ExplosionManager.clear()
143-
end
144-
145142
function CombatState:keypressed( _, scancode, _ )
146143
if self.factions:getFaction():isAIControlled() or self.stateManager:blocksInput() then
147144
return
@@ -160,6 +157,14 @@ function CombatState:getMap()
160157
return self.map
161158
end
162159

160+
function CombatState:getExplosionManager()
161+
return self.explosionManager
162+
end
163+
164+
function CombatState:getProjectileManager()
165+
return self.projectileManager
166+
end
167+
163168
function CombatState:getFactions()
164169
return self.factions
165170
end

src/Messenger.lua

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

src/characters/Character.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ function Character:serialize()
285285
local t = {
286286
['class'] = self.creatureClass,
287287
['name'] = self.name,
288+
['maxActionPoints'] = self.maxActionPoints,
288289
['actionPoints'] = self.actionPoints,
289290
['accuracy'] = self.accuracy,
290291
['throwingSkill'] = self.throwingSkill,

src/characters/CharacterFactory.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function CharacterFactory.init()
178178
end
179179

180180
function CharacterFactory.loadCharacter( savedCharacter )
181-
local character = Character( savedCharacter.class )
181+
local character = Character( savedCharacter.class, savedCharacter.maxActionPoints )
182182

183183
character:setName( savedCharacter.name )
184184
character:setActionPoints( savedCharacter.actionPoints )

0 commit comments

Comments
 (0)