DrawTXT.exe graphic animations to run on console and create your 2D games

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

DrawTXT.exe graphic animations to run on console and create your 2D games

#1 Post by DQ2000 » 23 Oct 2019 10:59

text drawing or as DrawTXT :o

flat text graphics engine. in a simple way to run and create silver games shapes, first versions.
For more information visit this link where I leave the files needed to play with it and you believe great things. :lol:

Motor Grafico de Pixeles 2D | 2D Pixel Graphic Engine
#################################################################
LINK: http://www.mediafire.com/file/jqey5t1pd ... T.rar/file #
#################################################################


Motor Grafico de Pixeles 2D y 3D | 2D and 3D Pixel Graphic Engine
#####################################################
Link: https://github.com/DEQ2000-cyber/PixelDrawTXT.git #
#####################################################

for questions, help and some recommendations for the project later, send me a message to the contact:danieldechingolo@outlook.es | danaielhacker555@gmail.com
Last edited by DQ2000 on 27 Dec 2019 18:58, edited 1 time in total.

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#2 Post by DQ2000 » 25 Oct 2019 11:46

the updates will be in the rar file to / zip of the first page

To create the sprite you must use the color palette provided by CMD "color /?"
EXAMPLE:
eeee
ecce
ecce
eeee
__________________
save it as .txt

in the rar file of the download contains some examples and how it works in detail.
greetings to all :D :D

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#3 Post by DQ2000 » 29 Nov 2019 20:18

NEW UPDATES!

new graphics functions were added

USAGE:

PixelDrawTXT.exe [P.x] [P.y] [B.x] [B.y] [F.bool] [F.c] [F.Dc]
Estos Ptimeros Parametros Deben Ser 'RELLENADOS'
********************************************************

P.Bx posicion inicial en [X] del buffer. : podra mover/desplazar el buffer por completo en coordenada [X].
P.BY posicion inicial en [X] del buffer. : podra mover/desplazar el buffer por completo en coordenada [Y].
B.x el tamanio del buffer en [X]. : para el mejor tamanio ponga 14.
B.y el tamanio del buffer en [Y]. : para el mejor tamanio ponga 8.
F.bool activar el fondo. : ACTIVADO = [1] DESACTIVADO = [0], esta activacion de fondo se usa con [F.bool].
F.c color del fondo. : establece un COLOR para el fondo.
F.Dc brillo de color del fondo : disminuye o aumenta el brillo de los colores.
si no quiere cambiarlos por defecto ponga 0.

###############################################################################################################

LINEA [X1] [Y1] [X2] [Y2] [Grosor] [Color]
CIRCULO [X] [Y] [Radio] [Grosor] [Color]
CIRCULOF [X] [Y] [Radio] [Color]
ELIPSE [X1] [Y1] [X2] [Y2] [Grosor] [Color]
ELIPSEF [X1] [Y1] [X2] [Y2] [Color]
TEXTO ['Texto'] [X] [Y] [Color]
RECTANGULO [X1] [Y1] [X2] [Y2] [Grosor] [Color]
RECTANGULOF [X1] [Y1] [X2] [Y2] [Color]
POLYTRIANGULO [X1] [Y1] [X2] [Y2] [X3] [Y3] [Grosor] [Color]
POLYTRIANGULOF [X1] [Y1] [X2] [Y2] [X3] [Y3] [Color]
POLYCUADRADO [X1] [Y1] [X2] [Y2] [X3] [Y3] [X4] [Y4] [Grosor] [Color]
POLYCUADRADOF [X1] [Y1] [X2] [Y2] [X3] [Y3] [X4] [Y4] [Color]

###############################################################################################################

SPRITE [
SPRITE hoja del dibujo !DRAW! acepta cualquier extencion. : si el nombre de su
sprite contiene un separador/space en cierrelo con parentesis.
P.Ax pixeles en ancho [X] size. : podra deformar y escalar en [X].
P.Ay pixeles en altura [Y] size. : podra deformar y escalar en [Y].
X.p posicion en X. : coordenada en [X] del dibujo.
Y.p posicion en Y. : coordenada en [Y] del dibujo.
C.d brillo de color. : disminuye o aumenta el brillo de los colores. si no quiere cambiarlos por defecto ponga 0.
M.d dibujar [SI]/[NO] : mostrar Draw/Dibujo/Sprite 1=[SI] 0=[NO].
]
---------------------------------------------------------------------------------------------------------------
Last edited by DQ2000 on 29 Nov 2019 20:46, edited 1 time in total.

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#4 Post by DQ2000 » 29 Nov 2019 20:45

END OF PROJECT.......

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#5 Post by carlos » 22 Dec 2019 10:33

Hello @DQ2000, I found this is a nice project related to the goal of write small games using batch.

You use an easy of undertand encoding of the image to character, one color character for be used with a "block character". But if you not use a font of 1x1 is possible use a combination of other characters where you choose a different color for the background and the foreground, resulting visually in other "color" not used in the 16 color palette (technique used in the tool bit8img by kkziomek). The previous is useful for cmd prior windows 10, but since windows 10 is possible use a 24 bit colors using the escape sequences.

I think that for handle graphics for a batch game the best is not rely that to external console applications, because you are opening and close process of the same executable image many times by seconds.
Also I think that the best approach is not use the characters for draw images. because for emulate the pixel size you need choose a font of 1x1 and that is a lot of memory.
Is better use batch as the controller and draw the graphics using gdi. But batch can be still slow.
Last edited by carlos on 22 Dec 2019 21:08, edited 3 times in total.

misol101
Posts: 475
Joined: 02 May 2016 18:20

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#6 Post by misol101 » 22 Dec 2019 18:48

Just a word of caution: I found that without a client/server setup similar to what darkbox and cmdgfx uses, it is quite hard to achieve a consistent frame rate in a Batch game across different computers (at least when using external programs such as bg,cmdgfx,this)

Of course, if the game is not an ”action game” (where high FPS and consistent frame rate is essential), then it is much less important.

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#7 Post by DQ2000 » 23 Dec 2019 20:55

Hi guys, I have closed the updates on this file because nobody is interested. Misol moved me a lot and wanted to follow him.
The graphics used by GDI is pure GDI and the pixel output is not 8 * 8. I only configure that.

They can adjust the pixels of any size:
"Sprite.txt" [PixelX] [PixelY] [Center] [PositionX] [PositionY] [Opaque Colors]

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#8 Post by DQ2000 » 23 Dec 2019 21:09

Sintítulo2.png
pixels :D
Sintítulo2.png (8.08 KiB) Viewed 30450 times

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#9 Post by DQ2000 » 28 Dec 2019 14:10

Hi. add new updates and new version of DrawTXT.exe is now called PixelDrawTXT.exe.


The updates are:
1x1 pixel circles
and circles in 8x8
in ascii format
but really they are still pixels.

this takes
point / circles / trangles / ECT ....

when you start the PixelDrawTXT without parameters it will give you explanations of its use ...
It also has option for images ".BMP"
and asked by "carlos" that sprites have no rgb values ​​of colors in their pixels.
add an extension of

....... SpriteRGB "sprite1.txt" "color palette.txt" 8 8 1 45 78 1 1

##################################################################################
Download: https://github.com/DEQ2000-cyber/PixelDrawTXT
##################################################################################

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#10 Post by DQ2000 » 02 Jan 2020 15:00

New commands!
Attachments
Sin título3.png
Sin título3.png (16.29 KiB) Viewed 30167 times

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#11 Post by DQ2000 » 06 Jan 2020 09:14

Game Simple Batch/Lotes ZELDA!
pixel mode graphic, and 8x8 ascii mode graphics.
Game-Zelda.png
Programe zelda coding game :)
Game-Zelda.png (138.57 KiB) Viewed 30088 times
now with 'BMP' images, key detection with its own Errorlevel output.

#############################################################

PixelDrawTXT-v3.exe
USAGE:

NOTA: Para mas Ayuda Pase por parametros help [argumentos]

[pixelP] [linea] [circulo] [circuloF] [elipse] [elipseF] [text]
[rectangulo] [rectanguloF] [polyrectangulo] [polyrectanguloF]
[Polytriangulo] [polytrianguloF]

PixelDrawTXT-v3.exe [P.x] [P.y] [B.x] [B.y] [F.bool] [F.c] [F.Dc]

#****************************************************************************************************************************#
# #
# P.BY posicion inicial en [X] del buffer. : podra mover/desplazar el buffer por completo en coordenada [Y]. #
# P.Bx posicion inicial en [X] del buffer. : podra mover/desplazar el buffer por completo en coordenada [X]. #
# B.x el tamanio del buffer en [X]. : para el mejor tamanio ponga 14. #
# B.y el tamanio del buffer en [Y]. : para el mejor tamanio ponga 8. #
# F.bool activar el fondo. : ACTIVADO - 1 DESACTIVADO - 0, esta activacion de fondo se usa con [F.c]. #
# F.c color del fondo. : establece un COLOR para el fondo. #
# F.Dc brillo de color del fondo : disminuye o aumenta el brillo de los colores. #
# si no quiere cambiarlos por defecto ponga 0. #
# #
##############################################################################################################################
# #
# PIXEL [X] [Y] [Color] #
# PIXELP [X] [Y] [Grosor] [Color] #
# LINEA [X1] [Y1] [X2] [Y2] [Grosor] [Color] #
# CIRCULO [X] [Y] [Radio] [Grosor] [Color] #
# CIRCULOF [X] [Y] [Radio] [Color] #
# CIRCULOTXT [X] [Y] [Radio] [Color] #
# CIRCULOFTXT [X] [Y] [Radio] [Color] #
# ELIPSE [X1] [Y1] [X2] [Y2] [Grosor] [Color] #
# ELIPSEF [X1] [Y1] [X2] [Y2] [Color] #
# ELIPSETXT [X1] [Y1] [X2] [Y2] [Color] #
# ELIPSEFTXT [X1] [Y1] [X2] [Y2] [Color] #
# TEXTO ['Texto'] [X] [Y] [ColorF] [ColorB/transparent] #
# RECTANGULO [X1] [Y1] [X2] [Y2] [Grosor] [Color] #
# RECTANGULOF [X1] [Y1] [X2] [Y2] [Color] #
# POLYRECTANGULO [X1] [Y1] [X2] [Y2] [X3] [Y3] [X4] [Y4] [Grosor] [Color] #
# POLYRECTANGULOF [X1] [Y1] [X2] [Y2] [X3] [Y3] [X4] [Y4] [Color] #
# POLYTRINAGULO [X1] [Y1] [X2] [Y2] [X3] [Y3] [Grosor] [Color] #
# POLYTRINAGULOF [X1] [Y1] [X2] [Y2] [X3] [Y3] [Color] #
# IMAGEN [X1] [Y1] [x2] [Y2] [Sprite.bmp] #
# #
##############################################################################################################################
# SPRITE [Sprite.txt] [P.Ax] [P.Ay] [Mostrar en Centro[0]/[1]] [X.p] [Y.p] [Brillo[0]/[....]] [M.d[0]/[1]] #
# SPRITE hoja del dibujo !DRAW! acepta extencion .dq . : si el nombre de su. #
# P.Ax pixeles en ancho [X] size. : podra deformar y escalar en [X]. #
# P.Ay pixeles en altura [Y] size. : podra deformar y escalar en [Y]. #
# M.c Mostar el Dibujo en modo Centro sobre su eje X , Y. [SI]/[NO] 1=[SI] 0=[NO]. #
# X.p posicion en X. : coordenada en [X] del dibujo. #
# Y.p posicion en Y. : coordenada en [Y] del dibujo. #
# C.d brillo de color. : disminuye o aumenta el brillo de los colores. si no quiere cambiarlos por defecto ponga 0. #
# M.d dibujar [SI]/[NO] : mostrar Draw/Dibujo/Sprite 1=[SI] 0=[NO]. #
# -------------------------------------------------------------------------------------------------------------------------- #
# SPRITE [Sprite.txt] [PalColor] [P.Ax] [P.Ay] [Mostrar en Centro[0]/[1]] [X.p] [Y.p] [Brillo[0]/[....]] #
# [M.d[0]/[1]] #
# SPRITE hoja del dibujo !DRAW! acepta extencion .dq . : si el nombre de su. #
# PALCOLOR Paleta de [Color] Remplaza los [Colores] de la paleta de [Colores] 0....9, A......Z. concolor [R,G,B] #
# sprite contiene un separador/space en cierrelo con parentesis. #
# P.Ax pixeles en ancho [X] size. : podra deformar y escalar en [X]. #
# P.Ay pixeles en altura [Y] size. : podra deformar y escalar en [Y]. #
# M.c Mostar el Dibujo en modo Centro sobre su eje X , Y. [SI]/[NO] 1=[SI] 0=[NO]. #
# X.p posicion en X. : coordenada en [X] del dibujo. #
# Y.p posicion en Y. : coordenada en [Y] del dibujo. #
# C.d brillo de color. : disminuye o aumenta el brillo de los colores. si no quiere cambiarlos por defecto ponga 0. #
# M.d dibujar [SI]/[NO] : mostrar Draw/Dibujo/Sprite 1=[SI] 0=[NO]. #
# sprite contiene un separador/space en cierrelo con parentesis. #
# #
# #
# #
# #
##############################################################################################################################

misol101
Posts: 475
Joined: 02 May 2016 18:20

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#12 Post by misol101 » 06 Jan 2020 10:42

I am pleased to see you have taken over this madness.

Finally I can retire in peace :mrgreen:

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#13 Post by DQ2000 » 08 Jan 2020 17:15

New update in server mode.
and some new commands

new repository ------> https://github.com/DEQ2000-cyber/PixelDrawTXT-S-V3
Video_1579241815.gif
Video_1579241815.gif (68.53 KiB) Viewed 29730 times
Sin título5.png
Sin título5.png (41.19 KiB) Viewed 29730 times

DQ2000
Posts: 38
Joined: 07 Aug 2019 17:26

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#14 Post by DQ2000 » 19 Jan 2020 22:12

new version but in english graphics engine.

for people who speak english :D :D :D :lol:
Link: ----------------> https://github.com/DEQ2000-cyber/PixelD ... V3-English
PixelDrawTXT-S-V3.png
Versions English
PixelDrawTXT-S-V3.png (67.43 KiB) Viewed 29657 times

shodan
Posts: 89
Joined: 01 May 2023 01:49

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

#15 Post by shodan » 18 Sep 2023 19:47

This is cool, is the source available ?

I'd like to make fancier menus than ascii menus sometimes, this would be great for that !

Post Reply