473,659 Members | 3,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

School project: C++ RPG game.

3 New Member
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 4102
RedSon
5,000 Recognized Expert Expert
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
Karlsen
3 New Member
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 Recognized Expert Expert
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 Recognized Expert Contributor
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
Karlsen
3 New Member
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
6150
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 almost all AP and accelerated classes. I am HIGHLY interested in technology, more specifically the field of Computer Science and software engineering. I have heard a whole lot about the fact that the market for software engineers nowadays is...
1
1297
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 Evolutionary Computing and Natural Algorithms (5000 lines more or less) with this language. I'd like to use this knowledge in some funny way, I'd like to code a good game, maybe some RPG or platform-type, but I don't want to do it alone, neither to start...
0
1345
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 and printing, and special collections to be held at the University of Virginia.   FOR AN APPLICATION FORM and electronic copies of the complete brochure and the RBS Expanded Course Descriptions, providing additional details about the courses...
7
8048
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. Thanks, Ashwin
8
4069
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 database for a made up school. This was our objective as it was from a business asking for our team. St. Marys School is an educational establishment who recently decided to convert from paper to technology. A earlier Database was used by inputing...
1
1596
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 strategy officialy called "Isolated Development". We studied help in Visual Studio .NET called "Web Projects and Source Control Integration in Visual Studio ..NET". First we created solution on machine: A (server), then added a web project to this...
20
1646
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 to me thanks in advance
2
1434
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 and make in in a graphical interface... i really need your help! if there is anyone there who could help me. I dont know how to make a GUI interface and i dont know how to make AI programs. We were not taught about this. although this project
0
1674
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 A,B,C,D letters that the correct answer is assigned too. The code that does this is highlighted in bold and the code that assigns it to a variable is also in bold so I can test it in the console window. Problem is, it's always stuck at letter A...
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8628
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.