Intel sponsors gamedev.net search:   
Adventures in Text-modeBy Twisol      
In order of no progress to done: Red, Orange, Yellow, Blue, Light blue, Green, Light green.

Last updated 2/12/09 at 12:01 am PST

Cripes! 2.0 -- See the Class Layout

Arenamatic Code w/ cConsole


Tuesday, February 10, 2009
I scrapped the EntityManager and merged it into World. I want to change that at some point, but it works right now and I'm determined to make some kind of progress here.

I know how everyone loves screenshots, so here's one with the Snipes hunter guy (Sniper).

Hello, Sniper!


Uh oh, a bug sliced him in half...


EDIT: I know, the colors are death to the eyes. I needed something to fill the map though! When the map is created it cycles through each of the 16 console colors and sets it as the background color in each cell.

Comments: 0 - Leave a Comment

Link


Alright, so I have a barebones EntityManager class up, which maintains a std::list of Entity instances. Each Entity has a std::vector of sprites, intended to be used as frames in Entity animation. I guess it's mostly just there to look good right now, since I'm not really too sure how I'm going to implement the sprite animations. Anyways, the entities are owned by the EntityManager, and Add() returns a pointer to the Entity in its list. I don't think std::list moves its elements around in memory like std::vector does, which is why I think it'll work fine.

This is all a learning process for me, obviously: this is my first real game project. So I guess I shouldn't be too surprised when things go wrong.

EDIT: Something went wrong! If I want the EntityManager to construct a CHAR_INFO clip with the entities - an entity map, basically - then it needs to know how big the world is for wrapping to work properly. Building this entity map in World leaves a bad taste in my mouth, because after all it's getting a ready-made clip from Map. I can't pass the world dimensions to the EntityManager because I don't think it should have that information, either. There has to be a better way :/

Comments: 2 - Leave a Comment

Link


All times are ET (US)

 
S
M
T
W
T
F
S
1
2
3
4
6
7
9
14
16
21
24

OPTIONS
Track this Journal

 RSS 

ARCHIVES
August, 2009
July, 2009
March, 2009
February, 2009
December, 2008
November, 2008
October, 2008
August, 2008
July, 2008
June, 2008
May, 2008
April, 2008
November, 2007
July, 2007
June, 2007
May, 2007
April, 2007
March, 2007
February, 2007
December, 2006
October, 2006
September, 2006
July, 2006
May, 2006
April, 2006