Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 9 10 [11] 12 13 ... 29

Author Topic: My C++ Projects - Tower of Azari v0.31 - "I'm not dead yet."  (Read 51855 times)

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #150 on: November 14, 2009, 10:32:50 pm »

Magic items are in.  They can't be used yet, but they're in :P

Next step is to adjust my "get_spell" and "cast_spell" functions to work better with the items... probably not tonight though, I'm tired :P
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #151 on: November 14, 2009, 10:35:01 pm »

Cool!
Logged

Azrathud

  • Bay Watcher
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #152 on: November 15, 2009, 01:50:38 am »

(Original Post)
   ... I picked up a couple highly-recommended books and got to work. ...

Hey, I'm Interested in learning C++. Could you give me the names of those books you used? Thanks.
Logged

alfie275

  • Bay Watcher
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #153 on: November 15, 2009, 09:26:59 am »

You might find this useful: http://www.mediafire.com/?43kkiidry3z
Logged
I do LP of videogames!
See here:
http://www.youtube.com/user/MrAlfie275

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #154 on: November 15, 2009, 09:36:37 am »

Hey, I'm Interested in learning C++. Could you give me the names of those books you used? Thanks.

I started with "Beginning C++ Game Programming" by Michael Dawson.  At some point though it started to lose me, so I looked around for something else, started on "Game Programming all in One" by Bruno Miguel Teixeira de Sousa (that name's a mouthful, huh?), but I didn't get as far as the graphics part in that one, cause it was borrowed.  It's the book that my "Craps" game started from.

Other than those two, I used the Wikibooks on C++ a LOT.  They seem to have progressed a lot since I last read through them, so that may be your best bet if you're hard up for cash like me :P
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #155 on: November 15, 2009, 10:44:19 am »

Outcast Orange, I must thank you for the help yesterday.
Logged

Azrathud

  • Bay Watcher
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #156 on: November 15, 2009, 12:46:52 pm »

Ooh thanks for the Primer alfie. I've heard good things about it.

I will look into those books Tim, especially "Game Programming all in One"(my local library has it)  and I always love learning from a wiki.  ;D
Logged

alfie275

  • Bay Watcher
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #157 on: November 15, 2009, 03:33:25 pm »

Hey Tim, have you thought about my idea for another magic system?
Logged
I do LP of videogames!
See here:
http://www.youtube.com/user/MrAlfie275

Outcast Orange

  • Bay Watcher
  • [SOMETIMES_SQUID]
    • View Profile
    • The Outcast Orange
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #158 on: November 15, 2009, 04:04:20 pm »

@Org: Don't worry about it, I've always wanted to intro someone to programming.

@timmeh:

Sweet! I'm looking forward to messing around in your game, and possibly modding spells and stuff.

Logged
[7:53:55 PM] Armok, why did you demand that I don't eat you?
[7:54:34 PM] [Armok]: woooooo

Burried Houses - Platform Explorer Demo H - Cloud Scream

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #159 on: November 15, 2009, 07:06:11 pm »

I think I found a problem. When I kill some enemies, they drop an item, and sometimes I think it comes back, or they just drop like 3 bows. Also, there was a messed up door, like this:
Code: [Select]
_____+_____
........_.........
........_.........


_ = Wall
+ = Door
.  = Floor

Unless it should do that...
Logged

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #160 on: November 15, 2009, 07:56:36 pm »

First off, I had a friend over today, so almost nothing got done... I should be able to make some progress tonight though.

@Alfie275 - I've definitely been considering it, although as I mentioned earlier, it'll likely be a future addition, as I'd like to get this out so I can do some bug-testing soon...

@Outcast Orange - Thanks!  It should be really easy to mod them.  I put loads of comments in the spell file, so it shouldn't be hard to figure out.

@Org - The only time they should drop more than one item is if it's ammo... I'll look into it, thanks!

Speaking of which, I've altered ammo dropping in the next version to always drop at least 5 of the munitions.  Also, there are a few cheat functions I forgot to remove in the current version, I think I've marked all of them for removal prior to the next release, but if oyu find any outside the shop let me know...
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #161 on: November 15, 2009, 09:20:30 pm »

Also, you cant see money on the ground unless it is out of your vision.
Logged

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #162 on: November 15, 2009, 09:21:33 pm »

Oh god, the thing I drew with code is bad.

Code: [Select]
________+________
........_.........
........_.........


_ = Wall
+ = Door
.  = Floor
Here is a better look.
Logged

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #163 on: November 15, 2009, 10:50:12 pm »

Also, you cant see money on the ground unless it is out of your vision.

Fixed, thanks!

Yeah, Outcast Orange helped me think a fix through for that, I just need to implement it now...

In the mean time, I've almost got spells working the way I want.  I've put a 25 point cap on the 5 primary skills, and I've made sure changing it is easy, in case that's too low or high.  The equation to see if a spell can be cast from memory is this:
Code: [Select]
spell_understanding - (skill_cap-player_intelligence) if the value is positive then the spell can be cast from memory, otherwise it cannot.  This has the added benefit of returning either the number of times it can be cast from memory (if positive), or the number of times it needs to be cast to remember it (if negative); give or take one to adjust for zero, depending on whether or not I allow casting then...

So basically, a character with 7 intelligence would need to cast a spell at least (25-7=18) times to cast from memory.  It's a little extreme, so I may put a cap on it (no matter how low your intelligence, you can cast after 10 uses, or something).

Anyways, I just need to add casting from items (should be easy) and spell memorization (a little trickier, but not too hard).  The only difficult part with spell memorization is figuring out how to save/load it.  I can't really save/load it as part of the spell list, as that's reloaded from the raw file (technically it's a .txt at the moment...) each time you start a game.  I'm thinking I may use a map, and store the spells name along with the number of times it's been cast.  That way, if a spell is changed it'll still work okay, and if a spell is removed it won't mess anything up, you could even add it back in later, with completely different effects, and it should still work.

I need sleep at the moment, I'll be attending the midnight release for Assassin's Creed 2 at GameStop tomorrow, assuming I can get a ride (freaking under-18 curfew....), but I'll be back on this tomorrow, as much as school and scheduled events allow.

Thanks again for all the advise and bug reports everyone, it's been incredibly helpful, and I'm really grateful!

[EDIT]: One more bug-fix related to spell-items and then some cleanup, and I can get this version up :)  After this, and maybe a bug-fix release depending on how buggy this version is, I may do a rewrite.  I've been doing a fair amount of reading into coding standards, formatting, naming and such, and it'll give me a really good excuse to clean up my mess...

On the subject of a re-write, how does everyone feel about the size of the maps now?  I finally figured out how to change the size of the window with PDCurses, and I'm debating making the maps a bit bigger, and giving myself a little more room for the display...
« Last Edit: November 16, 2009, 03:26:51 pm by timmeh »
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

Org

  • Bay Watcher
  • Daring Hero
    • View Profile
Re: My C++ Projects - Tower of Azari v0.29 - Update 11/10/09!
« Reply #164 on: November 16, 2009, 08:53:50 pm »

Maybe a little bigger maps, but not too much, or you could wander for a while. I like your game alot!

I however, am having some trouble with my own. And bools. : (
Logged
Pages: 1 ... 9 10 [11] 12 13 ... 29