BASIC

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aroldo

Pages: [1] 2 3 ... 10
1
Off Topic / 8080 Arcade Emulator
« on: 2016-Feb-07 »
Hello GLBASIC community,I just want to invite you to try my 8080 Arcade Emulator http://apd-games.com/emulator.html and see my my new app for iOS and Android DEFENDER 1 http://apd-games.com/.

2
Announcements / Re: GLBasic V11 public beta
« on: 2013-Oct-11 »
Gernot,

  :nw: Dankeschön !!!! for the new Beta V11.559 and for your hard work. I downloaded and compiled one of  my games, Brick Buster http://www.apd-games.com ,  on Windows XP , it works fine but I have to test it further , so far so good.

today I will generate iOS and WebOS and let you know the results.

3
GLBasic - en / Re: GLBasic Road Map
« on: 2013-Aug-12 »
This discussion is healthy but I still insist in having some visibility of what is coming and when?
I called road Map, because that is what I use for product development including software.

spacefractal gave the idea of  open source were more people could collaborate in testing, fixing bug and developing
new features. I think this is a great idea.

I would like to hear from Gernot him self what he thinks of the above ideas.

4
Very nice!

Are you using sprite or polyvectors?

5
GLBasic - en / Re: GLBasic Road Map
« on: 2013-Aug-07 »
Mrplant,

I agree, so perhaps there are 2 road maps, one for fixing existing issues and another for the new features.


6
GLBasic - en / GLBasic Road Map
« on: 2013-Aug-07 »
Gernot and GLBasic developer team,

What are the plans for the future of GLBasic?

Last year you presented some screen shots about the new GUI of what could be the new GLBasic IDE (Integrated Development Environment).
Since that time things happened (hard disk crash) that had delayed or changed the enhancement of this great development tool.

I would like to know if you can publish a road map, a list of features that we can look for.

I have been analyzing other development platforms Shiva, Corona, Monkey and Unity, I like Unity but the cost does not justify the investment.
I am studding a lot and I am building my own physics library, so having the road map I can plan better the time I am investing on GLB.

Thank you,

7
GLBasic - en / Re: Passing Optional Parameters
« on: 2013-Aug-06 »
Thank you

8
Thank you for the info,  I just purchased 2 books:

  • Programming CookBook IV - GLBasic Routines
  • Programming Cookbook

9
GLBasic - en / Passing Optional Parameters
« on: 2013-Aug-06 »
Is it possible to have optional parameters in FUNCTIONS?


For instance in the example below z may be optional.

Code: GLBasic [Select]
FUNCTION object: x, y, z (as optional)
        .
        .
        .
ENDFUNCTION

10
Thank you spicypixel and erico,

For float I did this:

Code: GLBasic [Select]
LOCAL r# = (RND(20)*0.1)-1 // Genereates random numbers from -0.9 to 0.9

11
This sounds silly but how can I usee the RND function to generate a random number between -1 and 1? Instead of 0-1?

12
Nice to know about your books.

I have a question does the Programming CookBook IV includes all the material of I , II and III?

Also where can I see the table of contents of you book or some excerpt of them?

13
MrTAToad,

Thank you! :nw:
It works very nice and now I don't have to rely on GLOBAL variables!

The GLBasic documentation is not up to date and if you read it it doesn't tells you how to return TYPES. I thought the same way that OCEAN said
Quote
Posted by: Ocean
« on: Today at 10:48 am » Insert Quote
do you really need to return 'v1', as such objects are passed by reference anyway?
It took me a while to find out that I could do classes using TYPES and functions inside TYPES.
More over I did not know the existence of self. inside a Function and neither that we could declare the return type on the function signature like you did.
Quote
FUNCTION subv2 AS TObject:

This definitely will help me to use the inheritance and make my code cleaner.

I can contribute and help the GLBasic team updating for instance the documentation on the TYPE topic.

Let me know if you do.

14
GLBasic - en / Returning Type generates errors
« on: 2013-Aug-03 »
I am trying to return a type from a function inside the Type, I am getting this error:
Quote
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.9.829 SN:b4f5b7db - 3D, NET
"Vectors1-10.gbas"(207) error : wrong argument type :

The compiler points to the last line in the code saying the error is there.

I get this error on both GLB V10.xxx and V11.
Searching the forum I found this post from Slydog that say we can return a type,
here is my code.

Code: GLBasic [Select]
http://www.glbasic.com/forum/index.php?topic=8048.msg67541#msg67541

This is what I trying to accoumplish, the code below is in JAVASCRIPT
Code: GLBasic [Select]
PVector mouse = new PVector(mouseX,mouseY);
PVector dir = PVector.sub(mouse,location);

I am using the Type as a class.
Code: GLBasic [Select]
TYPE TObject
        x#
        y#
        z#
        FUNCTION set: x, y
                self.x = x
                self.y = y
        ENDFUNCTION
        FUNCTION add: v AS TObject
            self.x = self.x + v.x
            self.y = self.y + v.y
    ENDFUNCTION
    FUNCTION subv: v AS TObject
            self.x = self.x - v.x
            self.y = self.y - v.y
    ENDFUNCTION
    FUNCTION subv2: v1 AS TObject, v2 AS TObject
            v1.x = v1.x - v2.x
            v1.y = v1.y - v2.y
           RETURN v1 /// <====== THIS GENERATES THE ERROR
    ENDFUNCTION
ENDTYPE

15
Alex_R

Take a llok at this code, he is using a particle like system with STARTPOLY
http://www.glbasic.com/forum/index.php?topic=4251.msg54989#msg54989

Pages: [1] 2 3 ... 10