Hi all,
Spent some time yesterday doing updates to the shops, they now appear dark when closed and also have a nice light that comes on outside too.
Creatures passing the shops comment whether shop is open and if so, they may possibly go in - at the moment this is done randomly until I come up wi…
Hi,
Well today, I had a little bit of time so I've updated the shop object - they now have opening and closing times, who the shop keeper is and items they sell. If the shop is closed it is drawn darker than normal, although you
can click on it and will be told so. Creatures that walk past shops s…
Hi,
I've finally added some shops to the game, at the moment I have petshop, armour and a weapon shop. Each shop when double clicked on opens an inside view of the shop with the items that can be bought. All the shops
are randomly generated within the world and even the shop keepers are. I created a…
Added some procedural hill biomes today, not sure what to do with them as of yet but do think they make the landscape a little more interesting...
Looking at adding shops to the land at some point this week, should be interesting, quite looking forward to coding this up. Each shop will have a rand…
Hi,
Added a couple different light torches that can be used, these emit different coloured lights, looks ok, not perfect but for now with time running low I think it is pretty good.
Maybe in time the lights will emit more than others and shine brighter.
Also added crops and food to the outside land…
Hi,
Just implemented life spans for the various creatures in the game. Each creature have their own attributes such as health, age, aggression, if the can drive vehicles, if they can be pets etc. What I've done is to make them get older, thus their age changes which can be viewed when clicking on…
The Sentry cops will always shoot at the player if they see him, otherwise they have a chance of shooting at any of the creatures
on the land, kind of adds more personality to the Sentry cop (makes them very nasty characters!). Was wondering if I maybe should only allow them to shoot at certain cre…
Finally got the shooting in on bad guys such as Sentry Cops - these basically fly around and if they see you they open fire, at the moment they have an infinite amount of bullets but this could change...
Added some simple math so the cops target player, something like:angleToPlayer = Math.atan2(Mat…
Just been optimising the code today in the little time I've had. A lot of the code was sloppy so simple to make more efficient. Started to implement the AI for one of the enemies in the game, this is named SentryCop (see image), his job is to fly around and shoot at anything that moves which includ…
Hi,
I've decided to put a blog together for my game I've been working on for around 10 months on and off (time permitting). The game is around 65% completed and I am hoping to have it completed February 2017.
The game is a 2d survival sandbox game where the landscape is generated procedurally and c…