Jump to content
  • Advertisement
Sign in to follow this  
VV0LF

Need help to make a simple game for a school project

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I am new here and most importantly I'm new to game developing. Probably I made a mistake when I told my lecturer that I would make a game for a project. But now what is done is done and the application is written and the project is a very important one so I have to do my best to get a good grade. Now the project is on Turbo Pascal, that is the language I know most, that is the language required. The game I planned consists in a 2D turn-based 'RPG' with very basic graphics and sound. For those who know what I'm talking about a kind of Pokemon Yellow on the GameBoy, you know with the character sprite moving here and there and probabilties of enemies cropping up, that sort of stuff. Now I know Pascal quite well but I never was taught at school (to my great dissappoinment) how to insert basic images (as in tiles for the map) and sounds in a pascal program. I thought it was no problem when I filled in the application, "There'll be loads of info on the net," I said. And in fact as always I didn't just find too many info but even too complicated and numerous for my needs. For starters I just need the basic commands to insert images and sounds and long as I searched (call me dumb) I found nothing so simple. PLUS most of what I found was about Delphi, C and so on, for obvious reasons: Pascal ain't the best for game developing. Well to cut a long story short I am in the S**T up to my nose lool. What I really need is basic help and commands to start making this game. I have planned it in my mind and though of it for long. If anyone can help me, please, and I emphasise PLEASE, do it. Feel free to ask me anything you need to know to help me and I'll asap. Thanks in advance VV0LF - a guy in trouble :p

Share this post


Link to post
Share on other sites
Advertisement
As far as I know, Turbo Pascal is for DOS. I guess it logically has libraries for VGA graphics or something like that, but is it absolutely necessary to write it for Borland's Turbo Pascal compiler? FreePascal, for instance, compiles Extended Pascal(Turbo Pascal) code, but it aims at modern 32-bit operating system such as Win32. As you can see the units include bindings for graphics libraries such as SDL(SDL4Freepascal) which is used heavily in 2D game developing, or OpenGL which is for 3D but can easily be used for making a spectacular-looking 2D game with tons of effects(but I guess this isn't your main concern, so go with SDL).

Share this post


Link to post
Share on other sites
I've seen windows created in Borland Pascal examples (but that was around 7 years ago). I suppose it's just the question of adding the correct libraries. Besides, I thought that Delphi is a kind of evaluated version of Pascal.

Anyway, VV0LF: have you considered the Gamemaker http://www.gamemaker.nl/ and this sort of utilities? I suppose you won't get away with a game but no code?

As far as I'm aware there are some free 2D engines available at http://www.sourceforge.net. I suppose they could speed up things but I doubt any is written in Pascal.

A bit of advice: if I were you I'd consider other type of game than RPG. I'm sure you have thought carefully about every detail of your game but things tend to get very complicated with time as you progress with your game. I found simple games like Snake or Tetris complicated here and there.

If a simple game in C (with the MS windows library though) is an option for you – give me a shout. I can send you some examples of the first game I've ever made. Perhaps basing on its code you can came up with something?

Share this post


Link to post
Share on other sites
"is it absolutely necessary to write it for Borland's Turbo Pascal compiler?" - probably yes but I will check with my lecturer to be sure. We used FreePascal when I was in secondary school and I personally have no idea why in this pre-university school we use TurboPascal (i like FreeP MUCH better).

"Anyway, VV0LF: have you considered the Gamemaker http://www.gamemaker.nl/ and this sort of utilities? I suppose you won't get away with a game but no code?" - now I guess gamemaker.nl is a site that creates games right? Well obviously I can't get away with no code. In fact I don't just need the code but a whole documentation (a very detailed one actually)

"If a simple game in C (with the MS windows library though) is an option for you – give me a shout." - Again I will check with my lecturer if I have to use TurboPas or not. He might accept FreePas but I guess C is out of the question

Share this post


Link to post
Share on other sites
Quote:
Original post by VV0LF
"is it absolutely necessary to write it for Borland's Turbo Pascal compiler?" - probably yes but I will check with my lecturer to be sure. We used FreePascal when I was in secondary school and I personally have no idea why in this pre-university school we use TurboPascal (i like FreeP MUCH better).

"Anyway, VV0LF: have you considered the Gamemaker http://www.gamemaker.nl/ and this sort of utilities? I suppose you won't get away with a game but no code?" - now I guess gamemaker.nl is a site that creates games right? Well obviously I can't get away with no code. In fact I don't just need the code but a whole documentation (a very detailed one actually)

"If a simple game in C (with the MS windows library though) is an option for you – give me a shout." - Again I will check with my lecturer if I have to use TurboPas or not. He might accept FreePas but I guess C is out of the question


If you like free pascal you should give c++ a shot. Free pascal is basically pascal linked with c++ libraries. It is great though.

If you do need I have excellent Turbo Pascal demos and libraries for you. A very nice one for loading sprites and using them

Share this post


Link to post
Share on other sites
Graphics in turbo pascal aint an easy subject. Try the search function on this forum with "pascal vga", that gave me some results.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
for pascal graphics i would suggest asphyxias VGA tutorials, they are a bit old and do use x86 assembly quite heavily, but the graphics library that is included in turbo pascal is really horrible. (and asphyxias tutorials teach you how to make some nice effects aswell).

here is a link to the PCGPE (PC GAme Programmers Encyclopedia)

it contains asphyxias tutorials + a bunch of stuff for joysticks, sound (soundblaster i think), + other useful stuff for DOS gameprogramming with turbo pascal.

(it was what i used to learn game development a million years ago :))

ftp://x2ftp.oulu.fi/pub/msdos/programming/gpe/pcgpe.zip

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
oops , that link doesn't work it seems,

the entire PCGPE is avaliable here though:
http://www.qzx.com/pc-gpe/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!