Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - en / Re: The power of GLBasic !
« Last post by Snoopy on Today at 04:40 pm »
Quote from: Moru
..The reason the big guys don't use BASIC as a language is largely because of the (undeservedly) bad reputation it has.

Absolutely, but I think that has really changed in recent years (at least I hope so).

kirkdev, personally, and I think it's the same for others, we almost never use GOTO, only when we do not want to get tired  ;)
By the way, kirkdev, I see you're new, so I welcome you!  :booze:

MrPlow, I allowed myself to put a link to your article (you say if it bothers you).
https://blog.usejournal.com/why-80s-basic-still-matters-1c17de5768fa
2
Competitions / Re: GLBasic Contest 02: 2D Art
« Last post by Snoopy on Today at 04:05 pm »
You can have a professional level without being a professional.
In fact, I was talking about your work in general, not just this program. For example, your particle engine was really good.
But if you prefer me to say that you are an average programmer, ok no problem  =D  ;)

I will try to do something (I like the concurence friendly). The code of WPShadow is simpler but the optical effect is nice (and according to the rules of the contest, the complexity doesn't matter this time).

Ps : Since I really rediscover the interactions between GLB and C, Gernot is not only for me a very good programmer, but my living god :nw:  :)
3
GETTIMERALL() te da la hora en microsegundos desde el inicio del programa. Para saber el tiempo en un intervalo, solo tienes que restar los dos valores y convertirlo a la unidad que quieras (segundos, minutos, horas, ...).

Code: GLBasic [Select]

 timstart = GETTIMERALL()

 // codigo de tu juego aquí...
 timend = GETTIMERALL()
 interval = (timend - timstart)*1000

 PRINT "Tiempo transcurrido: "+ interval + " segs", 0,0
 SHOWSCREEN
 
4
GLBasic - en / Re: The power of GLBasic !
« Last post by MrPlow on Yesterday at 09:45 pm »
I agree - I wrote a medium article on BASIC, but specially on older 80s BASIC...etc. etc.
But same applies - people forgetting that BASIC is where it started for a lot of coders.
I really enjoy using GLB

5
Hm, und wie macht ihr das mit den grafiken? Skalieren auf auflösung? Gewisser bereich fest und der rest irgendein hintergrundbild? Mehrere grafiken für unterschiedliche auflösungen?
Gibt ja kein stretch-alles-gezeigte-auf-auflösung-befehl.
6
Hi,

benutz hier einfach den Befehl

Code: GLBasic [Select]
GETDESKTOPSIZE

Der liefert dir die Auflösung zurück. Anschließend kannst du mit

Code: GLBasic [Select]
SETSCREEN

die Auflösung anpassen.
7
Helllau.
Ich hab glbasic schon eine weile, hab sogar vor über 10 jahren mal ein kleines spiel damit geschrieben.
Würd nach der langen Zeit gerne mal wieder was programmieren. Jetzt hab ich früher aber für die Pandora geschrieben, da konnt ich die auflösung eingeben. Jetzt würd ich gern was für androids machen, hab noch nie mit variablen auflösungen geschrieben.
Kann mir da jemand eine gute herangehensweise erklären?
Möglichst simpel, hab glbasic ja schon längers nicht mehr genutzt :/
8
GLBasic - en / Re: The power of GLBasic !
« Last post by kirkdev on Yesterday at 10:02 am »
I agree GLBasic is alot of fun. I can why it would have a bad reputation with features such as GOTO. Most languages adapt but BASIC seems to remain static in design. Removing GOTO and updating types to work similar to c++ structs would increase program design while keeping its simplicity.
9
GLBasic - en / Re: The power of GLBasic !
« Last post by Moru on Yesterday at 09:01 am »
Yes, GLBasic is great! The reason the big guys don't use BASIC as a language is largely because of the (undeservedly) bad reputation it has.
10
Competitions / Re: GLBasic Contest 02: 2D Art
« Last post by Hemlos on Yesterday at 04:27 am »
I'm not a pro, but i have read a few books.
And to give credit where it's due, Gernot was a huge influence on my thirst for math.
I'm looking forward to more entries!

About the program, it was simply really.
It was a benchtest program to show what the function DrawStar() could do.
DrawStar was a brainstorm, as you can see in the remarks of the function showing a progression of the idea.
All the effects, are a result of using several combinations and configurations of this function:
Code: GLBasic [Select]
DrawStar(x%, y%, Color#, NumberOfPoints%, TextureID%, Rotate#, Depth#)

Pages: [1] 2 3 ... 10