• 14
• 15
• 9
• 10
• 9

C++ Workshop - Project 1

This topic is 3057 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Table 3.1 - Weapons
Unarmed Strike  	1d3 (20/x2)
Brass Knuckles	        1d4 (20/x2)		1g
Dagger			1d4 (19-20/x2)	        2g
Mace			1d6 (20/x2)		5g
Handaxe		        1d6 (20/x3)		6g
Shortsword		1d6 (19-20/x2)	        6.5g
Scimitar		1d6 (18-20/x2)	        7g
Morningstar		1d8 (20/x2)		8g
Spear			1d8 (20/x3)		9g
Longsword		1d8 (19-20/x2)	        9.5g
Greatclub		1d10 (20/x2)		11g
Halberd		        1d10 (20/x3)		12g
Bastard Sword		1d10 (19-20/x2)	        12.5g
Greataxe		1d12 (20/x3)		16.0g
Greatsword		2d6 (19-20/x2)	        20.0g

Table 3.2 - Armor
Unarmored		AC: +0		Max Dex: INF
Padded Armor		AC: +1		Max Dex: +8		5g
Leather Armor		AC: +2		Max Dex: +6		10g
Hide Armor		AC: +3 	        Max Dex: +4		15g
Studded Leather	        AC: +3		Max Dex: +5		25g
Scale Mail		AC: +4		Max Dex: +3		50g
Chain Shirt		AC: +4		Max Dex: +4		100g
Chainmail		AC: +5		Max Dex: +2		150g
Breastplate		AC: +5		Max Dex: +3		200g
Splint Mail		AC: +6		Max Dex: +0		225g
Banded Mail		AC: +6		Max Dex: +1		250g
Half-Plate		AC: +7		Max Dex: +0		600g
Full Plate		AC: +8		Max Dex: +1		1000g

4. If the user selects “View Stats” he will be shown a screen that displays the character’s stats. If no character has been created or if the character was killed in the arena, the output is simply “No Character Found.” After the stats or ‘no character’ message is displayed the player will be prompted to press any key. Doing so clears the screen and returns the player to the main menu. How the stats are displayed are up to the developer, but the following stats should be shown:
Name 		// Name of the Character
Level		// Level of the Character (1-20)
Strength	// Strength of the Character (8-20)
Dexterity	// Dexterity of the Character (8-20)
Constitution	// Constitution of the Character (8-20)
Hit Point	// The hit points of the character
Experience	// How many experience points the character has earned
Gold		// The amount of gold the character has earned through victorious battles

5. If the user selects “Fight!” at the main menu he will be taken to another menu which allows the user to select which level of opponent he wants to fight, in the range of 1 to 20, depending on whether or not he’s defeated an opponent of the previous level. For example, the first time the user enters the menu, “Level 1” will be the only choice. After he defeats a “Level 1” opponent and returns to the menu, “Level 1” and “Level 2” will both be options. Similarly, after the player defeats a level 15 opponent, the level 16 opponent will become available…and the pattern continues with level 20 being the most difficult opponent. Since the user can decide whether to fight an opponent of his level or less difficult, the choice he makes will determine how much experience and gold the player will get if he wins the battle. Listed below is a table that shows how much gold and experience a character gets for fighting mobs – relative to his own level.
Table 5.1 – Experience Rewards based on Opponent Level
Character Level: 300xp
Character Level - 1: 150xp
Character Level - 2: 75xp
Character Level – 3: 35xp
Character Level – 4: 15xp
Character Level – 5: 5xp
More than 5 levels below is 5xp

Table 5.2 – Treasure Rewards based on Opponent Level
Character Level: 25g
Character Level – 1: 12g
Character Level – 2 : 6g
Character Level – 3 : 3g
Character Level – 4 : 1g
Character Level – 5 : 0.5g
More than 5 levels below is 0.5g

Table 5.3 – Total Experience Points Required at each level
Level 1 - 0
Level 2 – 1,000
Level 3 – 3,000
Level 4 – 6,000
Level 5 – 10,000
….


Share on other sites
Observations:

1) I'm assuming you don't actually intend for people to make any attempts to colour the output text?

2) You might want to provide a bit more guidance in terms of design.

Otherwise, looks like a fun project.

Share on other sites
Quote:
 Original post by ZahlmanObservations:1) I'm assuming you don't actually intend for people to make any attempts to colour the output text?2) You might want to provide a bit more guidance in terms of design.Otherwise, looks like a fun project.

1. Yes. Color the output. They learned how in a previous exercise.

2. If people have specific questions about design they can ask. Otherwise, I provided more than enough info to determine relevant classes, attributes, and behaviors.

Cheers!

Share on other sites
This is actually somewhat more complex than I expected.

Share on other sites
ohh looks like fun, I'll make a start tonight:)

Share on other sites
It also is more complex than I had expected, but I'm really happy about that. Cool execise Jeromy, keep up the good work!

Share on other sites
So far, the biggest problem I've had writing up a design for this thing is not using language features that the book hasn't covered yet. :/

I won't give specifics because I don't want to design it for the students. :P[/edit]

[Edited by - Deyja on August 17, 2006 9:17:35 PM]

Share on other sites
As indicated in the project decription, it may be necessary to use things we will cover in the next few weeks, during the duration of the project.

Cheers!

Share on other sites
Quote:
 Original post by DeyjaSo far, the biggest problem I've had writing up a design for this thing is not using language features that the book hasn't covered yet. :/I won't give specifics because I don't want to design it for the students. :P[/edit]

I had the same thing. While I was reading the assignment I kept thinking: "Oh, I hope I learn how to do 'such and such' before the end of the project."

Share on other sites
Just curious what are the other chapters we will be covering in the next 4 weeks? It will help to know what we are covering so I can plan on utilizing the new stuff for the project.

Also, to me this seems like a big project (makes Pong look small and easy), so how do I start? What you gave us is kind of like a design document, right? Should I figure out the game states and what classes I use first? Should I just try to get the combat working first or should I try to get the main menus up first?

Thanks for the idea on the first project. It sounds like its going to be a lot of fun and I hope I would be able to finish it on time.