473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

School project: C++ RPG game.

Hi everyone.

I've been browsing your forums for a week or too, looking for information about RPG games.

I'm very new to the whole C++ thing, but feel like im getting a hang of it. As a part of my examn project this year, i've decided to program a simple 2D-Rpg game (if possible!). Let me just tell your about my basic idea, then ill get to the questions.

The game:
I would like to make a very simple 2D inviroment, where the player will be controlling a character. I will then implement a few tasks and quests along the way, where the player must conquer some monsters and/or pick up various items. Im hoping it will be possible to make a field/area on the screen where the actual gaming will take place.

Here are my questions:
1. I've read that its possible to implement paint-drawn bitmap images into a visual studio c++ inviroment. Yet i dont know what tools to use, or how this will work exactly? I was thinking that i could draw a landscape/scenario in paint, and then put it into my screen as a wallpaper, so that the graphic wouldn't do anything but just be there.

2. As i mentioned, i would like the action to take place in a part of the screen. Is it possible to make a coordination system for me to work with? Fx. when the character is on x2,y3 and the left-arrow on the keyboard is pressed, he will then move to x3,y3? This would also allow me to put down certain objects and monsters at specific locations.

3. Is it possible to put images as background and then put another image (fx. a coin) on top of that, and make that piece of graphic interactive? (so when the character steps onto the coin, and fx. enter is hit, the coin will be removed and added to an inventory?)

I know this might sound like a big project for a rookie, but im willing to put alot of time into it, and hope i could make something work!

**EDIT** I realize that RPG's are pretty much text based, and im aware that alot of the images/animations will not have a function besides beeing pretty. So alot of this will actually be code i suspect, yet i would like to have a landscape and such just to spice things up a bit.

Thanks in advance.

- Karlsen
Feb 8 '08 #1
5 4075
RedSon
5,000 Expert 4TB
Here are my questions:
1. I've read that its possible to implement paint-drawn bitmap images into a visual studio c++ inviroment. Yet i dont know what tools to use, or how this will work exactly? I was thinking that i could draw a landscape/scenario in paint, and then put it into my screen as a wallpaper, so that the graphic wouldn't do anything but just be there.
You can use the tools provided in visual studio to make small bitmaps. They are very primitive so it might be better to us a real program like Adobe to create the bitmap then copy it to your project tree.
2. As i mentioned, i would like the action to take place in a part of the screen. Is it possible to make a coordination system for me to work with? Fx. when the character is on x2,y3 and the left-arrow on the keyboard is pressed, he will then move to x3,y3? This would also allow me to put down certain objects and monsters at specific locations.
Assuming you are doing this on microsoft's platform your window already has a coordinate system starting from the top right corner and increasing in both the x and y dimensions toward the bottom right. If you paint your little character sprite in the middle of the screen and hit an arrow button you can capture that key press and then update your character's bounding rectangle to a new location.
3. Is it possible to put images as background and then put another image (fx. a coin) on top of that, and make that piece of graphic interactive? (so when the character steps onto the coin, and fx. enter is hit, the coin will be removed and added to an inventory?)
Yes, you can place a background image on your window, that is fairly simple. To put another image on top of it you are going to be looking at blitting which is very hard to do. You might find libraries to help you with this if you decide to use DirectX.
I know this might sound like a big project for a rookie, but im willing to put alot of time into it, and hope i could make something work!
If you were an expert, and starting from scratch, you could plan to spend about 40 hours a week for 4-6 weeks on a project as simple as this, just to have a working prototype. That doesn't count quest building, tradeskilling, or other common RPG features.

Doog luck.
Feb 8 '08 #2
Thanks for your response and Wow!

Judging from your response i really think this is too big a mouthfull for me after all. I might be better of doing a text-version of the game instead!

Could anyone say how hard text-based c++ RPG's are to create?

Greets Karl
Feb 8 '08 #3
RedSon
5,000 Expert 4TB
Thanks for your response and Wow!

Judging from your response i really think this is too big a mouthfull for me after all. I might be better of doing a text-version of the game instead!

Could anyone say how hard text-based c++ RPG's are to create?

Greets Karl
Are you going to do a classic leisure suit Larry style RPG with verb-noun commands?

Or are you going to do a simple story tree where you read some text and then type in a keyword to continue on?
Feb 8 '08 #4
Studlyami
464 Expert 256MB
If you want to do the 2D RPG look into using a game library for c++ (i like alegro, but some of the other people here have listed another one that i can't remember right now. Also, microsoft has one, but i haven't herd much about it). You can use a tool called Mappy which allows you to create your map or import a bitmap and it will break it down. Seeing how you don't know anything about these libraries it would take quite a bit of research and testing to good the basic idea down, but after you get the hang of it you could put a project together fairly quickly.
Feb 8 '08 #5
Are you going to do a classic leisure suit Larry style RPG with verb-noun commands?

Or are you going to do a simple story tree where you read some text and then type in a keyword to continue on?
I havent made up my mind on that one yet tbh.

I think the simple story tree where i can use some rand. functions to call some actions. But i still have to figure out the best way to make the game completeable... If anyone has a good idea for that do tell :)

**EDIT**

Just thought of an idea! The game itself might be that entertaining when played more than once, but if i could somehow make a map, which would just have to be a static image, and then somehow just make an X ON the map to show the player where he actually is. And then perhaps i could black-out the pieces of the map the player havent discovered yet.
Feb 9 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
1
by: alcueca | last post by:
Hi, I've been programming with python and pygame for a year now, I started a RPG game, did some small toy apps (like exploring mandelbrot set) and an entire End-of-Career project about...
0
by: Rare Book School | last post by:
RARE BOOK SCHOOL (RBS) is pleased to announce its Spring and Summer Sessions 2004, a collection of five-day, non-credit courses on topics concerning rare books, manuscripts, the history of books...
7
by: ashwin2mittal | last post by:
Dear friends, I am looking for help regarding major project ideas in C and C++. This project is a part of the my computer engg curriculum. Kindly help me in finding out the ideas ASAP. ...
8
by: Christan | last post by:
I am currently taking a db course and my class is paired us into groups of 4s and our instructor had us download a template from the microsoft Access site for education to create and modify a...
1
by: Vladimír Kolesnik | last post by:
Hi, there we need help concerning setting project under source control. We want to have a project on the server, and developers in the local network working on this project. We decided to use...
20
by: venkatmail20034u | last post by:
hai to everybody, i desired to do a project in c? if u have idea about what types of problem solved by the c language? and also specify if u have any project title with description please specify...
2
by: Vicissitude24 | last post by:
Our instructor had given us a task to create a four-in-a-row game in C+ +(DEV). I was able to create a 2player human-human game. but unfortunately our instructor added new details. to add an AI...
0
by: Shawn Minisall | last post by:
For my final project, I'm trying to do a GUI based game similar to are you smarter then a 5th grader. I've been working on it and am stuck with some code someone helped me with to randomize the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.