[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src blitter.cxx,1.8,1.9 pingu.cxx,1.8,1.9
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src blitter.cxx,1.8,1.9 pingu.cxx,1.8,1.9 pingu_action.hxx,1.1,1.2 |
Date: |
24 Jun 2002 09:41:01 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv27281
Modified Files:
blitter.cxx pingu.cxx pingu_action.hxx
Log Message:
- fixed a bug in the blitter code which caused some backgrounds to become
completly transparent
- added background scaling support
- rewrote some parts of the walker code, should be less stucky now
- fixed the bridger so that it doesn't get stuck in walls and so that walkers
can walk over a bridge which was stopped by a headbump
Index: blitter.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/blitter.cxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- blitter.cxx 23 Jun 2002 19:16:41 -0000 1.8
+++ blitter.cxx 24 Jun 2002 09:40:58 -0000 1.9
@@ -336,7 +336,7 @@
for (int si = 0, ti = 0; si < buffer_size; si += 3, ti += 4)
{
- tbuffer[ti + 0] = 0;
+ tbuffer[ti + 0] = 255; // Alpha
tbuffer[ti + 1] = sbuffer[si + 0];
tbuffer[ti + 2] = sbuffer[si + 1];
tbuffer[ti + 3] = sbuffer[si + 2];
Index: pingu.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingu.cxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pingu.cxx 23 Jun 2002 19:16:41 -0000 1.8
+++ pingu.cxx 24 Jun 2002 09:40:58 -0000 1.9
@@ -247,7 +247,8 @@
{
if (persist[i]->get_type() == (ActionType)FALL)
{
- set_paction(persist[i]->get_name());
+ // FIXME: Use action slots instead of the persistend vector
+ set_paction("floater");
}
}
}
Index: pingu_action.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingu_action.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pingu_action.hxx 12 Jun 2002 19:06:12 -0000 1.1
+++ pingu_action.hxx 24 Jun 2002 09:40:58 -0000 1.2
@@ -58,7 +58,13 @@
/// Gives the PinguAction class access to the data of the Pingu.
void set_pingu(Pingu*);
- /// Get the pixel from the colmap, relative to the pingu position.
+ /** Get the pixel from the colmap, relative to the pingu position.
+
+ @param x x is relative to the direction, so 1 is the pixel
+ infront of the pingu
+
+ @param y 1 is up, -1 is down
+ */
int rel_getpixel(int x, int y);
/** Returns the enviroment, used to check if an action can be
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src blitter.cxx,1.8,1.9 pingu.cxx,1.8,1.9 pingu_action.hxx,1.1,1.2,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/actions bridger.cxx,1.2,1.3 bridger.hxx,1.2,1.3 walker.cxx,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds surface_background.cxx,1.3,1.4
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/actions bridger.cxx,1.2,1.3 bridger.hxx,1.2,1.3 walker.cxx,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds surface_background.cxx,1.3,1.4
- Index(es):