473,326 Members | 2,010 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,326 software developers and data experts.

c++ rpg

so, im in this project in school on c++, and it wa easy for me to team up with a buddy and select this project to be an rpg game
and i have some issues, were using borland turboc++ to program and i canot seem to insert bitmaps in the project nor know how to insert bitmaps or any image format into c++.

if anyone can be so kind to tell me or to show me a link to a tutorial, thank you so much

im still a newbie. I know this is a lame question.

even worse, the game must be developed within a month...
May 4 '07 #1
11 2548
ilikepython
844 Expert 512MB
so, im in this project in school on c++, and it wa easy for me to team up with a buddy and select this project to be an rpg game
and i have some issues, were using borland turboc++ to program and i canot seem to insert bitmaps in the project nor know how to insert bitmaps or any image format into c++.

if anyone can be so kind to tell me or to show me a link to a tutorial, thank you so much

im still a newbie. I know this is a lame question.

even worse, the game must be developed within a month...
Hi,
Are you using a library like SDL or Allegro? Libraries give you access to the hardware like sound, graphics, keyboard etc...
If not then what do you think you will make your game with.
May 4 '07 #2
AdrianH
1,251 Expert 1GB
I wrote to another here showing how to use the BGI library. Perhaps it will help you.

I know very little about Borland's environment. It has been years since I've used it. But I'll try and help if I can.


Adrian
May 4 '07 #3
thank you ivbe been reading a lot about this.
i can also try using the borland 5.5 compiler and textpad if you have used it before, but cannot get to integrate the compiler to textpad, anyways
winbgi seems promesing, so far using the graphics.h in borland turbo c++ is an older version of this winbgi

and the most prommesing function in my needs would be "readmiagefile()"
still reading, and will try to apply this library in either textpad or turboc, which i dont know if textpad will support the graphmode... further test and practice needed...

if you have played " final fantasy adventure" for GB classic, thats kinda the game were making. and I'm really relying in insertin bitmaps into the project
any good tutorials in this, or any liibrary would be good, thank you very very much
May 6 '07 #4
AdrianH
1,251 Expert 1GB
thank you ivbe been reading a lot about this.
i can also try using the borland 5.5 compiler and textpad if you have used it before, but cannot get to integrate the compiler to textpad, anyways
winbgi seems promesing, so far using the graphics.h in borland turbo c++ is an older version of this winbgi

and the most prommesing function in my needs would be "readmiagefile()"
still reading, and will try to apply this library in either textpad or turboc, which i dont know if textpad will support the graphmode... further test and practice needed...

if you have played " final fantasy adventure" for GB classic, thats kinda the game were making. and I'm really relying in insertin bitmaps into the project
any good tutorials in this, or any liibrary would be good, thank you very very much
Hmmm, textpad. I've not used that in a while. Make sure that the path to your compiler is added to your PATH environment variable or that you specify the complete path to the compiler inside of textpad. If there are any spaces, in your path, you may need to use double quotes to ensure that the name is not broken up. i.e. "c:\My spaced out path\c++.exe"

As for tutorials, I don't know of any off hand. Try searching for them using your favourite search engine online.

Good luck,


Adrian
May 6 '07 #5
ok, so far... i found this old software called bmp2bgi, ever heard of it, basicly i insert a bmp and will convert it to .BGI

so far good, but yet another question appears.

now how do i use this bgi file, in tc++ the bmp2bgi was developed for tc++v1.0
and as im using v3.0 i supose there shouldnt be an issue on compatibility

maybe im wrong,but i would need to insert this bgi image into the tc++ so i can display it as an image

im still researching though im not just waiting for answers, cus i know theese questions look very lame
May 6 '07 #6
AdrianH
1,251 Expert 1GB
ok, so far... i found this old software called bmp2bgi, ever heard of it, basicly i insert a bmp and will convert it to .BGI

so far good, but yet another question appears.

now how do i use this bgi file, in tc++ the bmp2bgi was developed for tc++v1.0
and as im using v3.0 i supose there shouldnt be an issue on compatibility

maybe im wrong,but i would need to insert this bgi image into the tc++ so i can display it as an image

im still researching though im not just waiting for answers, cus i know theese questions look very lame
No, the questions you are asking are not lame, just ones that I may not know the answer to. ;)

I've not used Borland's compiler for a while and the Borland's environment for even longer. BGI just means to me Borland Graphic Interface and that is as far as it goes.

I would assume backwards compatibility of any library unless it states or proves otherwise.

When you say that you want to insert the image into the TC++, do you want to do this so that you can view/edit the file like the MSVC++ environment does with .BMP and .CUR files? That sounds reasonable, but as I've said before, it’s been a long time and they didn't have it when I was using the text interface (don't know the version).

Good luck and let me know how it goes, I would be interested.


Adrian
May 7 '07 #7
thnk you all for your information so far.

here are my updates in this thingy

bgi images... couldn't figure out how to display them, so i kept looking and i found this easy to use BITMAP.H header, problem solved now i can display them in my program i may be adding later on a link s you can see my crappy work getting some shape...

now for the next riddle and this may be a little more ambitious, but will be done..
audio... either in midi, mp3 or wav I'm researching how to include it and play it,
might as well find a "wav.h" as easy to use as this bitmap.h...

research is still on, and the more i progress the more questions pop up, which makes this really interesting, fun ad at the same time stresssful which at some point is good...

if you ppl know of any audio header that could help thank you all

keep on taking visits around so you can keep a track of my progress

anyways within 3 weeks i need to finish this project, might as well not finish a 100% of the game but will make at least 2 levels fully operative
May 7 '07 #8
AdrianH
1,251 Expert 1GB
Is this application to be done under windows? If so, why not use the Win32 API?


Adrian
May 7 '07 #9
mostly because iv'e been using tc++ since the beggining of semester, and its the only IDE i've used somewhat deeply, and the big fact that we only have 2 weeks left for development

hehe... s ive said, will keep workin in this, though. even after i present a small short version of the game.
May 8 '07 #10
well this has a conclusion, the game, even though tons of bugs, it works, it starts it ends, it was a succes, concidered by all of my fellow clamates the hardest poject, me and my project partner were, unsatisfied with the teachers expresionless silence while reviewing the game

it still has much more to go, but it was a c++ 1 semestrer project, so its functional life has eexplired, thank you forthose that took the time to post any information or even to take the time to read my freaking out
thnk you and have a nice day
Jul 13 '07 #11
AdrianH
1,251 Expert 1GB
well this has a conclusion, the game, even though tons of bugs, it works, it starts it ends, it was a succes, concidered by all of my fellow clamates the hardest poject, me and my project partner were, unsatisfied with the teachers expresionless silence while reviewing the game

it still has much more to go, but it was a c++ 1 semestrer project, so its functional life has eexplired, thank you forthose that took the time to post any information or even to take the time to read my freaking out
thnk you and have a nice day
Glad to hear your success. Keep on coding. ;)


Adrian
Jul 13 '07 #12

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.