Developer's diary

Started by SplinterGU, October 19, 2008, 01:05:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

handsource-dyko

So, it should be easier this way, since the gnu tools are native part of linux. Gcc seems quite alien on windows. It was made for unix like
enviornments. On linux pretty much everything seems to be in place by most distributions, but on windows you need mingw. To me, gnu tools and windows seem like to be "incompatible worlds" to each other. I've read that there's some project sponsered by apple and google to replace gcc by some bsd licensed thing. It's apperantly more modern than gnu. :D

SplinterGU

but, is a bit complex configure the mingw32 linux...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

Quote from: handsource-dyko on September 13, 2011, 12:46:33 PM
So, it should be easier this way, since the gnu tools are native part of linux. Gcc seems quite alien on windows. It was made for unix like
enviornments. On linux pretty much everything seems to be in place by most distributions, but on windows you need mingw. To me, gnu tools and windows seem like to be "incompatible worlds" to each other. I've read that there's some project sponsered by apple and google to replace gcc by some bsd licensed thing. It's apperantly more modern than gnu. :D
Once you've set up the dependencies, cross compiling should be a matter of running the script and it should be just as easy in windows as it is in linux provided you're using something like msys in win.

What apple is sponsoring is a different compiler. It can also be used to compile bennu, but yoy'd still have to set up the dependencies, which is the hard part.

I'd like to set up a page on the wiki onsetting up the system for cross compiling, when I find some free time.

SplinterGU

- Add new functions
WRITE*(fontid, x, y, z, alignm, ...)
SET_TEXT_COLOR(textid, color)
GET_TEXT_COLOR(textid)
MOVE_TEXT(textid, x, y, z)

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU


- compiler improved, now can possible mix overload functions with V++
  and others params, but it must get diffent params count, pe.:

  "IIIIV++"

  and

  "IIIIIV++"

  and

  "IIIIIII"

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

code sample


import "mod_text";
import "mod_mouse";
import "mod_key";
import "mod_video";
import "mod_rand";
import "mod_map";

private
    txt[10];
    counter;
    tz;
begin
    set_mode(640,480,32);

    txt[0]=write_int(0,10,10,10,0,&counter);
    txt[1]=write_int(0,10,20,-5,0,&tz);
    txt[2]=write(0,10,10,0,0,"hello world");

    set_text_color(txt[1], rgb(255,0,0));


    while(!key(_ESC))

        counter++;

        move_text(txt[2], mouse.x, mouse.y, tz );

        set_text_color(txt[0], rand(0101010h, 0ffffffh));

        if ( key( _DOWN ) ) tz--; end
        if ( key( _UP ) ) tz++; end

        frame;
    end
end


use the mouse for move the "hello world" text, and use UP and DOWN for change Z of this text.
you can move it over the other 2 texts, that are in differents Z.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

handsource-dyko

Quote from: SplinterGU on February 25, 2012, 04:03:42 AM

- compiler improved, now can possible mix overload functions with V++
  and others params, but it must get diffent params count, pe.:

  "IIIIV++"

  and

  "IIIIIV++"

  and

  "IIIIIII"



Ehhh.... What is function overloading exactly? Could you be a bit more specific?

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

- better map render with small size_x and/or size_y.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

- new internal lib for background load
- fix bgload fpg & others
- add new backgound load functions
LOAD_MAP(filename, &id)
LOAD_PNG(filename, &id)
LOAD_PCX(filename, &id)
LOAD_SONG(filename, &id)
LOAD_WAV(filename, &id)
LOAD_PAL(filename, &id)
LOAD_FNT(filename, &id)
LOAD_BDF(filename, &id)
MAP_LOAD(filename, &id)
PNG_LOAD(filename, &id)
PCX_LOAD(filename, &id)
SONG_LOAD(filename, &id)
WAV_LOAD(filename, &id)
PAL_LOAD(filename, &id)
FNT_LOAD(filename, &id)
BDF_LOAD(filename, &id)
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

#70
Jeje, vuelves a la carga, ¿eh?.


==========


[Ups! Edit] You're back in track, right?

SplinterGU

:)

liberando la lista de pendientes... y pensando en algunas otras cosas...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

KeoH

Quote from: SplinterGU on February 28, 2012, 11:24:49 PM
:)

liberando la lista de pendientes... y pensando en algunas otras cosas...


Perfect ... un dia de estos nos tienes q contar cuales son tus ideas del desarrollo de Bennu a medio y largo plazo xDD Karma .. esto es algo estupendo para los q estamos experimentando con juegos bennu en fullHD (1920x1080) :)

SplinterGU

I can't...

I must keep new feature in secret until I can release them...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

- now if set_mode fail return -1, else return 0
Download Lastest BennuGD Release: http://www.bennugd.org/node/2