October 2014 challenge: “One Room”
One Room - Night 3: Gravity
Posted by dholth on 2014/10/08 03:12
Today I realized that PyTMX does not assign IDs to or load the coordinates for unused tiles. This makes it difficult to render the second frame of, for example, a bad-guy animation, if the level as drawn in Tiled only shows the first frame.
Instead, my game now uses a second Tiled map just for the characters. Each row is a single character and each column is one of the standard frames for characters like run or jump. The tiles, in a shared tileset, also carry properties to hold names like 'Hero', 'Skeleton' etc. (I am using http://opengameart.org/content/simple-broad-purpose-tileset). By loading the second 'critters.tmx' in the background, PyTMX gives me coordinates and properties for all the interesting tiles that don't necessarily appear statically in a level.
The game also handles gamepad hotplugging and removal properly, and as an optimization no longer draws tiles that are outside the visible area of the screen.
Prepper - Start
Posted by yariplus on 2014/10/08 02:55
ThEdA_P19 - designers' block
Posted by gizmo_thunder on 2014/10/08 02:29
Vixelli's Adventure - development update #3
Posted by cbrocGames on 2014/10/08 01:41
The Never Ending Dungeon - I really should be programming...
Posted by raubana on 2014/10/08 01:18
Legend of Goblit - Day 3: Movement
Posted by mauve on 2014/10/08 00:21
Up until now my game characters had been rooted to the spot. Nearly all my work today has been put into making them move around freely.
First I implemented pathfinding so that characters can avoid obstacles. Input to the pathfinding is just an image showing which pixels they should be able to stand on - easily generated with Inkscape:
The pathfinding downsamples this image and finds a route using the A* algorithm (note the debug minimap in the corner, corrected for foreshortening):
Lastly, NPCs are plotted onto the map, so you won't be routed through another character:
With this, the characters are coming to life! It's still not a game - you can't do anything with items, for example. But the engine is nearly done, and there's plenty of time left, so I think I'm on target.
Pacewar - Visual Enhancements
Posted by onpon4 on 2014/10/07 23:47
After moving and shooting was done, the obvious next step was... getting the AI to do something other than shooting constantly. But I held off on that and went with doing visual enhancements first, instead.
First came exhaust for when ships are thrusting. Each ship got its own exhaust sprite, and that was simply displayed in the same place as the ship (by creating objects for them). Piece of cake. There was one hiccup, but that turned out to just be me being dumb and making the exhaust objects "inactive", which in the SGE causes animations to not happen (among other things). Easy fix.
But it still looked kind of depressing, a simple black background with ships on it, so I decided to add on the most important graphical touch: the background. I had already planned to use a nebula effect. At first I was going to just paste together some nebula images into a background, but then I decided it would be a lot cooler if the nebula was randomly generated, so I did just that. I generated nebulae nearby and away to create a nice parallax scrolling effect (and was excited when I found out that this previously untested feature only had one very simple bug), but then I decided to also generate nebulae in the foreground as well. The screenshot doesn't do the result justice; it looks amazing in motion.
Edit: I don't know why parts of the nebula show up as purple and light green. In fact, these parts are blue and yellow-orange, respectively. This screenshot shows the correct colors:
Next up is the AI, which I assume will be the hardest part, so it's a good thing I still have quite a bit of time left. I might end up adding some powerups as well later on; we'll see.
Darkroom - Viewport driving me insane
Posted by grummi on 2014/10/07 22:32
Wasted the whole day trying to find a bug in the viewport code, without much luck. Tomorrow I'm going to step through the programm with a debugger. Not really looking forward to it, but I see no way around it.
But first I'll try to get some much needed sleep.
One Room And A Goblin Invasion - Day 2 and 3: Added doors, collision detection for projectiles and improved some other little things
Posted by Master47 on 2014/10/07 21:14
The Never Ending Dungeon - Transitions work!
Posted by raubana on 2014/10/07 18:33