]> git.nickg.me.uk Git - traingame.git/log
traingame.git
14 years agoRender sleepers in S-bend track
Nick Gasson [Sat, 27 Mar 2010 21:36:00 +0000 (21:36 +0000)]
Render sleepers in S-bend track

14 years agoCompute tiles covered by S-bends
Nick Gasson [Sat, 27 Mar 2010 21:11:05 +0000 (21:11 +0000)]
Compute tiles covered by S-bends

14 years agoAdd transform function for S-bends
Nick Gasson [Sat, 27 Mar 2010 20:35:45 +0000 (20:35 +0000)]
Add transform function for S-bends

14 years agoSave and load S-bends
Nick Gasson [Sat, 27 Mar 2010 17:45:26 +0000 (17:45 +0000)]
Save and load S-bends

14 years agoCorrect rendering of S-bends
Nick Gasson [Sat, 27 Mar 2010 17:15:23 +0000 (17:15 +0000)]
Correct rendering of S-bends

14 years agoBasic rendering of S-bends
Nick Gasson [Sun, 21 Mar 2010 21:04:39 +0000 (21:04 +0000)]
Basic rendering of S-bends

14 years agoGet the editor to generate S-bends
Nick Gasson [Sun, 21 Mar 2010 19:47:43 +0000 (19:47 +0000)]
Get the editor to generate S-bends

14 years agoAdd stub class for S-bend track
Nick Gasson [Sun, 21 Mar 2010 18:16:59 +0000 (18:16 +0000)]
Add stub class for S-bend track

14 years agoOptimise calls to Font::text_width
Nick Gasson [Sun, 21 Mar 2010 12:55:54 +0000 (12:55 +0000)]
Optimise calls to Font::text_width

14 years agoRemove the `resetMarks` function to improve performance
Nick Gasson [Sun, 21 Mar 2010 12:36:46 +0000 (12:36 +0000)]
Remove the `resetMarks` function to improve performance

14 years agoAdd a hill to the goods demo map
Nick Gasson [Sun, 21 Mar 2010 12:02:19 +0000 (12:02 +0000)]
Add a hill to the goods demo map

14 years agoAllow erasing stations
Nick Gasson [Sun, 21 Mar 2010 11:55:43 +0000 (11:55 +0000)]
Allow erasing stations

14 years agoAdd `reverse' status label
Nick Gasson [Sun, 21 Mar 2010 11:54:01 +0000 (11:54 +0000)]
Add `reverse' status label

14 years agoFix stopping at stations
Nick Gasson [Sun, 21 Mar 2010 11:48:28 +0000 (11:48 +0000)]
Fix stopping at stations

14 years agoDisplay speed as an absolute value
Nick Gasson [Sun, 21 Mar 2010 10:48:53 +0000 (10:48 +0000)]
Display speed as an absolute value

14 years agoMake trees a bit smaller
Nick Gasson [Sun, 21 Mar 2010 09:38:35 +0000 (09:38 +0000)]
Make trees a bit smaller

14 years agoSeperate trucks a bit
Nick Gasson [Sat, 20 Mar 2010 18:12:17 +0000 (18:12 +0000)]
Seperate trucks a bit

14 years agoFix bug in SlopeTrack gradient calculation
Nick Gasson [Sat, 20 Mar 2010 17:49:31 +0000 (17:49 +0000)]
Fix bug in SlopeTrack gradient calculation

14 years agoFix gradient calculations
Nick Gasson [Sat, 20 Mar 2010 17:39:36 +0000 (17:39 +0000)]
Fix gradient calculations

14 years agoTweak the lighting model a tiny bit
Nick Gasson [Sat, 20 Mar 2010 16:20:53 +0000 (16:20 +0000)]
Tweak the lighting model a tiny bit

14 years agoAdd smoothing tool
Nick Gasson [Sat, 20 Mar 2010 16:18:11 +0000 (16:18 +0000)]
Add smoothing tool

14 years agoMake IRollingStock::length return a float
Nick Gasson [Tue, 16 Mar 2010 08:31:05 +0000 (08:31 +0000)]
Make IRollingStock::length return a float

14 years agoTidy up some float/double conversion warnings
Nick Gasson [Tue, 16 Mar 2010 08:21:15 +0000 (08:21 +0000)]
Tidy up some float/double conversion warnings

14 years agoMerge branch 'master' of ssh://vds/home/nick/git/traingame
Nick Gasson [Tue, 16 Mar 2010 07:45:39 +0000 (07:45 +0000)]
Merge branch 'master' of ssh://vds/home/nick/git/traingame

14 years agoFix regression in Points::transform
Nick Gasson [Mon, 15 Mar 2010 21:17:26 +0000 (21:17 +0000)]
Fix regression in Points::transform

14 years agoCompute effect of gravity correctly
Nick Gasson [Sat, 6 Mar 2010 17:48:34 +0000 (17:48 +0000)]
Compute effect of gravity correctly

14 years agoRemove redundant glob from CMakeLists
Nick Gasson [Sat, 6 Mar 2010 17:31:23 +0000 (17:31 +0000)]
Remove redundant glob from CMakeLists

14 years agoFirst attempt at uphill/downhill physics
Nick Gasson [Sat, 6 Mar 2010 16:50:44 +0000 (16:50 +0000)]
First attempt at uphill/downhill physics

14 years agoAdd the uphill test map
Nick Gasson [Fri, 5 Mar 2010 21:16:18 +0000 (21:16 +0000)]
Add the uphill test map

14 years agoRemove some debugging output
Nick Gasson [Fri, 5 Mar 2010 21:16:06 +0000 (21:16 +0000)]
Remove some debugging output

14 years agoDraw sleepers on sloped track
Nick Gasson [Fri, 5 Mar 2010 21:01:17 +0000 (21:01 +0000)]
Draw sleepers on sloped track

14 years agoPut the trucks back in
Nick Gasson [Fri, 5 Mar 2010 20:02:54 +0000 (20:02 +0000)]
Put the trucks back in

14 years agoFix axis passed to new track
Nick Gasson [Fri, 5 Mar 2010 19:57:50 +0000 (19:57 +0000)]
Fix axis passed to new track

14 years agoGenerate smoother slopes at the expense of more StraightTrack
Nick Gasson [Thu, 4 Mar 2010 22:16:18 +0000 (22:16 +0000)]
Generate smoother slopes at the expense of more StraightTrack

14 years agoSlopes working properly
Nick Gasson [Thu, 4 Mar 2010 22:09:07 +0000 (22:09 +0000)]
Slopes working properly

14 years agoAdjust precision of floating point output
Nick Gasson [Thu, 4 Mar 2010 21:40:05 +0000 (21:40 +0000)]
Adjust precision of floating point output

14 years agoStart debugging slope join problems
Nick Gasson [Thu, 4 Mar 2010 21:36:14 +0000 (21:36 +0000)]
Start debugging slope join problems

14 years agoBasic rotating up and down
Nick Gasson [Thu, 4 Mar 2010 20:55:57 +0000 (20:55 +0000)]
Basic rotating up and down

14 years agoMake going up and down work in all cases
Nick Gasson [Thu, 4 Mar 2010 20:27:56 +0000 (20:27 +0000)]
Make going up and down work in all cases

14 years agoBit more progress on getting train to go up and down
Nick Gasson [Wed, 3 Mar 2010 08:37:34 +0000 (08:37 +0000)]
Bit more progress on getting train to go up and down

14 years agoStart getting the train to go uphill
Nick Gasson [Tue, 2 Mar 2010 21:25:21 +0000 (21:25 +0000)]
Start getting the train to go uphill

14 years agoMerge branch 'master' into slope_track
Nick Gasson [Tue, 2 Mar 2010 08:25:16 +0000 (08:25 +0000)]
Merge branch 'master' into slope_track

14 years agoRemove signal handler as it seems to upset X
Nick Gasson [Tue, 2 Mar 2010 08:24:58 +0000 (08:24 +0000)]
Remove signal handler as it seems to upset X

14 years agoMerge branch 'master' into slope_track
Nick Gasson [Sun, 28 Feb 2010 22:33:28 +0000 (22:33 +0000)]
Merge branch 'master' into slope_track

14 years agoSome tabs had snuck in
Nick Gasson [Sun, 28 Feb 2010 22:25:31 +0000 (22:25 +0000)]
Some tabs had snuck in

14 years agoMerge branch 'master' into slope_track
Nick Gasson [Sun, 28 Feb 2010 22:15:31 +0000 (22:15 +0000)]
Merge branch 'master' into slope_track

14 years agoRemove SEGV workaround: this isn't the problem
Nick Gasson [Sun, 28 Feb 2010 22:15:01 +0000 (22:15 +0000)]
Remove SEGV workaround: this isn't the problem

14 years agoNo need to store `flip' field for SlopeTrack
Nick Gasson [Sun, 28 Feb 2010 22:00:55 +0000 (22:00 +0000)]
No need to store `flip' field for SlopeTrack

14 years agoLoad sloped track from XML
Nick Gasson [Sun, 28 Feb 2010 21:59:53 +0000 (21:59 +0000)]
Load sloped track from XML

14 years agoDo some fancy maths to make the slopes line up nicely
Nick Gasson [Sun, 28 Feb 2010 21:25:21 +0000 (21:25 +0000)]
Do some fancy maths to make the slopes line up nicely

14 years agoSimple upward slopes working
Nick Gasson [Sun, 28 Feb 2010 20:44:00 +0000 (20:44 +0000)]
Simple upward slopes working

14 years agoMake SlopeTrack work like a proper track segment
Nick Gasson [Sun, 28 Feb 2010 20:28:29 +0000 (20:28 +0000)]
Make SlopeTrack work like a proper track segment

14 years agoGenerate sloped track
Nick Gasson [Sun, 28 Feb 2010 19:48:06 +0000 (19:48 +0000)]
Generate sloped track

14 years agoAdd stub SlopeTrack class
Nick Gasson [Sun, 28 Feb 2010 18:00:36 +0000 (18:00 +0000)]
Add stub SlopeTrack class

14 years agoCalculate slope before and after sloped section
Nick Gasson [Sun, 28 Feb 2010 17:03:20 +0000 (17:03 +0000)]
Calculate slope before and after sloped section

14 years agoDetect slopes and warn they're not supported
Nick Gasson [Sun, 28 Feb 2010 16:53:12 +0000 (16:53 +0000)]
Detect slopes and warn they're not supported

14 years agoOnly allow track to be placed on level ground
Nick Gasson [Sun, 28 Feb 2010 16:47:29 +0000 (16:47 +0000)]
Only allow track to be placed on level ground

14 years agoAdd start of loading/unloading window
Nick Gasson [Sun, 28 Feb 2010 13:53:20 +0000 (13:53 +0000)]
Add start of loading/unloading window

14 years agoPrevent planting of trees over track or other scenery
Nick Gasson [Sun, 28 Feb 2010 13:37:28 +0000 (13:37 +0000)]
Prevent planting of trees over track or other scenery

14 years agoAdd some trees to the goods_demo map
Nick Gasson [Sun, 28 Feb 2010 13:31:56 +0000 (13:31 +0000)]
Add some trees to the goods_demo map

14 years agoAdd lots of trees to the figure8 map
Nick Gasson [Sun, 28 Feb 2010 13:30:42 +0000 (13:30 +0000)]
Add lots of trees to the figure8 map

14 years agoScatter trees randomly in dragged area
Nick Gasson [Sun, 28 Feb 2010 13:30:30 +0000 (13:30 +0000)]
Scatter trees randomly in dragged area

14 years agoRename `throttle' to `power' in GUI
Nick Gasson [Sun, 28 Feb 2010 13:23:19 +0000 (13:23 +0000)]
Rename `throttle' to `power' in GUI

14 years agoHaving both placeBuilding and addScenery is pointless
Nick Gasson [Sat, 27 Feb 2010 22:43:38 +0000 (22:43 +0000)]
Having both placeBuilding and addScenery is pointless

14 years agoStoring trees and buildings separately is pointless
Nick Gasson [Sat, 27 Feb 2010 22:41:30 +0000 (22:41 +0000)]
Storing trees and buildings separately is pointless

14 years agoUse boot::program_options to parse command line
Nick Gasson [Sat, 27 Feb 2010 21:41:23 +0000 (21:41 +0000)]
Use boot::program_options to parse command line

14 years agoAdd support for non-square maps
Nick Gasson [Sat, 27 Feb 2010 20:54:55 +0000 (20:54 +0000)]
Add support for non-square maps

14 years agoMake scenery picker generic
Nick Gasson [Sat, 27 Feb 2010 20:12:42 +0000 (20:12 +0000)]
Make scenery picker generic

14 years agoRename BuildingPicker to SceneryPicker
Nick Gasson [Sat, 27 Feb 2010 17:32:19 +0000 (17:32 +0000)]
Rename BuildingPicker to SceneryPicker

14 years agoMake buildings implement IScenery and remove IBuilding
Nick Gasson [Sat, 27 Feb 2010 17:27:18 +0000 (17:27 +0000)]
Make buildings implement IScenery and remove IBuilding

14 years agoHave Building track its own location
Nick Gasson [Sat, 27 Feb 2010 17:20:06 +0000 (17:20 +0000)]
Have Building track its own location

14 years agoAllow deleting trees
Nick Gasson [Sat, 27 Feb 2010 17:12:23 +0000 (17:12 +0000)]
Allow deleting trees

14 years agoDisallow raising terrain over track
Nick Gasson [Sat, 27 Feb 2010 15:40:14 +0000 (15:40 +0000)]
Disallow raising terrain over track

14 years agoAdjust land height in figure8 map
Nick Gasson [Sat, 27 Feb 2010 14:10:28 +0000 (14:10 +0000)]
Adjust land height in figure8 map

14 years agoTweak sea and beach colours
Nick Gasson [Sat, 27 Feb 2010 14:10:18 +0000 (14:10 +0000)]
Tweak sea and beach colours

14 years agoFix speed issue when reversing
Nick Gasson [Sat, 27 Feb 2010 13:51:57 +0000 (13:51 +0000)]
Fix speed issue when reversing

14 years agoChange control method to use up/down keys
Nick Gasson [Sat, 27 Feb 2010 13:24:48 +0000 (13:24 +0000)]
Change control method to use up/down keys

14 years agoStop including all of SDL with IScreen.hpp
Nick Gasson [Sat, 27 Feb 2010 13:20:53 +0000 (13:20 +0000)]
Stop including all of SDL with IScreen.hpp

14 years agoFix smoke trail visual artefacts
Nick Gasson [Sat, 27 Feb 2010 13:17:17 +0000 (13:17 +0000)]
Fix smoke trail visual artefacts

14 years agoUndo last change: was pointless
Nick Gasson [Fri, 26 Feb 2010 19:24:58 +0000 (19:24 +0000)]
Undo last change: was pointless

14 years agoMake Map::eraseTile safer
Nick Gasson [Fri, 26 Feb 2010 19:24:12 +0000 (19:24 +0000)]
Make Map::eraseTile safer

14 years agoUse Colour struct rather than HighlightColour everywhere
Nick Gasson [Fri, 26 Feb 2010 19:20:43 +0000 (19:20 +0000)]
Use Colour struct rather than HighlightColour everywhere

14 years agoReduce state changes in renderHighlightedTiles
Nick Gasson [Fri, 26 Feb 2010 19:13:30 +0000 (19:13 +0000)]
Reduce state changes in renderHighlightedTiles

14 years agoTweak goods_demo map
Nick Gasson [Fri, 26 Feb 2010 19:11:24 +0000 (19:11 +0000)]
Tweak goods_demo map

14 years agoFix display of editor drag highlights
Nick Gasson [Fri, 26 Feb 2010 19:11:09 +0000 (19:11 +0000)]
Fix display of editor drag highlights

14 years agoUse right bit for saving depth mask
Nick Gasson [Fri, 26 Feb 2010 17:54:19 +0000 (17:54 +0000)]
Use right bit for saving depth mask

14 years agoFix graphical artefacts in highlighted tiles
Nick Gasson [Fri, 26 Feb 2010 08:52:15 +0000 (08:52 +0000)]
Fix graphical artefacts in highlighted tiles

14 years agoTidy up the Building class to be more like Tree
Nick Gasson [Thu, 25 Feb 2010 20:28:30 +0000 (20:28 +0000)]
Tidy up the Building class to be more like Tree

14 years agoOverload loadTree with normal and unserialise variants
Nick Gasson [Wed, 24 Feb 2010 22:38:35 +0000 (22:38 +0000)]
Overload loadTree with normal and unserialise variants

14 years agoUse Point<int> rather than two ints to track location in map loader
Nick Gasson [Wed, 24 Feb 2010 22:34:21 +0000 (22:34 +0000)]
Use Point<int> rather than two ints to track location in map loader

14 years agoBe consitent: use `load' for resources not `make'
Nick Gasson [Wed, 24 Feb 2010 22:27:35 +0000 (22:27 +0000)]
Be consitent: use `load' for resources not `make'

14 years agoMethods to serialise/unserialise trees from XML
Nick Gasson [Wed, 24 Feb 2010 22:17:33 +0000 (22:17 +0000)]
Methods to serialise/unserialise trees from XML

14 years agoRename ModelTree to just Tree
Nick Gasson [Wed, 24 Feb 2010 21:38:48 +0000 (21:38 +0000)]
Rename ModelTree to just Tree

14 years agoDelete old tree code
Nick Gasson [Wed, 24 Feb 2010 21:34:32 +0000 (21:34 +0000)]
Delete old tree code

14 years agoAdd an IXMLSerialisable interface for everything we can write to an XML file
Nick Gasson [Wed, 24 Feb 2010 21:29:08 +0000 (21:29 +0000)]
Add an IXMLSerialisable interface for everything we can write to an XML file

14 years agoAdd a new pie tree model
Nick Gasson [Wed, 24 Feb 2010 20:12:57 +0000 (20:12 +0000)]
Add a new pie tree model

14 years agoTry to add some protection against SEGV GLX death
Nick Gasson [Sat, 20 Feb 2010 21:21:27 +0000 (21:21 +0000)]
Try to add some protection against SEGV GLX death

14 years agoLoad and save trees from XML file
Nick Gasson [Sat, 20 Feb 2010 20:59:27 +0000 (20:59 +0000)]
Load and save trees from XML file

14 years agoLoad copies of a single cached tree
Nick Gasson [Sat, 20 Feb 2010 20:29:40 +0000 (20:29 +0000)]
Load copies of a single cached tree

14 years agoA cute 3D tree model
Nick Gasson [Sat, 20 Feb 2010 19:54:53 +0000 (19:54 +0000)]
A cute 3D tree model