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

#31
Look up OPENFILE in the help file - this will enable you to read whatever you like from any file you wish (including ini files). Personally, I use this in preference to INIGET$ / INIPUT as it allows much more flexibility.

However, if you want to convert a string to a numerical value, simply MID$ the numerical portion, then it will do a straight convert - ie
Code (glbasic) Select

a$="23"
a=a$
PRINT a,0,0

will work perfectly
#32
Removing the ALPHAMODE -0.5 does stop the problem, but is not the desired effect. Adding ALPHAMODE 0 before the SAVEBMP does solve the problem, however. It's not surprising this bug hasnt been discovered before - I mean, who in their right mind would ever use SAVEBMP in this way?  =D
#33
For those interested, this is the code and the resultant bitmap file.

The idea is that it loads speccy graphics at 4x resolution, applies a grid scanline effect, then saves the result as a bitmap. It also displays the file (which shows correctly, with black being black!) then waits for a mouse click before exiting.

Hope this helps in tracking down the bug .....

[attachment deleted by admin]
#34
It could be interesting, especially if you allow netplay. I'd also consider making the ability to slot in card packs as user friendly and open source as possible, so people can then add their own packs .....
#35
Nope, 32 bit here.
#36
There seems to be a bug in the SAVEBMP command which means that all pixels that are RGB(0,0,0) will be saved as RGB(255,0,128) in the resultant bitmap
#37
Right, I set aside today to get this project finished, and as the day is almost over, I'm calling it done!

Additions / changes are as follows:-

Addition of Pause feature
Changed font to aid legibility
Addition of ability to turn off vortex
Addition of facility to choose own colours
Addition of saving preferences (music, vortex, colour scheme)

New version is up on the website ....
#38
Okie dokie, I've had loads of feedback on this - looks like its back to a WIP for the time being!  =D
#39
I've never really got my head around online scoring - the server side code leaves me bewildered, I'm afraid (hell, I couldn't even get my head around WordPress!)

At some point I'll try to get my head around a Mac distro - as I'm not familiar with what files should be where, having never had a Mac, then I'm not too comfortable with what needs zipping up and what doesn't ....
#40
TriTangle has *finally* been released!







Download for Windows or Linux from www.peejays-remakes.co.uk
#41
It's TriTangle - there are screenies on my site - the game is pretty much finished (and has been for literally months) - I just need to sort out the audio side of things .....
#42
ah, stupid me! Many thanks for that ..... I guess that means I've got no more excuses not to get this game finished then! (it's only 10 months behind schedule =D)
#43
I've just updated from a (very!) old version, and have hit problems.

Gernot - you need to amend the help file - the example source for the PLAYMUSIC command doesn't include the loop parameter (which was the first thing to catch me out!)

However, I'm now getting an error in my high score loading routine, which has me beat. The error is:-

compiling:
C:\DOCUME~1\PeeJay\LOCALS~1\Temp\glbasic\gpc_temp0.cpp: In function `DGInt __GLBASIC__::LoadHiScores()':
C:\DOCUME~1\PeeJay\LOCALS~1\Temp\glbasic\gpc_temp0.cpp:2171: error: invalid initialization of reference of type 'DGNat&' from expression of type 'DGInt'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:864: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
C:\DOCUME~1\PeeJay\LOCALS~1\Temp\glbasic\gpc_temp0.cpp:2179: error: invalid initialization of reference of type 'DGNat&' from expression of type 'DGInt'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:864: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
*** FATAL ERROR - Please post this output in the forum

and the function is:-

Code (glbasic) Select
FUNCTION LoadHiScores:

LOCAL loop,loop1,byte,bytes$=""

LOCAL check=OPENFILE(0,"hiscore.dat",TRUE)

IF check=FALSE
FOR loop=0 TO 4
hiscore$[loop][1]=75000-(loop*5000)
NEXT
hiscore$[0][0]="FIRST NAME"
hiscore$[1][0]="SECOND NAME"
hiscore$[2][0]="THIRD NAME"
hiscore$[3][0]="FOURTH NAME"
hiscore$[4][0]="FIFTH NAME"
ELSE
FOR loop=0 TO 4
FOR loop1=0 TO 19
READBYTE 0,byte
byte=byte+20
bytes$=bytes$+CHR$(byte)
NEXT
hiscore$[loop][0]=bytes$
bytes$=""
FOR loop1=0 TO 6
READBYTE 0,byte
byte=byte+20
bytes$=bytes$+CHR$(byte)
NEXT
hiscore$[loop][1]=bytes$
bytes$=""
NEXT
ENDIF

CLOSEFILE 0

ENDFUNCTION


It compiled perfectly before, so obviously something has changed since my previous version. Any pointers anyone? Thanks
#44
2D / Re: BLIT command
2009-Jun-06
It may also be worth looking at the POLYVECTOR command for drawing parts of a graphic ....
#45
I have version 4.20 with a GPS if you want to test an older system ....