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.


Topics - Kitty Hello

Pages: 1 2 3 [4] 5 6 ... 37
46
Hi,

find the attached 2 files. Place the .mm file in your xcode project. Drag it into the "classes" folder in XCode then.


Include the gbas file into your project. Then, first, see if the service is available. If so, do the posting. You can either post text, url or an image.

Tadaaa.

The rotation might not be correct. Pardon me.

47
2D-snippets / Drawing rainbow colour cycles
« on: 2013-Mar-23 »
Code: GLBasic [Select]
        DIM pix%[256]
        FOR i=0 TO 255
                LOCAL r,g,b
                r = 0.5 + SIN( i    /255 * 360.)/2.0
                g = 0.5 + SIN((i+85)/255 * 360.)/2.0
                b = 0.5 + SIN((i+170)/255 * 360.)/2.0
                pix[i] = RGB(r*255, g*255, b*255) + 0xff000000
        NEXT
        MEM2SPRITE(pix%[], 1, 256,1)
        STRETCHSPRITE 1, 0,150, 256,32
 

Totally non-optimized code. But you can use the texture later, which is OK.
I use it to track the colour bugs in the RaspberryPi setup...

48
Yes, finally it's been approved. The first non-coding game maker for your iPad with the shiny new user interface.

https://itunes.apple.com/us/app/gaming-app-construction-kit/id504890211?mt=8

Get it while it's stil hot.

49
Feedback / Updates to come...
« on: 2013-Feb-06 »
Hi, I'll use this thread for the updates to com. Starting with Feb, 2013:
<a href="http://www.youtube.com/watch?v=IPRLusTYtsY" target="_blank">http://www.youtube.com/watch?v=IPRLusTYtsY</a>

50
GLBasic - en / iOS image picker (photos)
« on: 2013-Jan-26 »
Howdy, has anyone got an native iPhone image picker wrapped?
I could really use one.

51
GLBasic - en / SDL2 screen offset
« on: 2013-Jan-14 »
Howdy,

I've ported to SDL2 now, but in portrait, the opengl window on android is shifted towards the bottom. The touches are proper coords. Any ideas?

52
GLBasic - en / comment in AndoirManifest.xml
« on: 2012-Dec-26 »
Hi,

how can I make a comment in this file? I want to comment the lines:
Code: GLBasic [Select]
<!-- android:screenOrientation="sensor"  android:configChanges="orientation|keyboardHidden" -->
 
but I get compiler errors.

53
Howdy,

the HTML5 port is getting into shape. I found some bugs and have a working demo now. See attached file.
Next step is to pack the resources from the Media directory into the html and then compress the output with a gzip option. But it's all no big problem anymore I guess.

It's a bit slow on my Opera browser. Maybe it's Opera, maybe another bug. It's using WebGL, btw.

One tiny bitter pill is there to swallow, though. The structured programming of GLBasic will have to be changed for HTML5. There's no way to write code like:
Code: GLBasic [Select]
WHILE TRUE
   PRINT "X", 0,0
   SHOWSCREEN
 
for JavaScript. It would lock the browser and that would kill the script soon.

So, GLBasic (V11) already supports a new mechanism for this (cross platform, of course).
The key is the GLB_ON_LOOP sub, and the command SETLOOPSUB, that are new.

Here's the HTML5 example attached as code:
Code: GLBasic [Select]
LIMITFPS 60
STDOUT "In main game now\n"
GLOBAL stary%[]
DIM stary%[300]
FOREACH y IN stary[]
        y = -RND(400)
NEXT

// SETLOOPSUB "GLB_ON_LOOP" // - GLBasic V11 calls this at the END of "main"

STDOUT "finishing the main loop now\n"


@SUB GLB_ON_LOOP: // this is called by the framework after the "main" init module
        LOCAL spd% = 0, x% = 0
        FOREACH y IN stary[]
                spd = BAND(spd+1, 3)
                INC y, spd+1
                PRINT "*", x, y
                IF y>400 THEN y=-32
                INC x
        NEXT

        PRINT "Merry Christmas, HoHoHo", 32,(1+SIN(GETTIMERALL()/10.)) * 64+60

        SHOWSCREEN

ENDSUB
 




[attachment deleted by admin]

54
Hi,

I'm going insane. I have to make the popups work in IE-7 mode. Can someone try to help me?
The text of the table is somehow hovering above my popup. In IE8 it seems fixed, but with <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> this bug can be reproduced.

HTML
Code: GLBasic [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>

        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <!-- IE8 or later - z-index problems with IE6! -->

        <link href="servicecenter.css" title="fideslic" rel="stylesheet" type="text/css">

        <script type="text/javascript">

                var gMenuText = Array();
                var gMenuId = Array();
                var gTotHtml = "";

                function clearmenu() {
                        gTotHtml = "";
                        gMenuText = [];
                        gMenuId = [];
                }

                function addmenu(id, text) {
                        gMenuText.push(text);
                        gMenuId.push(id);
                }

                function popup(id, bshow) {
                        document.getElementById(id).style.visibility = bshow ? 'visible' : 'hidden';
                }


                function addprogram(text, prog3) {
                        var html = "";

                        html += ('<tr class="tableitem" onclick="popup(\'popup'+prog3+'\',1);" ><td>'
                                                                +'<div class="infoframe">');

                        // start popup window
                        html += ('<div class="content" id="popup'+prog3+'" onmouseleave="popup(\'popup'+prog3+'\',0);">'
                                                        +'<h3>'+text+'</h3>');

                        for (var i = 0; i < gMenuId.length; ++i) {
                                var tmp = '<button type="submit" name="click" value="' + prog3 + '/' + gMenuId[i] + '">'+gMenuText[i]+'</button><br/>';
                                html += tmp;
                        }
                        html += "</div>"; // popup window content

                        html += (  '    <div class="arrow">&nbsp;</div>'
                                                        +'<div id="name'   +prog3+'">'+text+'</div>'
                                                        +'</div></td>' // </div of infoframe>
                                                        +'<td><div id="versloc'+prog3+'"></div></td>'
                                                        +'<td><div id="versdvd'+prog3+'"></div></td>'
                                                        +'<td><div id="versliv'+prog3+'"></div></td>'
                                                        +'<td><div id="license'+prog3+'"></div></td>'
                                                        +'</tr>');

                        gTotHtml += html;
                }

                function writeprograms() {
                        var html = "";

                        html += '<table class="maintable"><tr><th>Program</th><th>Local Version</th><th>DVD-Version</th><th>Live-Update</th><th>Lizenz</th></tr><tbody>';
                        html += gTotHtml;
                        html += '</tbody></table>';
                        // setstatus(name3, displayname, '<img src="loading.gif">', '<img src="loading.gif">', '<img src="loading.gif">');
                        document.getElementById('placeholder').innerHTML = html;
                }


                function setstatus(name3, namelong, vlocal, vdvd, vlive, license)
                {
                        if (namelong.length > 0)
                                document.getElementById("name" + name3).innerHTML = namelong;
                        if (vlocal.length > 0)
                                document.getElementById("versloc" + name3).innerHTML = vlocal;
                        if (vdvd.length > 0)
                                document.getElementById("versdvd" + name3).innerHTML = vdvd;
                        if (vlive.length > 0)
                                document.getElementById("versliv" + name3).innerHTML = vlive;
                        if (license.length > 0)
                                document.getElementById("license" + name3).innerHTML = license;
                }



                        var g_download_tot_todo = 0;
                        var g_download_tot_done = 0;
                function downloading(delta_todo, delta_done) {
                        g_download_tot_todo += parseInt(delta_todo);
                        g_download_tot_done += parseInt(delta_done);
                        // NEED display
                }

        </script>


</head>



<body>

<div id="placeholder">&nbsp;</div>

<script type="text/javascript">
        clearmenu();
        addmenu("update", "Update now");
        addmenu("buy", "Kaufen");
        addprogram("Programm 1", "PRA");
        addprogram("Program 2", "PRB");
        writeprograms();


        setstatus("PRA", "WALLS-Verbau", "2012.222", "2012.230", "2012.444", '<img src="green.png"> 2013.100 / 08.feb.2012');
</script>

</body>
</html>
 

CSS
Code: GLBasic [Select]
BODY
{
}

a, a:visited {
        color: Blue;
        text-decoration: underline;
}

.maintable
{
        border-collapse: collapse;
        border: 2px solid black;
        padding: 4px 4px 4px 4px;
}

.tableitem{}

tr.tableitem td{
        background-image: url('backgnd_line.png');
        background-repeat: repeat-x;
        background-position: 0px 2px;

        border-left: 1px solid #88ccff;
        padding: 2px 16px 2px 4px;
}


/* infoframe div - hover it to show popup information */
.infoframe{
        position: relative; left: 0px; top: 0px; /* so the menu can be position:absolute - relative to parent */
}

/* content - popup overlay of infoframe */
.infoframe .content{
        /*visibility: hidden;*/
        position:absolute; left:0px; top: 0px;
        border: 2px solid #4488cc;
       
        background-color: #ffffff;

        z-index:999;
}


/* when hovering parent, highlight it */
.infoframe:hover
{
        background-image: url('backgnd_line_hover.png');
        background-repeat: repeat-x;
        background-position: 0px 2px;
}


/* header for popup menu */
.content h3
{
        margin-top: 4px;
        margin-bottom: 4px;
        background-image: url('backgnd_line_hover.png');
        background-repeat: repeat-x;
        background-position: 0px 2px;
}
.content button{
        width: 15em;
}


.arrow{
        width: 18px; height: 20px;
        padding: 0 0 0 0; margin: 0 0 0 0; border: none;
        background-image: url('arrow.png');

        float: left;
}
 



55
Hi

there's a public beta if the upcomming v11, that has most of the v10 bugs fixed, too.
Get it at
http://www.glbasic.com/beta/glbasic_sdk.exe

[edit]
Fixes all Android and iOS issues.
Raspberry Pi should work.
HTML5 does not load the Media files, yet.

56
Off Topic / need a new TV
« on: 2012-Sep-01 »
and we have a dish. Now, I wanted to have a TV with a SAT receiver built in, that can record to an external HDD.
Easy.
Now, the Samsung devices seem to be unable to save the recordings without a DRM protection, which totally sucks!
Does anyone know of a TV with a build in Sat tuner that can record non-protected movies and have an option to cut the commercials?
I fear that my old SCART cable sat receiver with a twin tuner might provide too bad image quality for a new, big TV (40" or so).

...yes - I know I should be working on V11. It's mostly to keep the missus busy ;)

57
I didn't like Android. It felt unstable, unfinished and complicated. Like Linux to me.

Now I have played a bit with the 4.0 version on my Touchpad and I am starting to like it. The OS feels quite smooth and the multitasking is much better than on iOS now.
I can find the most important Appd I use on my iPad in the Play store, and installation and such is also easy. The play store feels also quite good. I like the ability to link youtube videos into the app description. Also stopping and deleting apps works fine now.

But! And here's what I totally detest:
-each silly app wants access to about everything (mails, contacts, ...) That's way better in iOS.
-the defaults for the google account syncs everything. I don't want that! By the time I disable it, I'm sure google already has the data.
-the settings are terribly complicated and ill-organized to me.
-I had a hard time finding out how these desktop widgets work. I also miss settings for some of them.
-the app store is full of stuff I really fear. I have the impression they even offer trojans for download.
-I have no idea, but can apps access data on the SD card from other apps? That great - if the App would ask me about it.
-my battery drains quite fast (might be an cyanogenmod problem) when the pad lies there in airplayne mode, sleeping.

but then ...who cares...

59
Off Topic / what's the flash game?
« on: 2012-Jul-04 »
Hi,

I once played a flash game, where a red ball circled an orange one. When you click the mouse, the orange ball becomes sticky and the red one circles it.
Does anyone remember the name and link to that game?

60
FAQ / Ich habe gekauft - Wo ist meine Lizenz?
« on: 2012-May-23 »
Nach dem Kauf geht alles automatisch. Der Server sollte innerhalb von wenigen Minuten (max. 15) eine Mail geschickt haben. Wenn also eine Zahlungsbestätigung von PayPal oder ShareIt vorliegt, muss auch die Lizenz da sein.

Der nächste Schritt wäre den Spam-Ordner zu durchsuchen nach einer mail von ...@glbasic.com. Sollte auch hier keine sein, bitte versuchen im Forum anzumelden. Schlägt auch das fehl, hilft alles nicht. Dann bitte eine Mail über das Web-Form abschicken mit einer alternativen Email-Adresse.

Ich bitte höflichst um Entschuldigung.

Pages: 1 2 3 [4] 5 6 ... 37