RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Sun Oct 10, 2004 3:12 pm    Post subject: Allegro Game Programming Series 1-3 Available [quote]

I've started writing some more articles for my site (and other's sites it seems lately) if you're interested, or just plain curious, go read em on my site.

http://ccps.rpgdx.net <-- main URL

Articles list page direct link:

http://ccps.rpgdx.net/index.php?pageID=articles.php

and for those that are lazy. the articles themselves:

http://ccps.rpgdx.net/index.php?pageID=articles/article_agps_p1.php
http://ccps.rpgdx.net/index.php?pageID=articles/article_agps_p2.php
http://ccps.rpgdx.net/index.php?pageID=articles/article_agps_p3.php

I figure as long as I'm figuring all this stuff out, I should 'document' it so that others don't have to struggle like I have.
Any feedback would be great.
Thanks.
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio


Last edited by DeveloperX on Thu Nov 18, 2004 11:32 pm; edited 1 time in total
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Sun Oct 10, 2004 3:34 pm    Post subject: [quote]

That's not articles, that's example programs... :-)

Btw, you probably don't want to write your paths like that or the program will only ever work on Windows. Allegro is a cross platform library after all.
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Sun Oct 10, 2004 3:37 pm    Post subject: [quote]

Bjørn wrote:
That's not articles, that's example programs... :-)


lol

well, I intend to go back and write explanations for everything..but for now I don't have time.

Hey, at least they work, and they have enough comments to figure it out...
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
Mousie_kebabs
Pretty, Pretty Fairy Princess


Joined: 11 Aug 2005
Posts: 12

PostPosted: Thu Aug 11, 2005 12:58 pm    Post subject: [quote]

Hello.

I was using these articles, and they were great up to article 3... where I had problems. I am using C, Allegro and DJGPP RHIDE to compile, make and build. Well, when I finished writing all the code and fixed some of the errors I had (typing mistakes) I saved the map file, and ran it. When the map loaded it was just a green map with the brick tile in the top left corner (0,0). I checked all the for's and if's and stuff. And I did find some mistakes, but it still did the same thing. The only reason I can think why it does this is because it isn't reading the map file properly. I will have to take a look at that.

But apart from that, they have helped me alot! I only got Allegro installed a few days ago. :D

Mousie.
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Fri Aug 12, 2005 4:30 am    Post subject: [quote]

mousie_kebabs wrote:
Hello.

I was using these articles, and they were great up to article 3... where I had problems. I am using C, Allegro and DJGPP RHIDE to compile, make and build. Well, when I finished writing all the code and fixed some of the errors I had (typing mistakes) I saved the map file, and ran it. When the map loaded it was just a green map with the brick tile in the top left corner (0,0). I checked all the for's and if's and stuff. And I did find some mistakes, but it still did the same thing. The only reason I can think why it does this is because it isn't reading the map file properly. I will have to take a look at that.

But apart from that, they have helped me alot! I only got Allegro installed a few days ago. :D

Mousie.


Glad my stuff helped you out.
About the map rendering incorrectly, I'm sure that you've missed something, somewhere when you copied the code.
I tested the code that is in the article time and time again, even downloading allegro & dev-c++ at client's homes to show them the game development aspect of CCPS.
So, double, and triple check your code, and if you still cannot get it
running, zip your project's files, and email it to ccpsceo@gmail.com

and I will do my best to help you.
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
Mousie_kebabs
Pretty, Pretty Fairy Princess


Joined: 11 Aug 2005
Posts: 12

PostPosted: Fri Aug 12, 2005 6:38 pm    Post subject: [quote]

Wow! That is really good! Instead of reading from test.dat I just loaded the map like in article 2.

If I used Dev-Cpp instead of DJGPP, could that be in a window and not just in a fullscreen DOS program?

Now, I think I will have a play around and make it scroll when the player moves 1 square instead of having to move right to the edge.

Thanks again for helping me out.
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Sat Aug 13, 2005 6:42 am    Post subject: [quote]

mousie_kebabs wrote:
Wow! That is really good! Instead of reading from test.dat I just loaded the map like in article 2.

If I used Dev-Cpp instead of DJGPP, could that be in a window and not just in a fullscreen DOS program?

Now, I think I will have a play around and make it scroll when the player moves 1 square instead of having to move right to the edge.

Thanks again for helping me out.


Dev-C++ is highly recommended for Allegro.
DJGPP is much out-of-date, and doesn't support writing windowed applications. Get Dev-C++ and you will not be disappointed.

Oh, and yes, it will run as a windowed program. :D
Peace.
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
DrV
Wandering Minstrel


Joined: 15 Apr 2003
Posts: 148
Location: Midwest US

PostPosted: Sat Aug 13, 2005 7:54 pm    Post subject: [quote]

DJGPP is almost always updated for new releases of gcc and other GNU tools before mingw... not sure how that could be called 'out-of-date'.
_________________
Don't ask no stupid questions and I won't send you away.
If you want to talk fishing, well, I guess that'll be okay.
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Sat Aug 13, 2005 9:52 pm    Post subject: [quote]

DrV wrote:
DJGPP is almost always updated for new releases of gcc and other GNU tools before mingw... not sure how that could be called 'out-of-date'.


oops, wrong choice of words.

You are correct, DJGPP is not out of date, its just not recommended for
people who are running windows... well, at least in my opinion. ;)
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
white_wolf
Pretty, Pretty Fairy Princess


Joined: 13 Nov 2006
Posts: 10

PostPosted: Mon Nov 13, 2006 11:19 pm    Post subject: [quote]

DeveloperX,
I'm also trying to check out your articles and they seem to be very helpful. However, I'd like to compile and play around with the code instead of just reading it.

I don't know how to save the map as a 2d array in Mappy like you did (i.e. map[][]). Can you please help with this? I see the .mar option, and when I choose it, it saves as an Access shortcut. When I double-click it, nothing, just Access opens and that's it.

p.s. I realize this is a really old thread; but I desperately need help with that part.

EDIT:
Also, are there any downloadable files to go with these tutorials? Part 3 provided a link but it's a broken one?
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Sun Dec 10, 2006 8:06 am    Post subject: [quote]

white_wolf wrote:
DeveloperX,
I'm also trying to check out your articles and they seem to be very helpful. However, I'd like to compile and play around with the code instead of just reading it.

I don't know how to save the map as a 2d array in Mappy like you did (i.e. map[][]). Can you please help with this? I see the .mar option, and when I choose it, it saves as an Access shortcut. When I double-click it, nothing, just Access opens and that's it.

p.s. I realize this is a really old thread; but I desperately need help with that part.

EDIT:
Also, are there any downloadable files to go with these tutorials? Part 3 provided a link but it's a broken one?


Woah...never realized that the links were broken....
I'll fix them up asap.

I didn't use Mappy for the articles. I used a handmade map....
If you are ever looking for a fast reply, contact me via email at ccpsceo@gmail.com

I usually reply within 24 hours via email. I do not remember to check these forums as much as I would want...heh, damn memory is failing at such an early age... too much mountain dew I guess :P

Okay, I'm going to go fix up the articles, add downloadable projects (dev-cpp project & and gcc makefile based) because I see now that I should. :)
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum