PyWeek - worldwarriors
Black Box School of Landscape Gardening
Presented by gcewing
3% respondents marked the game as not working.
1% of respondents wished to disqualify the entry.
|Screen Shot 2011-09-17 at 7.23.35 PM.png||72.46 Kbytes||bitcraft||2011/09/18 00:24|
|monsterhunter.zip — final||1.59 Mbytes||bitcraft||2011/09/18 00:22|
|monster hunter final|
|Screen Shot 2011-09-15 at 1.36.14 AM.png||172.89 Kbytes||bitcraft||2011/09/15 06:36|
|tiled map / npc|
|Screen Shot 2011-09-15 at 1.34.04 AM.png||74.87 Kbytes||bitcraft||2011/09/15 06:34|
|from the intro screen|
|screen0.png||79.93 Kbytes||bitcraft||2011/09/13 06:30|
|screenshot without original artwork|
Tuesday 04 October, 2011
[ bitcraft @ 04:16 ] another quick follow-up
someone in the comments said "spent too much time on the intro". honestly though, i spent about 1 hour on it, start to finish. that included finding the pictures, writing a parser for the script format, writing the script and finally, glueing the popup dialog class together with the parser. i don't know if they meant that as a joke or what. the dialog and state management stuff on the other hand took forever. guess that goes to show though, once you get a good foundation, things can fall into place.
after my 2nd pyweek, i think that the 3rd time will be the charm. i realize i just tried to do too much in a week. also, certain game just had a charm to them that i would really want to put into my games...easy to pick up, fun to play.
Saturday 01 October, 2011
[ bitcraft @ 18:39 ] draft of the script of the game
Action RPG story.
the character's name is Rat.
main character, wandering mercenary. doesn't have dialog, like link. while link has a positive attitude, the others are more or less indifferent toward the character.
the town has been overrun by monsters and nobody knows where they have come from. your character has a past with them, but will not lead onto others how or why he understands them. he comes to the town and establishes himself. he has been summoned by the leader of the village to come and rid the town of monster.
the story takes place over two years with 4 seasons. time is compressed like harvest moon. day and night cycles are available.
rat comes in and finds a few suitable people to assist him. dealing with the creatures not only requires strength, but also careful planning and science. rat finds 2 young people who study manuals that rat has brought with him and learn what the creatures are and how they can defeat them.
the creatures, they find, are not from this planet and used to live on a planet with much faster cycles of day and night. they have adapted to rapid reproduction and extreme mutations.
one of his helpers realizes that rat is actually a hunter from where the creatures are from and follows them, determined to exterminate them all.
rat enters the town with a small group of other bounty hunters to the town. a few months ago a mine was opened in the town that released the creatures (“disorder”). the other hunters discuss their opinions on why the disorder exists, where they came from ect. rat remains silent.
once they reach the town, they are greeted by the mayor of the town and are escorted to an inn where they will be staying. they hear that another hunter has already reached the inn, but has been in the hunt for a few days.
they have arrived during the day. night time is not safe.
it has been a few months since the disorder escaped from the caves and dispersed. little is known about them. indeed, when the cave was opened, nothing incredible happened that day, but during the night terrible noises were heard from the cave. over the next few days the sounds became more distant, but seemed to encircle the town.
the town, set in a depression, is a bowl shape and so far the disorder has not ventured beyond the mountains.
the first hunter was a local townsman, ax. he reasoned that since they waited until night to escape the cave, that they must not like the the sun. this has been verified since they have not been seen by locals during the day, but they cries can be heard at night.
the first day, rat hears other stories.
livestock have been missing. after a week or so, the sounds would get near the town, but never too close. once ax realized that the disorder will not approach light, the townspeople felled trees and created large torches around the perimeter of the town. each night 2 groups of three men were assigned to watch the torches and keep the disorder out from the town. this has worked for months now and while the sounds can still be heard, the livestock is protected and they have not approached the town.
a few weeks ago, ax and the blacksmith worked together to create a portable torch that could be used to provide light bright enough to scare the disorder. their first lantern was much larger than a most lanterns, but required special materials to create the oil, lens, and frame. ax used it when he would go solo at night to find the disorder.
ax is said to have seen several of the beasts. some people were skeptical about his stories since his descriptions of the disorder seemed so exerated. it is ax who named the beasts 'disorder' based on what he found in his few trips. he claimed that each creature is almost totally unique, unlike the beasts that are familiar to man. where each beast known to man will be made in the same mold as its parents, it is not true with these creatures. each one seems totally unique, even if found together.
his first encounter, ax found 4 disorders together around the corpse of a cow. he described them as pale, about as large as a child. each one had a similar "body", in that the color was the same, blueish-green, but each one, remarkibly had numerous arms. no legs. ax called them arms, though they were jointed twice and bent in impossible ways. at the end of each "arm" was a "hand" of 4 "fingers". each finger was identical. they were "standing" on arms which came from were legs would have been on any other normal creature. their mouth was in their chest and there was no distinct head. a row of black circle flanked each side. ax reasoned that these were eyes. ax said that he counted the "arms" of each, but found no relation in each creature. one had maybe 10, where another had only 4. the "eyes" were also this way. the color of the flesh was also varied, some more blue than the rest.
ax was able to get such a good look at them by hiding inside a tree.
ax went on a few more trips, but fond nothing. a few days before rat arrived, ax prepared some weapons and said he wanted to fight a disorder. he has not returned.
rat finds the members of the torch caretakers and they tell him that they have not seen the disorder, only seen the movement of grass and trees. one of them says that ax is crazy, another says that he begged ax to take him with him, but was refused.
at the inn in the first night a few of the other hunters band together and discuss their plans and what they got from talking with the townsfolk.
rat, alone, returns to his room. the next morning, the mayor approaches rat and says that one of the torch warden has suggested that rat come visit them that night to help and possibly see a disorder. the other hunters are also invited.
during the first day, rat checks his diary, which contains a to-do list. on the list is "find apprentices". once rat has read his diary, he begins to search the town for apprentices. various townspeople give their recommendations and rat eventually find a torch warden and a cousin of ax to take in.
rat gives them a collection of manuals, each with a note stating that they must never tell anyone what they have read. rat, unsure if they are suitable, says that they must accompany him on a hunt before they can work with him.
that night, the torch wardens teach rat how to use the torches. they explain that they are simple larger versions of a simple torch that people use. there is a oil soaked cloth and a tree that is naturally immune to fire. for the larger torches, they felled the trees that the branches were normally made of. once rat is able to prepare and light the large torch, his apprentice give him the materials to create a hand torch. rat uses the materials to create the torch and the apprentice allows rat to keep it. the apprentice also gives rat a tool to start the flame on the torch.
that night, only sounds and cries of disorder are heard and the teams walk the perimeter maintaining the torches and keeping the town safe.
over the next few weeks, rat prepares his apprentices by training them in combat and testing them on the manual's content. by the time his apprentices become strong enough to go on a hunt, reports from the torch wardens indicate the the disorder has been less wary of the torches. miners from the cave where they were released have not been in the mines, but a few went to the mines anyway and reported that the boulders that they put to block the disorders entrance has been destroyed and rotten traces of the lost livestock were found there. they also return with a scrap of cloth from ax's shirt.
ax's cousin, visibly upset and filled with courage that has been developed in him from training vows to kill every last disorder and soon runs from the party.
rat and the other party member search the entrance of the cave and find the cousin sitting on a rock facing the tunnel. cries from the disorder can be heard coming from within.
rat explains to his party that they are ready to go on a hunt. they head back to town and arrive just before dusk.
when they arrive they notice that one of the other hunters is missing. the band says that one of the hunters said he saw something in the forest just south of town and ran after it. he has not returned.
the party splits up and gets some things ready for the hunt at night. the blacksmith gives rat a list of materials and says that rat will be rewarded if he can find them. when rat returns to the inn, the inn keeper approaches rat and gives him some healing potions. after dusk, the party sets out. first they stop by the torch wardens and tell them that they will be leaving.
as they leave the light from the torches, they can hear the cries of the disorder in the distance grow louder. soon, they reach the cave.
the torch warden places a torch at the entrance of the cave. as they are there, they can hear the cries of the disorder. they enter.
as they move through the black mines, they can hear shuffling of feet from all directions. the reflections of sound creates a dizzy environment. they come across a glove on the floor. the cousin picks it up and recognizes it as ax's. overwhelmed again, the cousin darts off into the mine, leaving rat the the torch warden.
rat and the warden attempt to follow the cousin, but he is lost. as they continue, they hear a deep growl and are confronted with a disorder. the beast has patchy black hair, four legs and two arms on the top of his body. they hang over its head and grabs at the warden.
"don't let it touch you!" yells rat. they slay the beast. as the warden approaches the corpse, a gust of hot wind rushes past them and blows out their torches. they are surrounded by the sound of movement on the damp floor. rat quickly relights his torch and when their eyes adjust, the slain creature's body is gone. a trail of blue blood stretches back into the mines.
they party goes to the entrance and find the cousin there. the warden, upset, screams at the cousin. he sits.
the party heads out back toward town. they arrive as the sun begins to rise. once they past the torches, they split up and agree to meet in the morning.
rat is woken by the mayor, who tells him that he heard about the glove and the encounter in the mines. it seems everybody has heard about the glove. when he finds the warden, the warden tells him that he told his parents about the book. rat begins to get upset, but the warden continues. he says that he told them that they need an area to do the things they have learned from the book, and that his parents have agreed to give him some land, secret from the town, so that they are in privacy. rat calms down.
the cousin is sitting at his house. he says that he cannot be part of the party anymore since he cannot control his emotions. he says that he hopes that he can join again, when he is stronger.
the townsfolk comment that a strong storm seems to be coming and that they are worried about the torches. one person says that storms have happened before and the torches were ok, but with one of the disorder slain, and that the storm seems bigger than usual, they are worried the torches might not stay lit.
the mayor has called a meeting and asks that every able-bodied person volunteer to help maintain the torches tonight. the blacksmith has donated several lanterns for the townsfolk to use during the patrol.
that night, rat and the warden are on patrol with the lanterns. a group of hunters arrive in the storm and say that they would like to stay. they head into the town that night.
throughout the night the townsfolk keep the torches burning and they patrol the town in spite of the heavy rain.
at dawn the rain lets up and people start to head back into town.
the hunters that arrived in the night are at the inn. they say that they are "for hire" and that they will set up a small camp outside of town, on the east side, by the lake. they invite rat to come to their camp, even if he is not interested.
when rat runs into the blacksmith, he reminds rat about the list. he says that before ax left, they were working on a lantern that would be much brighter than the lanterns he is able to make now. he thanks rat for helping, stating that he is dissapointed the new group didn't help the town that night. he give rat a lantern.
that day, the storm is much less, and they doesn't seem to be much worry about it.
the cousin isn/t at his house, but his wife says that he went to an area near the lake to practice his swordmanship. rat sets out to find ax, and stops at the camp outside of town. the newcomers greet him and introduce themselves and their rate. rat continues on to the lake and finds the cousin practicing on a large tree truck wrapped with a rope. he is wearing ax's glove.
the cousin says that he needs to let go of the emotions he has and to believe that his cousin is alive. by now its been 2 weeks since he left. rat leaves him to practice. the cousin says that as children they would often go to the falls and jump. he said that ax was never scared of the jump, and that he would jump with his eyes closed, and gracefully fall into the water. he said that when he couldn't get the courage to jump, ax held his hand and they jumped together.
the cousin suggests that they go see the falls.
the warden says the because the rain hasn't completely let up, he will need to assist the other wardens with the torches that night. he says that he has something to show rat the next day.
the next day, rat find the warden and he introduces him to the kennel he started to build. they make plans to go out that night for another hunt.
this time, they decide not to go to the cave, but to follow the other group of hunters who go into the forest to look for their lost companion. as they more through the forest, they find him laying on a tree. he looks dead. even though his is badly injured, he wakes up when the party gets close. the other hunters quickly bring him to his feet, give him water and the party heads back to town.
they take him to the doctor and leave him there in his care. one of the hunters stays there with him.
the following day, rat seeks out the warden and they go into the forest to search for places where the disorder may be staying. as they go through the forest, the encounter corpses of animals. not a good sight.
they head to the site where they found the other hunter. rat notices a trail of blue blood and they decide to follow it. it terminates at the body of a disorder, half alive. there is deep cut in its belly. its intestines lay in the dirt. when they approach it, it gets on it feet. this take s a while, as a long spider-like limbs unwrap themselves and slowly lift its body into a standing position. it has 7. a pair of limbs bring up it's intestines from the ground and they wrap around its torso, like a bandage.
it lets out a weak cry and falls onto the ground, dead.
the party, having watched this, wait then then approach it to verify that it is dead. when they get close, they hear a shuffling in bushes close to the creature and two small cat-sized creatures burst out. they resemble the dead one, but are not completely the same. the proportions didn't seem right.
rat pulls out a bag and yells for the warden to do the same. he warns the warden again not to allow it to touch him. they quickly capture them in the bags. rat explains that they will not be able to tell the others that they have captured the beasts for fear that they would kill them. rat says he will try to find a solution. he takes the two bags and tells the warden that they will have to return to the town.
rat takes the bag of disorder to the place were the warden has built. this will become their secret for now. rat knows that they will have to tell the mayor soon, otherwise they may not be able to stay in the town.
rat finds his notebook and asks the warden for the book that he was supposed to study. they look through the book and make a new entry for the creature that they have found.
for the next week, rat and his apprentices watch as the whelps grow in size. they have been carrying out this in secret, since they know that the townsfolk may not understand. at the end of the week, one of the whelps collapses and lays motionless. it has died.
the other whelp consumes its dead sibling and for the next couple weeks it continues to grow. rat, worried that the large creature will outgrow the area makes plans to move it from the town. he decides to talk to the blacksmith to buy chains to transport it.
when rat returns, the whelp is gone, although there is no trace of damage to the area meant to contain it. there is a hole in the ground and blood around the entrance to it. there is a whimper coming from the hole.
rat walks near it, then the whelp bursts out! rat quickly kills it, but it releases a blood curdling scream before slumping to the ground dead.
there is a sound coming from the hole. it is a smaller version of what rat had just killed.
the mayor and all of the towns folk have by now assembled by the home and pen where the disorder is kept. the mayor is furious about the commotion and the dead creature on the ground, it is obvious that the thing had been penned up there. as he approaches rat the baby creature leaps from the hole and lands between rat and the mayor.
the little creature, not much larger than a kitten begins to growl awkwardly at the mayor as it backs up in between rats legs. the mayor, surprised, backs away and rat bends down to pick the creature up. inside rat's arms, the creature hides is face and stares at the mayor though the bend of rat's arm.
the mayor, once realizing that there is no danger, dismisses the crowd and tells rat that he needs to see him the following morning, without the little creature.
the apprentices melt out from the crowd and join rat.a new entry is filed in the book, along with notes indicating it's parents, the little whelps they found in the bushes.
the following morning, rat visits the mayor's house and and explains that he encountered these creatures from his home. they are a mutant race, but they can be controlled through breeding and domestication. the little creature has responded to rat because he saw it before its parent was alive and defended him. he explains that many of them are very different from each other but can be bred and tamed. he says that this is the only way to stop them, because the longer they are left alone, the stronger they will become.
the mayor, still upset says that the creatures must be moved out of town and that rat is to not return for a week while he considers if he can come back or not.
when rat returns, he has found that the apprentices have gathered the books and readied them to leave. they also tell him that he cannot come back for a week and that they cannot venture out to find him.
rat sets off that day and heads toward the camp of mercenaries by the lake.
[ bitcraft @ 18:34 ] post-mortem
Pyweek #2: done!
It was a whirlwind of coding, although not much of a game came out of it. As I was developing the game, I kept a journal of ideas to add. Over the week, I just had a ton on inspiration, but I think that the idea was not really a good fit for a week deadline.
Things I did right:
* Good games come from good ideas, so I spent the first day brainstorming and developing ideas (i also didn't have time to code!)
* Breaking down elements of the game into manageable chunks, setting goals for each (i.e.: next hour get the input working)
* Using an established codebase (lib2d from my last pyweek)
* Research into genetic algorithms helped a lot
* Using Tiled for map creation
Things that I didn't do right:
* Being waaaay too ambitious
* Getting stuck on details
* Not spending time on art, sounds, music
* Literally in the last hours, modifying the map rendering system!
The concept that I had in mind in bullet points:
* the core mechanic would be that monsters could breed with each other
* you could capture them as well, selectively breed them for qualities that you liked
* use them as pets
* if you were clever enough, you could release your bred creatures into wild populations
* get the other monitors to interbreed with itt
* the populations would have home areas, and all have similar traits
Maybe, one group is tough to kill because they run quickly. so you release slow moving creatures in that area, and maybe in a couple generations they will be easier to kill/catch.
Since the end of this pyweek, I've worked out a few bugs and maybe in a couple weeks, I'll have more to show for the game. I really like the concept and I'm going to continue tinkering with it for a while.
A few people have talked to me about Lib2d, which I'm going to package separately and document some.
The most important features of Lib2d that helped the pyweek were:
* Simple ini fie based animations
* Fast multi-layer tilemap renderer, (threaded, too!)
* Solid state-management that [imo] simplifies and consolidates input, displays, and game flow
* "Avatar" class for animated sprites with multiple directions
I also used DRI0D's tmx loader, but I've since abandoned it since I couldn't really figure out how to use it with the latest version.
There is a repackaged version of the game (i'll just call it MH) with the renderer fixed, a new tmx loader, and a draft of the script that I wrote for the story.
Now, who wants to draw me some sprites? ^_^
and finally, here is a link to a bug-fixed (not bug-free!) version:
Saturday 17 September, 2011
[ bitcraft @ 02:51 ] when the world give you lemons
THROW THEM ON THE GROUND
actually, i started adding some features and now the project is not able to run, ARG. also, i may not be able to finish at this pace. not a bad run so far for a solo project, i think. anyway, i'm kinda treading water at this point.
Thursday 15 September, 2011
[ bitcraft @ 07:01 ] wrapup
i have monsters being randomly generated along with a format that is loosely based off of biological DNA. a creatures "DNA" is represented by a series of bytes. even bytes are always a "gene", or marker of a particular quality in the creature. the top nybble of odd bytes defines the "power" of the gene, while the bottom nybble is a mask.
mutations can be make by flipping bits in the DNA, and also by pairing sequences and doing bitwise operations on them.
i've got some stuff worked out that will render what a creature would look like based on the dna. there are 41 parameters, each with 7 levels of "power", but i've only got a few that are actually drawn. so far it seems to work, but as you can see from the screen shot of the battle sequence, the creatures are really ugly!
Wednesday 14 September, 2011
[ bitcraft @ 22:22 ] Lessons learned
This is my second pyweek, but I should have learned from the last one to set some limits and not let the project get out of hand. Going solo this time has really put a strain on me, and there are many parts of the game that will not get finished. As a plus though, I will have a pretty cool library to work with for future games, and the one I'm making now will def be pyggy worthy!
Also, i'm 100% coder, I really, really suck at doing the artwork. The screenshot obviously isn't my original work, and today I'll have to get something to replace it with.
Monday 12 September, 2011
[ bitcraft @ 23:44 ] Day 2 - World View
Looks as though I (bitcraft) will be doing most of the work here as the other member crunches his game design podcast "A Fistful of Pixels" this week. Check it out on twitter @FistfulofPixels and iTunes.
The concept for this game is a monster hunting game with a pokemon-esque battle mechanic. We'll see how far this goes in a week. Will be using much of the graphics and sound library from Nein, our last pyweek entry, and also my International Katate inspired fighting game/framework.
So far, a scrolling map can be moved around in what I am calling "big maps". This mapping system uses tiles, but unlike most tiling engines, each tile is unique. Combined with an image splitter, you can prepare a game world entirely in one image, and the game will only load parts of the image that are actually used. Rendering is done in a separate thread, so movement is smooth as tiles are being loaded from the disk.
Tonight I'd like to get some menus going and maybe some basic AI on the NPC's.