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
In GACK, I have a huuuuuge editor. I can't redesign that to use the loop-subs that are required for the HTML5 port.
But the game engine could well be ported. So I have 2 subs:
main_loop_sub and title_screen_sub.
When title presses a key, then main_loop_sub is set as the main sub and vice versa.
The "game" engine just starts at the title screen loop, and exits the main program routine. The game will loop the subs and it works.

Now! When I'm in the editor, I want to test the game. Thus, I need to call the title/main subs manually (I can't quit the "main" routine). How would I know which sub to trigger? Using a global variable? Isn't that silly?
Any better ideas?

Beta Tests / DPI for Samsung Galaxy S4
« on: 2013-Jun-08 »
Has anyone got such a device to test?
Can you use V11 and tell me what Platforminfo$("DPI") returns?

Many thanks


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.


The rotation might not be correct. Pardon me.

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

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

Get it while it's stil hot.

Feedback / Updates to come...
« on: 2013-Feb-06 »
Hi, I'll use this thread for the updates to com. Starting with Feb, 2013:

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.

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

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?

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

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.


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]
   PRINT "X", 0,0
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]
STDOUT "In main game now\n"
GLOBAL stary%[]
DIM stary%[300]
FOREACH y IN stary[]
y = -RND(400)

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

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



[attachment deleted by admin]


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.

Code: (glbasic) [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
    <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) {

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);">'

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

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




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

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

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


Code: (glbasic) [Select]

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

border-collapse: collapse;
border: 2px solid black;
padding: 4px 4px 4px 4px;


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 */
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;


/* when hovering parent, highlight it */
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;

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

float: left;


there's a public beta if the upcomming v11, that has most of the v10 bugs fixed, too.
Get it at

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

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.
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 ;)

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

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