There’s a guy at my work named Josh who wears this little silver braclet type thing. I thought I saw the ‘Red Hot Chili Peppers’ logo on it, and assumed it was just his way of saying he liked them. Strange, but not entirely out of character for Josh. I was with Megan at a pharmacy the other day, and saw a medical alert bracelet. I realized I had been mistaken.
Archive for August, 2005
Slight Embarassment
Wednesday, August 31st, 2005OpenGL Is Kinda Wierd
Tuesday, August 30th, 2005I guess I had been assuming that using an RGBA pixel format would enable alpha-testing, but apparently it didn’t. After looking up a bunch of examples which used a hack involving a blend-function to get around the lack of a pixel format with an alpha channel, I realized there was probably some test I needed to enable. I about smacked my forehead when I went to google and saw what the issue was, I just needed this bit of code:
glEnable(GL_ALPHA_TEST)
I wish I would have seen or thought of that earlier.
update: I need to go to bed for now, but after a bit of a struggle at first I implemented a lighting system, and if I do say so myself, the results are quite handsome. I also got some ‘under the hood’ work done, shuffling the game code so that the scene manager system is more prominent, allowing each scene to control the camera and other functions more easily. The other nice result is that the main loop of the game is simplified nicely. As for PyODE, which I thought I was going to put in tonight, I may wait on that. I’m not sure, yet.
I, for one, am Excited
Tuesday, August 30th, 2005Tonight I’m going to use PyODE to add some decent physics to my game. I can’t wait.
Always Get the Basics
Monday, August 29th, 2005I was working on some code for the Zombie game just now. At the risk of giving away spoilers, I was writing code to make sure the player stayed in the bed of a truck, which will be driving about and therefore oriented in any different number of angles.
My game was using a strange coordinate system because I hadn’t bothered to write clean code. Most sprite based entities whose angle was ‘zero’ would face upwards, while mesh-based entities whose angle was zero would face to the right. On top of that, the way angles worked may have been counter-clockwise for the sprites and clockwise for the meshes. I knew i was going to have to fix this code eventually, but tonight I tried to unsuccessfully to write code for the player in the truck of the bed. My plan was to translate the player’s position to the truck’s coordinate system and then slide him into a certain box representing the bed of the truck but i kept getting screwed up results. I finaly gave up and rewrote the crappy code, and as a result everything is much smother now.
Moral of the story: get the basics down good.
Update: YEEEEEHAWWWW
Whaa?
Sunday, August 28th, 2005I have posted a new screenshot on the ZombieFun page. It’s in the country, though. Peculiar…
More to Come
Saturday, August 27th, 2005I need to develop this idea more, but here’s the gist of it.
I submit for your consideration that if a group of people can be brought to agreement about the rules for an artificial simulation of their world, then those same people could be brought to agreement about nearly everything in their world.
I was proud
Saturday, August 27th, 2005Some lady at work: My mom works at a prison, and blah blah blah
Adam: I worked at a prison once.
Several Random Customer People: Really?
Adam: Yeah, there’s not much I haven’t done.
Me: Yea, he was once the dictator of a small south african nation, but was overthrown in a military coup and had to change his name from mbuntu before he moved back here.
Misinterpretation
Friday, August 26th, 2005I saw an away message that said: “either taking money from my friends or watching them get richer.”
My first assumption was that this was a clever description of participation in a capitalist society.
I then realized it was most likely a reference to poker.
Don’t You Wish Your Girlfriend Was Hot Like Mine
Friday, August 26th, 2005Today Megan wrote me a list of a bunch of things she likes/loves/respects about me. It made me feel great to read such a thing. A while ago I wrote her a ‘compliment generator’ in C++ but I’m thinking it’s time to redo that bad boy in python.
Overheard at Work
Thursday, August 25th, 2005Adam: Catastrophic failure? That can’t be good.