aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Rahm <jrahm@Scipio.(none)>2014-04-28 14:40:02 -0600
committerJoshua Rahm <jrahm@Scipio.(none)>2014-04-28 14:40:02 -0600
commit6c9d984c054d634d2873fa3a74c41d2436f7fd53 (patch)
tree105686af3ec9267554f77c345c4ce9baf89be498
parent41d2402f004bd446c6c4975caa5211fd44d302f5 (diff)
downloadterralloc-6c9d984c054d634d2873fa3a74c41d2436f7fd53.tar.gz
terralloc-6c9d984c054d634d2873fa3a74c41d2436f7fd53.tar.bz2
terralloc-6c9d984c054d634d2873fa3a74c41d2436f7fd53.zip
added ability to get control of cursor with c. Updated goliath map
-rw-r--r--Resources.hs4
-rw-r--r--maps/goliath_height.pngbin15565 -> 27219 bytes
-rw-r--r--maps/goliath_terrain.pngbin2849 -> 3414 bytes
3 files changed, 4 insertions, 0 deletions
diff --git a/Resources.hs b/Resources.hs
index e5cb528..c0a947c 100644
--- a/Resources.hs
+++ b/Resources.hs
@@ -261,6 +261,10 @@ eventHandle event res = do
SDL.showCursor False
SDL.grabInput True
return ret
+ KeyUp (Keysym SDLK_c _ _) -> do
+ SDL.showCursor True
+ SDL.grabInput False
+ return res
KeyUp (Keysym SDLK_g _ _) -> do
SDL.showCursor False
SDL.grabInput True
diff --git a/maps/goliath_height.png b/maps/goliath_height.png
index 557922b..5e982e8 100644
--- a/maps/goliath_height.png
+++ b/maps/goliath_height.png
Binary files differ
diff --git a/maps/goliath_terrain.png b/maps/goliath_terrain.png
index e3eb9ab..5c288bd 100644
--- a/maps/goliath_terrain.png
+++ b/maps/goliath_terrain.png
Binary files differ