GLBasic forum

Main forum => GLBasic - en => Topic started by: com_1 on 2009-Nov-10

Title: Hello, People.
Post by: com_1 on 2009-Nov-10
> Google Translate

Hello, People.

I do not have much time for GLBasic.
So I want to ask.
Is someone who has the time and desire to try to build the "pac-man" on GLBasic with me ?
Title: Re: Hello, People.
Post by: Ian Price on 2009-Nov-11
Nobody has much time. The best way to build any program is bit by bit. Don't bite off more than you can chew - what is your current coding experience, as PacMan is actually pretty complex (more than you'd think).

I find my best coding method is to set myself small goals each session, that should be achievable within the given time - even if it's only to get the score showing and updating, or a graphic/sprite up and running (even if it doesn;t obey the final game laws). Once I have completed a goal, I move onto the next, satisfied.

If you need help in any particular area, then just give us a shout, but in all honesty you'll get more pleasure creating a game by yourself (with help), than relying on a member to code the game with/for you.
Title: Re: Hello, People.
Post by: codegit on 2009-Nov-11
Make a start, ask some questions on this forum and you will see that it will all unfold.  ;) Also, explain you experience level and your goal. Are you trying to learn? Or do you honestly not have enough time and you want somebody to help you on a commercial venture?? My point, this is a very helpful community and they will help.  :)
Title: Re: Hello, People.
Post by: Kitty Hello on 2009-Nov-11
com_1 is a very skilled programmer. If anyone is not but a good artist, I would recommend to try this project as a good "apprenticeship"
Title: Re: Hello, People.
Post by: matchy on 2009-Nov-11
Who need graphics when you can build this:  :whistle:

Roomba Pac-Man
http://www.youtube.com/watch?v=7JHtX2JwZAY
Title: Re: Hello, People.
Post by: Moru on 2009-Nov-11
Ugh, why go to such extent to build something you can create with Lego, some legosensors and a computer? :-)

http://www.youtube.com/watch?v=zrjNvU3ap8w (cheating with a non-standard camera)
http://www.youtube.com/watch?v=2B3mhzEUtus&NR=1
Title: Re: Hello, People.
Post by: matchy on 2009-Nov-12
I have the old minstorms and can be fun and useful. Although those videos don't resemble pac-mac movement unlike a micromouse!
Path find this!  :good:
http://www.youtube.com/watch?v=Wa9ZWlc823g
Title: Re: Hello, People.
Post by: com_1 on 2009-Nov-18
> Google Translate

It is unfortunate that no one, neither the time nor the desire, something put together.

I agree - GLBasic, not professional language.
But it can be used to create something.

I suggest to download and watch this:
http://www.file-upload.net/download-2021181/Demo.rar.html

Artificial Intelligence
This is what I have achieved so far with - GLBasic.
Enjoy.

Thanks for language - Gernot.
Title: Re: Hello, People.
Post by: Leginus on 2009-Nov-19
Thats great.  I really like that
Title: Re: Hello, People.
Post by: MrTAToad on 2009-Nov-19
I think its a pretty professional language - after all, its certainly capable of making commercial software.  Yes, it doesn't have the finesse of Visual Studio, but Gernot is but one person.
Title: Re: Hello, People.
Post by: fjsantosb on 2009-Nov-19
Very good pathfinder routine!

King Regards, fjsantos.
Title: Re: Hello, People.
Post by: ynbniar on 2009-Nov-19
Hah coincidence...try mine (test routine for the board game compo, so might be unstable)...

http://rapidshare.com/files/308983334/pathtest.rar

You will see a grid.
One of the sqaures (pink one near the top right) is highlighted with a red square.
Use the number pad arrow keys to move about the board.
Set start location by pressing "1" - location will turn yellow.
Set target location by pressing "2" - location will turn purple.
Press "P" to find path - route will be shown sort of orange colour.

The sort of deep purple tiles are walls and the dark grey tiles are undefined. Only set start and target on orange, green, blue, red, pink and light grey locations or odd things might happen.
The 4 corner and centre blue tiles are teleports.

Escape to quit...the path found is the first path found so might not be shortest route, don't care  :nana:
Title: Re: Hello, People.
Post by: Ian Price on 2009-Nov-19
Sorry, but that demo (COM-1's) is not AI at all. There is no intelligence. It doesn't even use A* or good path-finding code.

There is no such thing as computer AI and never will be.

"AI" is basically the computer following a predetermined algorithm to react to a set of events. If something pops up that isn't pre-programmed it'll get stuck. Which funny, enough happens to the block in the demo sometimes... It's nice, but it's not AI.
Title: Re: Hello, People.
Post by: Hemlos on 2009-Nov-19
Quote from: Ian Price on 2009-Nov-19

There is no such thing as computer AI and never will be.


Neural Networks can be created to always "learn".
In my electronics classes i studied these a little.
Its actually an AI based on microchip boolean logic technology.
After using GLBasic enough, ive figgured out you can emulate this logic using array stacks and IF statements.
One of these days ill put one together.
Title: Re: Hello, People.
Post by: com_1 on 2009-Nov-22
> Google Translate

A question ?
How working "DLL" - in GLBasic.

For example.

Step 1
> while true
> print "Hello, World",10,10;
> showscreen;wend

Step 2
> Press - "Ctrl+8" buttons. (create "DLL")

Step 3
>Call "DLL" - ?

I need your help, please.
Title: Re: Hello, People.
Post by: trucidare on 2009-Nov-22
create functionf to export:
Code (glbasic) Select
FUNCTION Mow: a% b% c%
   RETURN a%+b%+c%
ENDFUNCTION

EXPORT Mow


then Create dll

Import your function to GLB
Code (glbasic) Select

FUNCTION foo:
ENDFUNCTION // To quit the MainGame Sub

INLINE
DECLARE_C("Mow",(int,int,int)DGInt);
ENDINLINE

FUNCTION Imported_Mow: a% b% c%
INLINE
    return Mow(a,b,c);
ENDINLINE
ENDFUNCTION



something like this, cant check have no glb.


Title: Re: Hello, People.
Post by: Kitty Hello on 2009-Nov-23
When you create a dll, there will be a wrapper.gbas file. Use this to call the exported function.
Make sure the dll is in the same directory as the exe when you try to load it.
Title: Re: Hello, People.
Post by: com_1 on 2009-Dec-26
> Google Translate

I want to say thank you(thanks) to all the creators of(for) the language(GLBasic).
Thanks Gernot, was very cool.

My next language - AutoIT
http://www.autoitscript.com/

All thanks.