Commit Graph

16 Commits

Author SHA1 Message Date
Gregor Best 2d6c09ee5a invaders: replace ammo with round display
this commit replaces the now useless ammo display with a display showing
the current round.
2008-10-27 18:05:31 +01:00
Gregor Best adcf32f9ed invaders: code cleanup 2008-10-27 18:05:31 +01:00
Gregor Best 3895c0cde9 invaders: code cleanup 2008-10-27 18:05:31 +01:00
Gregor Best 7c20b14ce5 invaders: remove useless shots table
this commit removes the now useless table gamedata.shots and replaces it
with a single variable of the name gamedata.shot
2008-10-27 18:05:31 +01:00
Gregor Best 2a839ad875 invaders: fix indention and spacing
this commits fixes invaders' indention and spacing (every \t has been
replaced by 4 spaces)
2008-10-27 18:05:29 +01:00
Gregor Best e2d8f043b0 invaders: change points per enemy
this commits changes the points you get per enemy:

enemy #1 : 15
enemy #2 : 10
enemy #3 : 5
2008-10-21 22:49:15 +02:00
Gregor Best 04b5e24c43 invaders: clean code
this commits makes all enemies of a certain type use the same image
object to clean up the code a bit.
2008-10-21 22:49:02 +02:00
Gregor Best 7041a4680d invaders: add luadoc comments
this commit adds luadoc comments right before invaders.run() so that all
its parameters are explained in luadoc.
2008-10-21 22:47:07 +02:00
Gregor Best c846da24e1 invaders: change enemy distribution
This commit changes the distribution of enemies so that each row
contains only one type of enemy.
2008-10-21 22:47:07 +02:00
Julien Danjou 4eb096e236 libs: use geometry instead of coords
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 16:25:06 +02:00
Julien Danjou 862fe193ee Rewrite {tag,task}list in Lua.
This removes the C implementation of taglist and tasklist widgets and
use a Lua one.

This works by letting .widgets property of wiboxes to be a table with
table, and setting a special metatable on them which notify awesome on
newindex events, updating wiboxes.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 20:06:09 +02:00
Gregor Best 08a700f132 Increased Invaders difficulty
This commit increases invaders difficulty a little bit and cleans up the
code (moved static enemy data to the top of the file, made keygrabber a
part of capi, not an own local variable)

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 19:42:40 +02:00
Gregor Best 072937ec70 Various changes to awful.util and invaders
This commit changes various aspects of awful.util and invaders:

awful.util:

- added awful.util.getdir(d)
  This function takes one argument and returns a matching directory,
  as of now, only "cache" is supported. The return value is either
  $XDG_CACHE_HOME/awesome/ or $HOME/.cache/awesome/, XDG_CACHE_HOME
  takes precedence

invaders:

- renamed invaders to awesome invaders
  at two places in the sourcecode, invaders is referred to as
  "Space Invaders for Awesome". As Taiko holds the trademark for
  the term "Space Invaders", I changed both of its occurences to
  "Awesome Invaders" to avoid conflicts with the law of Japan and
  the United States of America (and possibly others)

- added support for XDG_CACHE_HOME
  this change adds support for XDG_CACHE_HOME as the cache directory
  for highscores and screenshots

- added some parameters to invaders.run()
  this change adds three parameters to invaders.run, supplied as a
  table. They are "x", "y" and "solidbg".

  "x" sets the X coordinate of the playfield
  "y" sets the Y coordinate of the playfield
  "solidbg" sets the color of the playfield background for people who
  have problems with transparency. This still looks rather hackish and
  needs to be polished

- changed startup position
  up until now, invaders always started at (100,100) on the first
  screen, now it starts centered to the screen on which the mouse cursor
  is.
2008-10-17 19:20:31 +02:00
Gregor Best 1f8d52b3f5 Fix 1800 points bug and finally get beautiful support working
This commit (finally) fixes beautiful support, now it should work with
beautiful and without.

Another fixed serious bug is that no more enemies are spawned if the
score is higher than 1800
2008-10-15 18:59:31 +02:00
Gregor Best b3518691cf add beautiful support to invaders.lua and change Garoth' name
This commit adds beautiful support to invaders.lua and changes Garoth'
name in the top comment to his full name + nickname
2008-10-14 21:39:56 +02:00
Julien Danjou 32ea9f46ca invaders: import
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-14 18:16:26 +02:00