Merge branch 'master' of hongabar.org:robotgame
| @ -1,9 +1,10 @@ | ||||
| 	wheel | ||||
| DONE	søjle | ||||
| DONE	søjle som kan hæve/sænke | ||||
| 	water/lava/to be discussed | ||||
| done	well with alpha in center to allow coloured light | ||||
| 	spaceship | ||||
| 	walls (in-door) | ||||
| 	gate | ||||
| DONE	well with alpha in center to allow coloured light | ||||
| dummy	spaceship | ||||
| dummy	walls (in-door) | ||||
| dummy	gate | ||||
| 	numbered stones (symbols to be discussed) | ||||
| done	floor tiles | ||||
| DONE	floor tiles | ||||
| 	weight scale indicator (arrow moving 180 degrees from left to right) | ||||
|  | ||||
| Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 7.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/blocks/block4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 9.4 KiB | 
| Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 742 B | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/door/door0020.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 889 B | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0002.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0003.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0004.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0005.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.6 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0006.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0007.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0008.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0009.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0010.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 4.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0011.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.0 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0012.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0013.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0014.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0015.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0016.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0017.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0018.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0019.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0020.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0021.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 5.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0022.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 6.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0023.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 6.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0024.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0025.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/elevating_column/column0026.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 7.4 KiB | 
							
								
								
									
										6
									
								
								resources/graphics/elevating_column/readme
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| frame 02 is basic (entirely lowered) | ||||
| frame 08 is stage 1 | ||||
| frame 14 is stage 2 | ||||
| frame 20 is stage 3 | ||||
| frame 26 is max | ||||
| 
 | ||||
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/spacecraft.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 8.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								resources/graphics/wall.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 62 KiB | 
| @ -418,14 +418,14 @@ class Wheel(block.Block): | ||||
| 
 | ||||
|         self.frame = 0 | ||||
|         self.anim_speed = 15 | ||||
|         self.nsettings = 4 | ||||
|         self.nsettings = 5 | ||||
|         self.setting = random.randint(0, self.nsettings - 1) | ||||
|         if self.immitate: | ||||
|             self.on = self.setting == self.immitate.setting | ||||
| 
 | ||||
|         self.init_setting = self.setting | ||||
| 
 | ||||
|         self.anim = 'stairs' | ||||
|         self.anim = 'elevating_column' | ||||
| 
 | ||||
|         self.anim_direction = 1 | ||||
| 
 | ||||
| @ -447,7 +447,8 @@ class Wheel(block.Block): | ||||
|     def update(self, e, t, dt): | ||||
|         # Update the animation | ||||
|         l = len(self.level.imgs[self.anim]) | ||||
|         if not (int(self.frame) == self.setting * l / self.nsettings): | ||||
|         if not (int(self.frame) == self.setting * (l - 1) | ||||
|                 / (self.nsettings - 1)): | ||||
|             self.frame = ((self.frame + self.anim_speed * dt) % l | ||||
|                           if (self.setting > 0 and self.anim_direction > 0) | ||||
|                           or (self.setting == self.nsettings - 1 | ||||
|  | ||||
| @ -86,6 +86,7 @@ class Loader(object): | ||||
|              ('arrow_left', os.path.join('matt', 'right')), | ||||
| 
 | ||||
|              ('stairs', 'stairs'), | ||||
|              ('elevating_column', 'elevating_column'), | ||||
| 
 | ||||
|              ('mirror', 'mirror')] | ||||
|             ): | ||||
|  | ||||
 Niels Serup
						Niels Serup