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

Pages: 1 [2] 3 4 ... 8
16
GLBasic - en / Re: Android compiling Problems
« on: 2011-Oct-03 »
Maybe it's an idea for windows users to use mklink (vista and above) for symbolic folderlinks at the root-level to preserve paths that is shared with other resources, such at the JAVA_HOME variable.

17
GLBasic - en / Re: Android compiling Problems
« on: 2011-Oct-02 »
I fixed it :)

1. reinstalled htc's usb drivers.

2. set the JAVA_HOME path to shortform:
ex:
C:\Progra~2\Java\jdk1.7.0
instead of:
C:\Program Files (x86)\Java\jdk1.7.0

It seem like the spaces in the JAVA_HOME string was the problem.

18
GLBasic - en / Re: Android compiling Problems
« on: 2011-Oct-02 »
Was this issue solved ?
I have the exact same problems.
Phone-model = HTC Legend

19
Inline / 3rd party / Re: SunVox Engine DLL
« on: 2011-Oct-01 »
Yes, I have something akin planned for my own project. Sadly, I have no access to the source code (probably no one besides the author does) so your best bet would be registering on their forum and reporting the laggy behavior.

Something that you could try is, so to speak, having "calm.sunvox" and "fight.sunvox" loaded from the start of a stage, the first in slot 0 and the second in slot 1. If an enemy appears then you could just tell the engine to Stop(0) and Play(1). Or, if the change might be less abrupt, having them crossfade during a little while using the Volume method, since it works by slots as well.

If you can track down an earlier version of sunvox tracker, i think the sourcecode are included under an BSD like license.
I might have it on one of my older computers.

20
GLBasic - en / Re: Text Color
« on: 2011-Sep-24 »
Hi

I need this functionality myself quite soon, so I made a little function to do colored printing of a font.
Feel free to improve and expand :)

Code: (glbasic) [Select]
// --------------------------------- //
// Project: colorfont
// Start: Saturday, September 24, 2011
// IDE Version: 10.113

TYPE TColor

Initialized = FALSE

Name$
ABGR%
Red%
Green%
Blue%
Alpha%


FUNCTION Set: color%, alpha = 255, name$ = "unknown"

self.Red = bAND(color, 0xff)
self.Green = bAND(ASR(color,8), 0xff)
self.Blue = bAND(ASR(color,16), 0xff)

self.Alpha = alpha

self.Name$ = name$

self.ABGR = bOR(RGB(self.Red,self.Green, self.Blue), ASL(self.Alpha, 24))

self.Initialized = TRUE
ENDFUNCTION

ENDTYPE



TYPE TText

lineWidth%
lineHeight%

fontWidth%
fontHeight%

screenId%
spriteId%

originalColor AS TColor
Color AS TColor


FUNCTION Init: org_color% = 0xffffffff,  sprite_id% = -1, screen_id% = 31

self.originalColor.Set(org_color)
self.Color.Set(org_color)

GETFONTSIZE self.fontWidth, self.fontHeight

self.lineHeight = self.fontHeight + 1 // Need this TO NOT crash on draw-functions

IF sprite_id = -1
self.spriteId = GENSPRITE()
ELSE
self.spriteId = sprite_id
ENDIF

self.screenId = screen_id

ENDFUNCTION


FUNCTION setColor: color%

self.Color.Set(color%)

ENDFUNCTION


FUNCTION Write: txt$, xpos%, ypos%

LOCAL abgr%[]

self.lineWidth = LEN(txt$) * self.fontWidth

CREATESCREEN self.screenId, self.spriteId, self.lineWidth, self.lineHeight
USESCREEN self.screenId

DRAWRECT 0,0, self.lineWidth, self.lineHeight, RGB(255,0,128)
PRINT txt$ , 0, 0

SPRITE2MEM(abgr[], self.spriteId)

FOR x = 0 TO self.lineWidth * self.fontHeight
IF abgr[x]=self.originalColor.ABGR
abgr[x]=self.Color.ABGR
ENDIF
NEXT

MEM2SPRITE(abgr[], self.spriteId, self.lineWidth, self.lineHeight)

USESCREEN -1
DRAWSPRITE self.spriteId, xpos, ypos

ENDFUNCTION


ENDTYPE




SETSCREEN 320, 240, FALSE
DRAWRECT 0,0, 320,240, RGB(80,80,80)


LOCAL txt AS TText

txt.Init()

txt.setColor(RGB(0,255,255))
txt.Write( "This is a test", 10, 10)

txt.setColor(RGB(255,0,0))
txt.Write( "Another Color :)", 40, 30)



SHOWSCREEN
MOUSEWAIT



21
Chrome for daily browsing and FF + firebug + some other extensions for development/debugging at work (related to ez publish).

22
Off Topic / Re: HTML5
« on: 2011-Aug-11 »
Another interesting option would be to make glbasic target HAXE, that itself targets HTML5, Flash and some other languages.

23
I read that the EEE Pad Transformer has at least as smooth performance as ipad2 if flash are disabled (an option in the settings menu).
Anybody that can confirm this.

24
GLBasic - en / ipad2 or Asus eee Transformer ?
« on: 2011-Aug-03 »
Hi

A few questions:

I have to choose between ipad 2 and the Asus EEE Transformer ( I will get one of them from my employer  =D ).
Anybody that have tested the Asus or both of them ?
Is there any advantages developing on one of the platforms ?

The Transformer seems very interesting to me :)

PS! I already have an mac mini, so i will be able to compile to the ipad.


25
Bug Reports / Re: Music & SFX
« on: 2011-Jul-24 »
Be sure to normalize the waveforms.

26
GLBasic - en / Re: GLBasic and the NOOK
« on: 2011-Jun-11 »
There are rumors that Google will accept less (to none) modifications in the core code of android by phone manufacturers in the future.
I certainly hope it's true...

27
GLBasic - en / Re: GLBasic, not for games
« on: 2011-May-01 »
Even though GLBasic is great, it's really not very well suited for your kind of application.
For your style of application, I wold rather recommend Titanium Appcellerator or PhoneGap as both of them already got all the functionality you need.

28
Working on HTC Legend with the Android 2.2 update  :good:

29
Announcements / Re: Smartpacker
« on: 2011-Apr-10 »
Thats a shame - a Linux version would be very handy...

I know it lacks some of the functionality of smartpacker, but for compression on linux and osx (and a lot of other OSes including windows) you have UPX.

There are also a lot of frontends for it, and it's free.

30
Off Topic / Re: I need translators
« on: 2011-Apr-01 »
Hey Ampos ...

I can do an norwegian translation if you want one :)

Pages: 1 [2] 3 4 ... 8