Recent

Author Topic: Some things i wanna know before i start my console  (Read 8141 times)

captian jaster

  • Guest
Some things i wanna know before i start my console
« on: February 23, 2010, 12:27:08 am »
First, are there some uses codes i should know about?
All i know is
Code: [Select]
CRT,DOS,WINDOWS,SysUtils,ClassesShould i know more?
another thing is how do i know that the color im selecting will work?
Can i get a list of color codes?

This is more of a code request but can i use the
Code: [Select]
const code
and the
Code: [Select]
if code so that depending on what is typed in the text changes color?
Thanxs in advance!
« Last Edit: February 23, 2010, 01:37:25 am by captian jaster »

Bart

  • Hero Member
  • *****
  • Posts: 5702
    • Bart en Mariska's Webstek
Re: Some things i wanna know before i start my console
« Reply #1 on: February 23, 2010, 01:10:17 am »
Do yourself a favour and read some introduction (book or tutorial on the net (I gave you some starting links in a previous post)) on programming in TurboPascal (since you seem to be interested in programming console applications).
(Look for books by Jef Dunteman or Tom Swan, you can bye them for almost nothing in any good second hand bookstore, and they'll be worth every penny you spend on them)

This will answer most of the basic questions you have (and it will teach you how to do structured programming as well).

If you have further questions, please tell us what you want to achieve, show us what you have done (actual code) and at what point you got stuck.
We'll be happy to help.

Bart

captian jaster

  • Guest
Re: Some things i wanna know before i start my console
« Reply #2 on: February 23, 2010, 01:29:07 am »
OK thanks. im already using this website; http://pascalprogramming.byethost15.com
It has worked out well so far! ive also re-wrote my console code without  the Goto codes so thanxs  :) .

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Some things i wanna know before i start my console
« Reply #3 on: February 23, 2010, 08:17:25 am »
Quote
Should i know more?
Even if you're only playing with console it's worth to know other units (Contnrs, DateUtils, etc.). The documentation is your friend.

Also, my suggestion: Drop Crt unit completely (it sucks, though handy in some cases), use Keyboard, Video, and Mouse unit (KVM) instead.

captian jaster

  • Guest
Re: Some things i wanna know before i start my console
« Reply #4 on: February 23, 2010, 04:48:43 pm »
if i drop the crt will i be able to use TextBackground and codes like that?
And thanks!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Some things i wanna know before i start my console
« Reply #5 on: February 26, 2010, 09:56:38 am »
Not as simple as that, you'll need to look for how its implemented in Video unit.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1222
    • Burdjia
Re: Some things i wanna know before i start my console
« Reply #6 on: February 26, 2010, 12:16:41 pm »
I recommend you to not use the units DOS and Windows. DOS is deprecated (use it only to help porting old Turbo Pascal programs) and Windows works on Windows operating system only so you're limiting your applications to that operating system only. There are alternatives on other units (i.e. sysutils).
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018