BASIC

Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - de / Re: Regedit
« Last post by D2O on Yesterday at 02:35 pm »
Jepp, genau.
Aber ich habe das jetzt mal versucht, aber irgendwie geht das nicht über die cmd?
Fehlt vieleicht noch ein Parameter??

Die erstellte Datei ändert meine Farbei einstellung in der GLB IDE

Aber ACHTUNG!! immer eine sicherung der Regestrie anlegen.
Nur das ausführen über die  Shellcmd will noch nicht so.

Code: GLBasic [Select]
OPENFILE (0,"meyreg1.reg",FALSE)

WRITELINE 0,"Windows Registry Editor Version 5.00"
WRITELINE 0,""
WRITELINE 0,"[HKEY_CURRENT_USER"+CHR$(92)+"Software"+CHR$(92)+"Dream_Design"+CHR$(92)+"GLBasic"+CHR$(92)+"Colors]"
WRITELINE 0,CHR$(34)+"WHITESPACE"+CHR$(34)+"=dword:00daf5f8"
WRITELINE 0,CHR$(34)+"BKGND"+CHR$(34)+"=dword:00daf5f8"
WRITELINE 0,CHR$(34)+"NORMALTEXT"+CHR$(34)+"=dword:00000000"
WRITELINE 0,CHR$(34)+"SELMARGIN"+CHR$(34)+"=dword:00c0c0c0"
WRITELINE 0,CHR$(34)+"SELBKGND"+CHR$(34)+"=dword:00808080"
WRITELINE 0,CHR$(34)+"SELTEXT"+CHR$(34)+"=dword:00000000"
WRITELINE 0,CHR$(34)+"KEYWORD"+CHR$(34)+"=dword:00ff0000"
WRITELINE 0,CHR$(34)+"COMMENT"+CHR$(34)+"=dword:00808080"
WRITELINE 0,CHR$(34)+"USERKEYWORD"+CHR$(34)+"=dword:00808080"
WRITELINE 0,CHR$(34)+"OPERATOR"+CHR$(34)+"=dword:008080ff"
WRITELINE 0,CHR$(34)+"STRING"+CHR$(34)+"=dword:00008000"
WRITELINE 0,CHR$(34)+"INLINEBKG"+CHR$(34)+"=dword:00c0c0c0"


CLOSEFILE 0


 // SHELLCMD("cmd /C:/Users/fabbi/Dokumente/GLBasic/Registrie_1/Registrie__.app > myreg1.reg", TRUE, FALSE, rv)
   SHELLCMD("C:/Windows/regedit.exe > C:/Users/fabbi/Dokumente/GLBasic/Registrie_1/Registrie__.app/myreg1.reg", TRUE, FALSE, rv)

END
2
GLBasic - de / Re: Regedit
« Last post by Worebu on Yesterday at 01:32 pm »
Sowas hab ich mir auch schon gedacht, das Quasi unter CMD zu machen.
3
GLBasic - de / Re: Regedit
« Last post by D2O on Yesterday at 01:27 pm »
Hallo WOREBU

ich bin mir jetzt nicht sicher ob das GLB direkt kann, aber vieleicht könnte man eine *.reg datei erstellen und diese dann ausführen.
Ich geh mal das testen.
4
GLBasic - de / Regedit
« Last post by Worebu on 2018-Jul-21 »
Einen wunderschönen Guten Abend da draußen.

Besteht die Möglichkeit mit GLBasic etwas in die Registry zu schreiben?
5
Announcements / Re: Red Wizard Island
« Last post by r0ber7 on 2018-Jul-21 »
It's something how Youtube videos are tagged here on forum, in Opera I had to disable ad blocking and allow 'dangerous' content to be shown  :D
You can always check html source of that post to get direct link or hit 'inspect element' in browser.
Game is looking good, I know that this could be a lot of additional work but it would be nice to see cooperative gameplay option, plug two gamepads and play with friend, or even some versus mode.

Thanks for the heads up, I hope the video is working for everyone now. I won't be doing co-op, sorry. Development of the levels, camera and so on would have to change and there is plenty of work without adding extra features now.

What would be the thing you think is most interesting about this game? :)
6
Announcements / Re: Burguer stuff
« Last post by dreamerman on 2018-Jul-20 »
hm.. XBox game pad should be same as others joupads to check.
but if it will help you here it goes, Xbox 360 Wireless controler checked with joystick2.gbas from 'samples'
GETDIGIX() GETDIGIY() -> DPad / directional digital pad -> left x=-1, right=1, up y=-1, down y=1
GETJOYX() GETJOYY() -> left/main analog stick -> same stuff, max left value =-1, max right value =1...
GETJOYRX() GETJOYRY() -> same as above for right analog stick
GETJOYBUTTON(jpad, but) -> buttons: 0-A, 1-B, 2-X, 3-Y, 4-left bumper, 5-right bumper, 6-back, 7-start, 8-left stick click, 9-right stick click,
GETDIGIZ() -> 0-neutral, -1 -> left trigger pressed, 1 -> right trigger pressed
I've checked also JOYSTATE command and must say that using it isn't good idea.
If you need any futher info fell free to ask ;]
7
GLBasic - en / Re: Polyvector query
« Last post by MrPlow on 2018-Jul-19 »
Hi
The sprite is the virtual screen sprite.
Wasn't aware of a -1 value for the polyvector and it works for all my other sprite renders...I think I am just missing something small...
I didn't sort it I just left it as it was before at 0 screen position.

Maybe you're correct? I will check out your suggestion. :)
8
GLBasic - en / Re: Polyvector query
« Last post by dreamerman on 2018-Jul-19 »
You probably figured it out but topic remains open so I will try to help :p
shx is same for source and destination coords? that source sprite is some kind of sprite atlas or you trying to render it as a one sprite?
Didn't play with GLBasic for some time but shouldn't those right/bottom coordinates be basex-1 and basey-1?
If your sprite is 960px width and 600px height then first pixel is 0x0, last is 959x599, wasn't it that way or I forgot something? hm..
I assume that if you are drawing with smoothing disabled it can just cut those left/top border pixels.
9
Announcements / Re: Asteroids Vector Game
« Last post by dreamerman on 2018-Jul-19 »
new modes 2 & 3 are brighter and they looks better in my opinion that first mode.
Only one issue that I have are hitboxes for gui elements, sometimes when playing it's hard to hit rotation/shoot button. You are using rect or circle based checking for that? I've checked with scriber and if you touch buttons inside them but near edge it doesn't detect that, you need to touch little closer to center of them, at least on my phone.
10
Announcements / Re: Red Wizard Island
« Last post by dreamerman on 2018-Jul-19 »
It's something how Youtube videos are tagged here on forum, in Opera I had to disable ad blocking and allow 'dangerous' content to be shown  :D
You can always check html source of that post to get direct link or hit 'inspect element' in browser.
Game is looking good, I know that this could be a lot of additional work but it would be nice to see cooperative gameplay option, plug two gamepads and play with friend, or even some versus mode.
Pages: [1] 2 3 ... 10