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

Pages: 1 [2]
16
Hello There,

I see a weird behavior in loadanim. I've a 40x40 sprite sheet which contains a few blocks and it's a png file. When I draw each block from this anim, I see the alpha channel is completely drawn as white. I've another png sprite sheet and this seems to be drawn fine, though those objects doesn't have any glow effect as these ones. What might be wrong?

The png is created on Photoshop.

Thanks,

Özden

[attachment deleted by admin]

17
Hello There,

Using the Font creator which comes along with GLBasic, is it possible to set the background color to transparent? I'm asking this as I want to use AntiAlias for smooth drawing of the fonts and in that case the backcolor cannot be removed from the created font correctly.

Thanks,

Özden

18
GLBasic - en / Clipping a drawing!
« on: 2010-Jan-22 »
Hi There,

I'm working on the next blockbuster title for IPhone  =D and have a requirement that I need to clip the drawing within a rectangle. This will be required for a scrolling text where I need to draw it under a logo so it shouldn't overlap the logo, is there any way to do this?

Özden

19
Hello There,

I'm prototyping a new game with GLBasic which I'm new as well  =D. I saw an interesting behavior and would like to ask whether I'm doing anything wrong.

In my sample, I'm simply scrolling a screen which is constructed by 16x16 pixel blocks. The whole screen size is 480x320. I call a routine inside the main while-wend loop and the FPS is limited to 60. I only draw the blocks which are inside the view. While scrolling, I sometimes see a loss in the smoothness of the scroll. The actual routine which does the drawing is this :

Code: GLBasic [Select]
SUB Draw_Level:
LOCAL Block$
LOCAL Block
LOCAL DrawX
LOCAL DrawY

        FOR i=0 TO LEN(LevelData$) -1
                FOR j=0 TO LEN(LevelData$[i]) -1
                        Block$ = MID$(LevelData$[i],j,1)
                        Block = ASC(Block$)
                        Block = Block -65

                        DrawX = j*16 - IG_CurrentX
                        DrawY = i*16 - IG_CurrentY
                       
                        IF Block > 0 AND DrawX >=-16 AND DrawY >=-16 AND DrawX < Screen_X AND DrawY < Screen_Y
                                DRAWANIM 0,Block,DrawX,DrawY
                        ENDIF
                                                       
                NEXT
        NEXT
       
        SHOWSCREEN
       
       
ENDSUB
 

Is there anything I'm not aware of about the timing of redrawing? I though "SHOWSCREEN" is handling everything for having a steady 60 FPS as I specified (I also think my routine shouldn't take that much time that will cause a skip on a frame).

By the way, I test it on a windows 7 machine which has 256 mb GPU and core duo cpu...

Thanks in advance...

Özden
 

20
Hello There,

First of all, I would like to congratulate the creators of GLBasic for creating such a simple and fantastic language for creating applications. I was thrilled when I first saw it especially after seeing the support for IPhone.

Just to say a hello to the community, let me introduce myslef a bit. I'm a guy who started his programming carreer as a game developer on C64 in early 90s (In early 10s as well  :)). After some break because of university, I returned to application development bussiness in 1999 starting with Visual Basic and nowadays runing my own bussiness using latest Microsoft technologies such as WPF, Silverlight, Windows Forms and ASP.Net in C#. For the last few years, I always wanted to find a path to return in game development. Last year, I had an attempt to create a game on Windows Mobile using some other language/engines but quickly realized that was a good amount of learning curve which I had not enough time. After that, IPhone got my attention and while I was exploring for ways to code on it, I finally came across GLBasic and it made me more than happy to see that finally I'll be able to return to my game development roots. I fired up the editor and within 5 minutes had already created the a fade in/out splash screen, it was that easy... :enc:

Anyway, to go back to the reason of my post, as I mentioned,  my main focus is to create games on IPhone. As I saw there is a great community in here in the forums of GLBasic, before diving much further into the coding, I wanted to ask a few questions related with GLBasic+IPhone to eliminate the mistakes that I'll make. Here they are :

1)  For my first game, I'll use the Landscape mode. From my understanding, there is no out of box support to define landscape mode and I've to rotate all the sprites that I'm going to draw and also need to map the mouse coordinates. Is that correct? Will it have a big impact on performance so maybe I should have all the sprites pre-rotated from start in their file form?

2) In GLBasic, is there any way to set breakpoints into command lines and step over like in other IDEs?

3) Correct me if I'm wrong but there is multi thread support as well. Is it feasable to use it to load images/sounds in between game states (menu, level) where I can show an animation while loading?

I think that's all for start. Expect more questions begging for your help... :nw:

Kind Regards,

Özden Irmak

Pages: 1 [2]