Caveman

Profile
Washington DC
About the game Caveman
44 comments
1 followers
44 entries
Advertisement
Norman Barrows
December 17, 2014
Caveman 3.0 Beta 12 released!
Caveman 3.0 Beta 12 released!

PLAY NOW!
http://rocklandsoftware.net/beta.php

Game info:
http://rocklandsoftware.net/Caveman.php


New for beta 12:
---------------------------------------------
* refactored and improved AI
* give orders to party members
* sound effects
* music
* animations for actions

details:
* f…
3,911 views
Norman Barrows
September 30, 2014
The building of Caveman - part 6 - data structures
The building of Caveman - part 6 - data structures

When i first got into programming as my major, my biggest fear was that I'd end up as a database programmer.
Turns out I became a gamedev. But i still have to do database programming. Sure, games are interactive
multimedia entertainment simulations,…
2,366 views
Norman Barrows
September 29, 2014
The building of Caveman - Part 5 - General code organization
The building of Caveman - Part 5 - General code organization


This is the general code organization used in Caveman:


void main:
----------------
initprog
runprog
endprog





initprog
------------------
init z3d game library - creates window, goes into 3d mode, creates fonts, inits audio, random number generator,…
5,049 views
Norman Barrows
September 27, 2014
New Avian AI done + yet more raycaster / raypickcode!
New Avian AI done

The new Avian AI has been implemented.

There are just a few remaining tasks to complete, and then the AI will be refactored, with the new orders features added.

first off, i still have to hook up the avian ai:


the current code:
you can see how avians were originally implemented as a bu…
1,976 views
Norman Barrows
September 23, 2014
New land animal AI implemented
New land animal AI implemented



The new land animal AI has been implemented and plugged into the game.




The new land animal AI actually consists of 8 different types of AI:
1. AI for NPC allies of the player (travelling companions, hired warriors, and tamed pets).
2. AI for thieves
3. AI for neutral NPC c…
1,818 views
Norman Barrows
September 19, 2014
An example of making a change to Caveman...
An example of making a change to Caveman...

This is a quick description of what its like to make a change to the game.

I just finished the new bandmember AI. Now it was time to make bandmember AI use sprint running speed.

First I checked [color=#0000ff]movement_rate()[/color] to figure out what the sp…
1,429 views
Norman Barrows
September 19, 2014
New orders menu code
New orders menu code

Here's the new orders menu code to go with the new bandmember AI

nothing fancy, it shows a menu, "Issue orders to..."
then a second menu "Orders..."
it then sets the orders state or appropriate variable such as sneak_state.

one common game design pattern seen in this code:
populating…
1,638 views
Advertisement
Norman Barrows
September 18, 2014
New band member AI code
New band member AI code

Here's the new code for bandmember AI.

In AI terms, this code is a crude expert system:

http://en.wikipedia.org/wiki/Expert_system

it is implemented primarily as a decision tree:

http://en.wikipedia.org/wiki/Decision_tree

// ############################## NEW AI: B2 API #########…
1,772 views
Norman Barrows
September 18, 2014
New bandmember AI done
New bandmember AI done

The new AI for bandmembers is done. The new orders menu is done as well. The new AI can deal with being in a shelter, taking fire, being cornered, etc, as well as follow orders or do actions. It now automatically favors missile weapons and skirmish mode before hand weapons and…
1,327 views
Norman Barrows
September 11, 2014
Issuing orders to party members and refactoring AI...
Issuing orders to party members and refactoring AI...

NOTES:
1. in this article, any distances mentioned are in feet.
2. abbreviations used in the pseudocode:
"ret" = return
"dir" = direction
"loc" = location
"rh" = relative heading
"CR" = collision recovery

I've been playtesting the game at advanced s…
2,215 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
14 Followers
klg71
Generalist
59 Entries
2 Followers
ApochPiQ
Generalist
628 Entries
45 Followers
15 Entries
14 Followers
johnhattan
Programmer
1,277 Entries
50 Followers
Advertisement
Advertisement