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 - WPShadow

Pages: [1] 2 3 ... 106
1
Competitions / Re: Hello World - Contest
« on: 2019-Mar-14 »
Here is my little code... Hope you like it  =D

Code: GLBasic [Select]
main()

FUNCTION main:

        PRINT getOutput$("a547b28e9c95036c97e1369efc64d7216b9af46ed24e5cbcb6d81c6984d3c1f4f5b5e31aff81c6261cae7d0bab45346d76910dbfc04691c8fc0a8b46ab9a8c14127fc443ec71175cdf24375f8d71780f"), 0, 0

        SHOWSCREEN
       
        KEYWAIT
       
        END
       
ENDFUNCTION

FUNCTION getOutput$: info$
LOCAL decrypted$, binaryLines$[], loop, pos, sum, digit, output$

        DIM binaryLines$[11]

        // String decryption
        decrypted$ = DECRYPT$("GlbasicRocks", info$)

        // Here I'm spliting the whole binary string into 11 parts of 7 "letters"
        FOR loop = 0 TO 10
               
                binaryLines$[loop] = MID$(decrypted$, 0 + (loop * 7), 7)
               
        NEXT

        // A little binary check
        FOREACH b$ IN binaryLines$[]
       
                sum = 0
       
                FOR pos = 0 TO 6
                       
                        // converts binary in decimal
                        digit = MID$(b$, pos, 1)
                       
                        IF digit = 1 AND pos = 0 THEN INC sum, 64
                        IF digit = 1 AND pos = 1 THEN INC sum, 32
                        IF digit = 1 AND pos = 2 THEN INC sum, 16
                        IF digit = 1 AND pos = 3 THEN INC sum, 8
                        IF digit = 1 AND pos = 4 THEN INC sum, 4
                        IF digit = 1 AND pos = 5 THEN INC sum, 2
                        IF digit = 1 AND pos = 6 THEN INC sum, 1

                NEXT
               
                // and decimal to ascii
                output$ = output$ + CHR$(sum)
               
        NEXT

        RETURN output$ 

ENDFUNCTION
 

2
Competitions / Re: Hello World - Contest
« on: 2019-Mar-13 »
Awesome! I'm still working on my version...  :D

3
Competitions / Hello World - Contest
« on: 2019-Mar-12 »
Hi,

it's time for a new contest and it's time for a little action in the forum.

Here we go:



Definition

Write a hello world program in GLBasic as complicated as possible!!!

Rules

  • Write the whole program only in GLBasic
  • no third party libraries
  • Don't use unnecessary code lines (like 1000 loops)
  • Don't copy from an already published code

Goal

The output on the screen is black and it says "Hello World" and that's it. No Action, no fancy backgrounds, only a black screen with a few nice letters.  =D

Submission

Just post your code here in a codeblock, so everybody can study your awesome work.

Winner

This is a fun contest and there is nothing to win... Nevertheless, together we can choose a winner...



Good luck and have fun.

4
GLBasic - de / Re: Valentines Destroyer
« on: 2018-Feb-19 »
at the moment you only can upgrade the "time" of the wizard spawns.

If you change the heroTimerAdd from

heroTimerAdd = 5000

to

heroTimerAdd = 50

then you can finish the game in arround 1 minute.

It was only a small project without a good idea!  :D

5
GLBasic - de / Valentines Destroyer
« on: 2018-Feb-14 »
Hi,

ja, mir war langweilig, also hab ich ein kleines Projekt gebastelt. Also heute Vormittag...

Ist ein kleiner Idler für den Valentinstag, incl. Siegesbedingung und Upgrademöglichkeit.

Der Code liegt dabei, falls jemand daran weiter basteln möchte.

Viel Spaß und einen schönen Valentinstag euch allen.  :booze:

LG

W.

6
GLBasic - en / Re: GLBasic and RaspberryPi
« on: 2017-Jul-17 »
not really. I guess you are right.

I should set "AUTOPAUSE FALSE", perhaps that could fix the problem.

I also will test an other thing I found in an other forum:

Quote
Set the "Lines" mode to "full" (screen) and the video mode to "full" or "refresh" to play video full screen and not inside the window. These settings can be pre-configured. The window covers the whole screen and contact to keyboard commands cannot be lost.

With this two changes it should work

7
GLBasic - en / Re: GLBasic and RaspberryPi
« on: 2017-Jul-17 »
atm I use POLYVECTOR.

That isn't my biggest issue.

The bigger problem is, that I try to fix the focus. I start the program on the linux desktop (raspbian). Now I can see the program running, but the input is still on the desktop. So I try to move the mouse but I'm starting things in the background. The program is fullscreen but the input isn't there.

And atm I'm not able to start it via console because I've troubles with the touchscreen input in the console.  :D

8
GLBasic - en / Re: GLBasic and RaspberryPi
« on: 2017-Jul-16 »
I've got big troubles with GLBasic on Raspbian.

The fullscreen window is losing focus, so the input is running in the background, it isn't possible to us the PRINT - command, because the positioning isn't working, so every single text is in the upper left corner, the texts are yellow and changing their colors, drawrect isn't working and if it works (50% chance) the colors are inverted...

I'm not sure if I'm possible to finish a bigger project with all this troubles.

9
GLBasic - de / Re: Verzögerung Input
« on: 2017-Jul-11 »
Dann kann ich es wohl auf den Editor beschränken.

Sobald dieser offen ist (unabhängig ob Debug Modus an oder nicht) verzögert sich die Eingabe.

Scheinbar funktioniert das Endprodukt dann dennoch.

Damit kann ich leben. Danke dir!

10
GLBasic - en / Re: GLBasic and RaspberryPi
« on: 2017-Jul-10 »
Here is the first screenshot

It will take a few days to make more, but at the moment this works fine

11
GLBasic - en / Re: GLBasic and RaspberryPi
« on: 2017-Jul-10 »
I fixed the problem.

There was an driver issue and also a problem with the media path. Now it works.

I try to make an mobile tamagotchi for my girlfriend. Battery pack, a raspberry pi 3 b and a 3.5" tft and it works now.


12
GLBasic - en / GLBasic and RaspberryPi
« on: 2017-Jul-10 »
Hi,

I'm working on a little program for my girlfriend, so I built up a Raspberry PI with a 3.5" TFT.

Now I tried to start the software but I only get a yellow display (the background should be white) on the Raspberry.

Pictures are not working, text is working.

Do you have any experience with something like this?

W.

13
GLBasic - de / Re: Verzögerung Input
« on: 2017-Jul-10 »
Hi,

könnt ihr euch das bitte mal ansehen? Ich hab euch mal das File meines aktuellen Projekts angehängt.

Ich habe bei der Keyboard - Eingabe Verzögerungen.

Sobald ich auf eine Taste drücke, bewegt sich die Map mit bis zu einer halben Sekunde Verzögerung.

Aktuell sind die Tasten W & S, F1 und F2 eingebunden.

Das selbe gilt für alle anderen Tasten incl. ESC.

LG

W.

14
GLBasic - de / Re: Verzögerung Input
« on: 2017-Jul-05 »
Hat sich gerade erledigt. Es dürfte ein kleiner Bug sein, der mit der FPS - Rate zusammen hängt.

Stelle ich max. Framerate auf -1 läuft der Input wieder korrekt.

Ich lasse das mal hier stehen, falls noch jemand den Fehler haben sollte.

15
GLBasic - de / Verzögerung Input
« on: 2017-Jul-05 »
Hi,

hat jemand ähnliche Probleme mit Input  - Verzögerungen wie ich?

Teilweise dauert die Reaktion auf einen Tastendruck bis zu einer Sekunde.

Gilt allgemein, auch für ESC oder normale KEY() - Abfragen.

LG

W.

PS.: bevor jemand fragt --> ich hab das selbe Phänomen auf 3 Rechnern  =D

Pages: [1] 2 3 ... 106