ascii graphics
ascii graphics
is it possible to add graphics into an ascii game if so how
- {Nathan}
- Veteran
- Posts: 1169
- Joined: Thu Aug 19, 2004 6:08 pm
- Location: The wetlands of central Ohio, USA
- Contact:
Your answers can be answered very well (but sometimes rather slowly) at www.pure-text.com. Come on, join! We need some... err... life...
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
In a true Text Mode (SCREEN0) you can't have pixel graphics as textmodes does'nt allow adressing individual pixels at all. So you need to build graphics from the available characters. There are editors for them, check for the newest as Rattrapmax's, as the older ones encode its output for an ANSI terminal (and would require you to program a decoder).
You can too set a graphics mode as SCREEN 12, that will allow you to output text and pixel graphics at the same time.
You can too set a graphics mode as SCREEN 12, that will allow you to output text and pixel graphics at the same time.
Code: Select all
screen 12
defsng a-z
view print 20 to 27
line (0,0)-(639,300),1,BF
line (100,50)-(540,200),0,BF
do
r% = (r% + 1) AND 15
FOR y% = 1 TO 99
y1% = ((1190 \ y% + r%) AND 15)
y2 = 6 / y%
FOR x% = 100 TO 540
PSET (x%, y% + 100), CINT((319 - x%) * y2) AND 15 XOR y1%
NEXT x%,y%
f%=(f%+1)mod 5: if F%=0 then color int(rnd*16): print "blah"
loop until len(inkey$)
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
That was made in FreeBasic,. the normal output won't work in QBasic since it's 32bit colour..Antoni wrote:There are editors for them, check for the newest as Rattrapmax's,
Tho, it is a nice example:
http://members.aol.com/rattrapmax6/myproggies/APPL1.zip
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
Btw: A texmode demos place http://taat.fi/tmdc/