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

Messages - Warwick

#2
G'day,

Since upgrading from GLBasic 12.096 to 12.312, I'm getting some error messages when I attempt to build an iPhone project in Xcode.

Code (glbasic) Select
Undefined symbols for architecture armv7:
"__GLBASIC__::ALLOWESCAPE(int)"
"__GLBASIC__::SETFONT(int, float)"


I've made no changes to my project since upgrading, and if I downgrade back to 12.096 then it works fine again.

Does anyone know what might be happening here? I tried specifying two parameters for SETFONT rather than one, but it didn't make any difference.

Thanks,

Warwick
#3
Thanks Alex_R, nabz32, spacefractal ... I appreciate your comments.

I think you're right about the time limit spacefractal. Earlier versions of the game I think allowed too much time, but now I've probably gone a bit too much to the other extreme and allowed too little. I might re-adjust that a little bit.

I actually had trouble importing 3D models into the game. One of my sons created a range of interesting and quite complicated models but I couldn't manage to import them. I also tried to use 2D sprites in the game (via the X_SPRITE command) but couldn't get that working either!

So the end result is a maze that's mostly devoid of other characters, and it's more of a puzzle game than a first-person shooter.
#4
I've done the floor and ceiling on the same grid as I used for the walls, so each is composed of individual squares. (It might have been more efficient to use just one square for the ceiling.)

For the floors I wanted some sections to be able to open up as trapdoors, so had to use separate squares for each floor segment.

I use exponential fog (at a density of 0.1) to try to give a sense of depth. I had wanted to use more interesting lighting and to try to give the effect of torchlight. However this was one thing I found very hard to work with in GLBasic. After experimenting with many types of ambient light and spotlight I couldn't get a satisfactory effect.
#5
Announcements / Ghost Maze
2014-Aug-28
G'day everyone, I've just released my first ever app! It's a game called Ghost Maze, and is currently available for iOS.

https://itunes.apple.com/au/app/ghost-maze/id900919816

In this game you explore a 3D maze, with a limited time to find the exit before the ghost comes after you. You collect gold coins to gain extra score and copper (green) coins to gain extra time.

I've started many apps but had trouble actually finishing them, so it's good to get something completed. GLBasic proved to be a very practical tool for getting this game up-and-running within a reasonable time.

Comments welcome...

Cheers,
Warwick
#6
When using the FORMAT$ function to display the value zero with zero digits after the decimal point, a blank value is output instead.

Code (glbasic) Select
DEBUG "[" + FORMAT$(1, 0, 0) + "]\n" // Incorrectly outputs [ ]
DEBUG "[" + FORMAT$(1, 0, 1) + "]\n" // Correctly outputs [1]
DEBUG "[" + FORMAT$(1, 1, 0) + "]\n" // Correctly outputs [0]
#7
I have also found that FINDPATH does not usually find the least-cost path. If two paths are equal in length then it will pick the least cost of those. However it will always pick the shortest path first, and only consider cost if alternative paths are equally short. It does not seem to matter what the heuristic parameter is set to.

#8
Thanks for your help with that, and for responding so quickly. It works perfectly now.

I still think it'd be good if GLBasic gave a 'friendlier' error message when someone (like me) gets this wrong.

Cheers,

Warwick
#9
G'day... I'm using version 10.057, and if I have a one-line program that just reads:

DIM a[10]

In a project with 'Explicit declarations' turned on, then I get:

"TestDim.gbas"(1) error : variable is not explicitly defined : a

If I change the program to

LOCAL a
DIM a[10]

Then I get:

C:\Users\Warwick\AppData\Local\Temp\glbasic\gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:\Users\Warwick\AppData\Local\Temp\glbasic\gpc_temp0.cpp:24: error: no matching function for call to `DIM(DGInt&, int)'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:861: note: candidates are: void __GLBASIC__::DIM(__GLBASIC__::DGIntArray&, DGNat, DGNat, DGNat, DGNat)
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:862: note:                 void __GLBASIC__::DIM(__GLBASIC__::DGNatArray&, DGNat, DGNat, DGNat, DGNat)
*** FATAL ERROR - Please post this output in the forum


What do you think is going on here?

Thanks,

Warwick