Menu

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.

Show posts Menu

Topics - Bluepixel

#1
Hi there, recently I got an Ipaq (windows pocket pc), mainly for 2 reasons, 1. because it's an fun and interesting device, and 2. so I could create apps for it using GLBasic, however I soon came to realise that the WinCE compiler is outdated (i think). I was also interested in getting a GP2X Wiz, however, the Ipaq was already a huge letdown.

GLBasic is still being advertised with support for these platforms on the site, so when I got GLBasic this was a bit of a letdown :zzz: . I thought that instead, I could switch to an older version of GLBasic; but currently I havent found out how to do so, or if that's even possible, especially because I am using the Steam version of GLBasic.

After only building applications for Windows, I was really hoping I could build to another platform, but no luck as to of now :/

If anyone can help me with this, please let me know!  :good:
#2
Hi there, i am working on a small site and i was planning on releasing some games on there, so i was wondering if i could still export to html5, however, after i compiled the program i only got a dummy html file, and an empty distribute folder.

Is it still possible to export to html5 or am i doing something wrong?
#3
Hi there, i am working on a small game that uses a camera, i got some nice movement down however i havent got the camera working yet, i could just move everything but the player, however i thought that instead i could be moving the origin of the screen, which is normally at the top left of the screen. is there a function or library for this? Or will i have to think of something else myself?
#4
Hi there, I am working on a small physics based game and would love to add in Box2D physics, since that's the only physics library for GLBasic I could find, so I found a Box2D library in the showroom, downloaded it, and ran the example project. The example project ran fine, but after compiling it within the editor it simply stated; *1 FAILED*. I created a hello world project, took the Box2D library and included it into my project, I ran it and the project failed, which leads me to believe that it's probably outdated, which is unfortunate since I was really hoping I could get some physics working :blink:

Anyone that can help me with this?



:offtopic: PS. I am very sorry about my frequent posts, I am rather new to GLBasic, so I am very curious as to of how things work. I will try to do as much research as I can on my own before posting anything. :offtopic:
#5
Hi there, I was super excited to try out android studio, when I compiled to android it told me to install android studio so I did. I created a simple hello world program and when I compiled for android it started up android studio, started updating some stuff and after a long time of waiting I just got errors.

Ive tried a lot to make this work but nothing seems to work.
Is there maybe a tutorial or guide on how to use android studio?
#6
Hi there, I am hoping to start a small chat project, however I would like to use DDGui for it, ive tried using DDGui however it seems quite dated and it doesn't seem to work how it is supposed to.

Can I still use DDGui today, if so; how do I use it, if not; are there any alternatives?
#7
GLBasic - en / Perlin Noise
2019-Oct-24
Hi there, I was wondering if I can create Perlin Noise (terrain generation) in GLBasic, I am very interested in procedural generation, so does anyone know GLBasic's capabilities of procedural generation?
#8
Hi there, i was playing around with GLBasic, trying to make a polygon editing tool, i've included some code down below, it doesn't have any media included so you can just paste it into GLBasic and it should work. Anyways, currently I can add several poly vectors, which you can then create a shape with, however you can only create ONE shape.

Can anyone help me figure out on how to add more shapes?



Code (glbasic) Select
// --------------------------------- //
// Project: PolyEdit
// --------------------------------- //
width=640
height=480
SETSCREEN width, height, 0 // Set the width and height of my screen
ALLOWESCAPE TRUE
SYSTEMPOINTER TRUE

setup: // Set up all variables and other systems
maxpoints=1
clicktogg=FALSE

TYPE poly
x=0
y=0
active=FALSE
ENDTYPE

GLOBAL polypoints[] AS poly
DIM polypoints[maxpoints]
GOTO main


main: // The main loop
MOUSESTATE mx, my, mba, mbb // Return mouse values

GOSUB polypoint

IF KEY(57) // Quickly resets the game
GOTO setup
ENDIF

drawpointer()
SHOWSCREEN
GOTO main

SUB polypoint:
IF mba=1 // Add a poly point once clicked
IF clicktogg=FALSE
clicktogg=TRUE

i=maxpoints-1

polypoints[i].x=mx
polypoints[i].y=my
polypoints[i].active=TRUE

maxpoints=maxpoints+1

LOCAL pointtmp AS poly

DIMPUSH polypoints[], pointtmp

FOR i=maxpoints-1 TO maxpoints-1
polypoints[i].x=0
polypoints[i].y=0
polypoints[i].active=FALSE
NEXT
ENDIF
ELSE
clicktogg=FALSE
ENDIF

FOR i=0 TO maxpoints-1 // Draw a little X at each poly point
IF polypoints[i].active=TRUE
PRINT "x", polypoints[i].x-7, polypoints[i].y-9
ENDIF
NEXT

STARTPOLY 1 // Draw the poly itself
FOR i=0 TO maxpoints-2
POLYVECTOR polypoints[i].x, polypoints[i].y, 0, 0, RGB(255,255,255)
NEXT
ENDPOLY
RETURN
ENDSUB


FUNCTION drawpointer:
DRAWLINE 0, my, width, my, RGB(255,255,255)
DRAWLINE mx, 0, mx, width, RGB(255,255,255)
ENDFUNCTION


Ps. Sorry for the messy code, I haven't cleaned it up yet
#9
Hi there, I am working on an top down stealth game and I wanted to create a smooth top down movement, I wanted to add quick easing to the movement, Tho so far I have only been able to hardcode it in.

This is what I have so far:
Code (glbasic) Select
ALLOWESCAPE TRUE
width=1024
height=768
SETSCREEN width, height, 0 // Set screen resolution

LOADSPRITE "Media/player.bmp", 0 // Load all sprites and sounds


setup: // Setup all variables and other systems
px=width/2-64 // Player X
py=height/2-64 // Player Y
pspd=4 // Player speed
GOTO main


main: // The main loop
GOSUB move

DRAWSPRITE 0, px, py
SHOWSCREEN
GOTO main


SUB move:
IF KEY(17) // Add simple WASD movement
py=py-pspd
ENDIF

IF KEY(31)
py=py+pspd
ENDIF

IF KEY(30)
px=px-pspd
ENDIF

IF KEY(32)
px=px+pspd
ENDIF

RETURN
ENDSUB


Can anyone help me with this?