PDA

View Full Version : Pixilang - programming for fun


NightRadio
04-05-2007, 01:13 AM
Hello all!

Lets introduce you my new project - Pixilang v1.0 pixel-oriented programming language. This is a simple programming language for small graphics/sound applications. Great tool for creative people like a designers, painters, demosceners or some other inquisitive persons :) Any pixilang programs keeps in a simple TXT-files, so anybody can edit it in his lovely text-editor. Pixilang interpreter works on different operation systems (Windows, Linux, PalmOS) and distibuted under GNU GPL license. It's fun and beautiful.

http://www.warmplace.ru/soft/pixilang/pixilang01.jpg http://www.warmplace.ru/soft/pixilang/pixilang04.jpg

Main features:
* easy syntax and small amount of commands;
* universal containers (pixi) using for text/gfx storage;
* pixel graphics describing in a source TXT-files directly (using ASCII symbols);
* transparency (simple and with alpha-channel);
* simple commands for rotation and resize;
* no floating point math operations - only 32bit integers are using;
* playing music in MOD and XM formats (using PsyTexx engine);
* loading GIF (animated) and JPG file formats;
* realtime export to GIF;

Official homepage:
http://www.warmplace.ru/soft/pixilang/index.php

Documentation:
http://en.wikibooks.org/wiki/Pixilang

Join us!
Waiting for comments and suggestions :)

phreakonaleash
04-05-2007, 02:07 PM
Will windoze code work on PalmOs, or are changes necessiray?

Will download tonight and check. Looks pretty cool from what i can tella tm!

NightRadio
04-05-2007, 08:37 PM
Code of Pixilang-program can work on any OS without any changes :)

palmuse
04-05-2007, 10:48 PM
I loaded the 16 bit app on my TX. It crashes everytime I launch.

Tested the windows version. Looks cool. I would like to see it on my TX if it will work.

Thanks.

NightRadio
04-05-2007, 11:34 PM
8 bit version is not working too?
Please, mail me nightradio@gmail.com. I want to fix this problem.

phreakonaleash
04-06-2007, 10:32 AM
i can't figure out the palmos interperator. all it does is blank the screen approx 1sec and goes to the launcher... How to run the examples?

phreakonaleash
04-08-2007, 10:38 PM
OK, /me is confused...
has ANYONE, ANYONE got the app running???

I install it and appearantly te archive is corrupted or in the wrong soemthing or other, because the icon crashes the launcher, Resco Explorer, etc... Bird crashes when i try to break open the form resource

NightRadio, could you perhaps put it in a zip archive in case it is MobileRAR destroying the file? Then mail it to me or upload it on your site?

I really would love to get this working!

ALT: What are the dependancies of the source?

palmuse
04-08-2007, 10:57 PM
OK, /me is confused...
has ANYONE, ANYONE got the app running???

PhreakOnALeash~ I have not had any success yet either. My TX actually soft resets (not just the launcher). I have tried three versions via email. Haven't heard much in the last couple of days. I do not think my testing has added a lot to help NightRadio.

I also would love to see this work. Looks like fun and relatively simple to program.

Sounds like you might understand the programming side more than me. The different result on your device seems interesting.

Hopfully we'll hear back soon.

phreakonaleash
04-09-2007, 01:44 PM
NightRadio, could you perhaps put it in a zip archive in case it is MobileRAR destroying the file? Then mail it to me or upload it on your site?

unRAR for windoze will open it. MobileRAR crapped all the rars i had so... :rolleyes: i can email you a zip tonight palmuse...

Nightradio: This is a nice little app! Will get some of my own scripts and gifs up here soon possibly...

alt236
04-09-2007, 04:02 PM
Hmm... it works fine for me when I unrar it from windows.
I didn't hotsync it though, I copied it from my SD card (it might make a difference?)

It's a tad slow, but fun :)

palmuse
04-09-2007, 11:30 PM
unRAR for windoze will open it. MobileRAR crapped all the rars i had so... :rolleyes: i can email you a zip tonight palmuse...

PhreakOnALeash~ I would appreciate that. I have been using ZipGenius to uncompress. Maybe it is corrupting the prc. If you have a working copy, I would like to try it. palmuse_at_comcast_dot_net Thanks! :D

NightRadio
04-10-2007, 04:17 AM
Sorry. Next version will be in ZIP :)

phreakonaleash
04-10-2007, 11:37 AM
Ok... Here goes:

It worked for approximately three hours after I posted then inexplicably died...

I see the words 'SUNDOG STARTER APP apr3'. The app soft resets about an a half second later...

Could I make a suggestion?
Either use Pruss's Diagnoser (http://www.1src.com/freeware/fileinfo.php?id=1653) or use a method similar to dkirker's earlier debugging fo Universe3 in which a sequence fo numbers are written to the screen with a delay to see what the number is, then we can find where it dies...

I would LOVE to get this consistently working so i can get to work on making some nice gfx fun...

..oh yeah: any chance of adding pdoc/memo support? and after that, reacting to sysAppLaunchCmdOpenDB so that users can set the launchable bit (in Resco Explorer, filez, etc) so that they can be launched and opened from the launcher? please??? :-D

sorry for the flood.

@palmuse: having large mail problems atm... will send asap.

alt236
09-06-2007, 06:18 PM
Hey guys, there is a new version out:
(v1.1)
http://www.freewarepalm.com/utilities/pixilang.shtml

NightRadio
09-08-2007, 12:48 AM
yea :) I waiting for comments and suggestions about v1.1.
thanks!

floobydoo2000
09-30-2007, 09:04 PM
Hi All,
I've been playing around in pixilang for the last 3 weeks seeing what it can do. I have a couple of questions, the main one is about GIF files. I wanted to try to save something produced in pixilang that had over 256 colours in it and save it to a gif file without losing colour information. I'm working on a Palm, but the concept is the same on Windows. I took an image and created a pixi container three times the original image's size. One section held the red colour info, another the green and the last section the blue data. I also converted all colour data to red. Thus, I always only need a palete that has 256 distinct colours in it at most. What I did looked good. However, when I saved to a gif file I got a surprise. What showed on my screen didn't show up in the gif file. Colour data was lost. This happened on my Windows machine as well. The colour count dropped to 8 in the gif file. Everything I remember seeing about gif files is that it holds a palete of 256 colours, one for each frame of an animation if need be. What happened to the other 248 colours?

I have a question about the documentation as well. I tried to make some minor changes yesterday. These were gone today. I wouldn't mind editing the manual while what I've learned so far is fresh. Does anyone know what went wrong?

My last question is about examples. There are lots of excellent examples with the distribution. However, I have a couple that might be interesting to some. There are good commands for rotating around a 3D axis. Currently,there is a shortcomming with this. You cannot rotate a 3D object since you can only specify the x and y coordinates, but not the z coordinate. I took some code writen in C that draws a 3D object on a screen an allows you to rotate around the object (i.e. move the view point around the object) and converted it to pixilang. I also have a program to draw a circle. This circle can also be turned into an ellipse by using the built-in 3D rotation commands. So, how and where can I post these? Is it even possible without your own website?

Thanks
Mike

NightRadio
11-07-2007, 12:55 PM
Hello all!

Please, check out the new Pixilang release 1.2!
Download page: http://www.warmplace.ru/soft/pixilang/index.php

What's new:
* WindowsCE port;
* fixed bug with crashing on a large programs;
* improved safety of program execution;
* fixed some bugs with color computations;
* added high quality export to GIF (with local palette); use video_export_hq(1) to enable it;
* optimized pixi drawing;
* added functions for handling hardware keys: handle_hard_keys() and get_hard_key();
* now alternative (and more correct) name for handle_keys() is handle_pen_keys();
* added speed optimization for working with arrays;
* added functions for working with streaming sound;
* added command line support; example of using: "pixilang.exe prog.txt";
* added functions for working with binary files (fopen, fclose, fgetc, fputc, fseek, ftell, feof);
* added function for virtual TAR-disk selection; Example: set_disk0( "archive.tar" ) img = load_pixi( "0:/PIC.JPG" );
* added function effector(COLOR,POWER,TYPE,X,Y,XSIZE,YSIZE,XADD) for some internal pixilang effects: NOISE,VBLUR,HBLUR;
* added function pixi_triangle for textured triangle drawing.

http://www.warmplace.ru/soft/pixilang/pixilang_v1.2_02.gif
http://www.warmplace.ru/soft/pixilang/pixilang_v1.2_01.gif

phreakonaleash
11-09-2007, 12:49 PM
Looks cool, and I'd be playing with it now, but I don't have a TX.. :-(

NightRadio
01-02-2008, 01:31 AM
Pixilang v1.3 is out.
What's new:
* added commands for video-export to AVI file; at the moment working in Windows only;
* added command resume_video_export();
* parameters of t_translate() changed to fixed point (1.0 = 256);
* fixed bug with pixi-sound playing;
* internal structure optimization;
* fixed bugs with print() command;
* changed priority of math operations;
* added new construction: while( .. ) { .. };
* increased precision of delay in frame() command;
* changed pixi-image sound playing in stereo mode: now red is right channel and green is left channel;
* added functions for drawing array of 3D-triangles: triangles3d(), pixi_triangles3d, sort_triangles;
* new functions: t_get_matrix(), t_set_matrix(), t_mul_matrix(), t_get_x(), t_get_y(), t_get_z();
* added software Pixel Shaders (version PS1);
* added two options in config file: noborder and windowname;
* new command: exit() - exit to OS; exit(1) - exit to OS with exit-code 1;
* new command: noesc(1) - no exit on ESC; noesc(0) - exit on ESC;
* fixed bug with negative frame numbers;
* now during pixi-program compilation virtual disk0 defined to the file "data.tar"; so you can include TXT files from disk0 (INCLUDE "0:/blabla.txt");
* removed zoom() command (please, use scaled pixi instead).

Download page (versions for Linux, Windows, PalmOS, WinCE, docs, sources, examples): http://www.warmplace.ru/soft/pixilang/index.php

phreakonaleash
01-02-2008, 06:23 PM
Thunks night radio!

NightRadio
02-03-2008, 10:10 AM
Pixilang v1.4 released!
Download page: http://www.warmplace.ru/soft/pixilang/index.php

Changelog:
fixed bug with hard button release (in the handle_hard_keys command);
fixed bug with negative pixel size in the pixi() command;
fixed bug with alpha channel in 8/16 bit modes;
fixed bug with timers in the Linux;
fixed bug with GIF export;
now you can write a "$$" string (double dollar) for print the "$" symbol, when print() command using;
license of main Pixilang files changed to BSD;
added support of SunVox music (SunVox editor is under construction now) - small, powerfull crossplatform synth music format, developed by Alex Zolotov;
Linux and PalmOS versions compiled on GCC 4.2.2; WindowsCE - on GCC 4.1.0;
improved PalmOS ARM loader;
fixed bug with sound on WindowsCE.

phreakonaleash
02-04-2008, 10:15 AM
* now during pixi-program compilation virtual disk0 defined to the file "data.tar"; so you can include TXT files from disk0 (INCLUDE "0:/blabla.txt");
Can this be done in PalmOS version?

NightRadio
02-05-2008, 11:56 PM
Of course. Just put data.tar file to folder with your pixi-program.

phreakonaleash
02-06-2008, 09:18 AM
Thanks Alexander!

NightRadio
02-17-2008, 08:40 AM
One more small release - Pixilang 1.41.

What is new:
* added region clipping in frame(delay,clip_x,clip_y,clip_xsize,clip_ysize) command;
* added new command file_dialog(filename,dialogname,mask,id).

Download page: http://www.warmplace.ru/soft/pixilang/

NightRadio
03-23-2008, 02:22 AM
Pixilang v1.5 released.
What is new:
* added support of the SDL library on Linux;
* added support of fullscreen direct draw access on PalmOS;
* optimized code for direct drawing (SDL, DirectX, OpenGL, GAPI...);
* fixed bugs with bitmap drawing on Windows Mobile;
* fixed bug with pixi-loading after file_dialog();
* speed optimization;
* many bugs fixed.

Download page: http://www.warmplace.ru/soft/pixilang/index.php