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

#481
Congratulations Ian. This 2nd Coding Contest was amazing and productive!!
:booze:
#482
@MrTAToad: You can define the types, but not operate because the functions aren't implemented.

Quote from: SlydogPlus, the line: test2=256, is that allowed? ie. a direct integer to assign an ascii value?  And/or is it out of range? (255 max?)
In C you can assign 256 to a char, but only gets the lowest 8 bits.
256 = 100h (hexa), then the value of test2 will be 0.

Quote from: SlydogIs a char type a numerical type, like a byte, or a string type?
If its a string type, do we need to use a '$'?
The type char in C is a number, chars are 8 bits numbers.
In GCC compilers chars are signed by default (-127..128), others are unsigned.
char in not a string type, is an element of a string.
I think "char" type is difficult to implement in GLBasic.
#483
Quote from: Kitty Hello on 2010-Aug-17
you can use V8 beta, and "try" to use:
LOCAL number AS short // char, float, double
Is this possible? Oh my God!!

You can define short variables, but not short arrays. Because the function DIM for shorts "DIM(short int&, int)" not exists. Then, if you write "LOCAL numbers[] AS short" you get a syntax error.
#484
Currently there are two types: Integer % (32 bits) and Float # (64/32 bits).

I'll like to see more numeric data types like other BASIC languages. This way we can optimize the amount of memory used for large arrays in portable machines.

I think short integer (16 bits) can be useful, indicated by "!" or other character.
Byte (8 bits) can be useful too, but less used.

Example:
Code (glbasic) Select
GLOBAL largemap![]
DIM largemap![500][500]  // this uses half space of an integer array

largemap[1][1] = -500
largemap[2][2] = 123
largemap[3][3] = 32767

#485
I think you loaded a single .gbas file instead the project (.gbap).
#486
Announcements / Re: V8 beta
2010-Jul-28
@Slydog: I think that C++ do the same way, prefixing the functions with the name of the class of struct. This must be the way.

Gernot, this is an interface bug I think: when you select GP2X in the project options is saved as GP2X-Wiz. When you enter again in the options you see this. Works ok with other platforms.
#487
If you have a light background and you have black text, then the inline code is totally illegible. This avoids me to try to make inline code. The inline background should be user selectable, or a colour based in the user background.
#488
Announcements / Re: V8 beta
2010-Jun-18
Quote from: MrTAToad on 2010-Jun-10
Currently, NOT wont invert the sign of a number :

Code (glbasic) Select
DEBUG NOT(-1)+"\n"
DEBUG NOT(1)+"\n"


Both return 0
Operator NOT inverts a boolean expression, not inverts the sign. Any number not zero is evaluated to true and the zero is false. Then, I think your test is ok.

NOT(-1)   -->  NOT(true)  --> false  --> 0
NOT(1)    -->  NOT(true)  --> false  --> 0

#490
Thanks Gernot, functions in types is the best update for me. This way you can organize the code better and keep all the functions that treat a type in a place. Developers can use this or not, but If you think in objects or types is very useful.
#491
GP32Spain has changed some rules in the Contest. This changes are:

1.- Changes in the first category of the contest (game)
We'll accept games of all kind, without limitations to genre or theme.

2.- Changes in the dates
Deadline to send the games/emulators: July 31
Announcement of the winners: August, between 15 and 31

3.- Changes in the prizes
It will have new prizes, such a diplomas and related prizes of Wiz (games...)

from the total pot for prizes there will be an amount deducted that could range between 50€ and 100€. This amount should absorb the cost for printing and mailing diplomas to all participants by mail. GP32Spain reserves the right to negate a diploma to the participants whose entries don't have a minimum quality.

There are more prizes:

First prize: 25% of the cumulative total of the donated money + special diploma.
Second prize: 15% of the cumulative total of the donated money + special diploma.
Third prize: 10% of the cumulative total of the donated money + special diploma.
Fourth prize: a pack consisting of games and accesories for GP2X Wiz + participant diploma.
Fifth prize: a pack consisting of games and accesories for GP2X Wiz + participant diploma.
Other entries: participant diploma.

More info in GP32Spain.com
#492


GP32Spain presents its second GP2X Wiz programming contest.
Warning: These rules are a draft and may suffer some changes in the incoming days.

The competition is divided into two separate categories, each of which will have its own prizes.

First Category: Games
First prize: 25% of the cumulative total of the donated money.
Second prize: 15% of the cumulative total of the donated money.
Third prize: 10% of the cumulative total of the donated money.

Second Category: Emulators
First prize: 25% of the cumulative total of the donated money.
Second prize: 15% of the cumulative total of the donated money.
Third prize: 10% of the cumulative total of the donated money.

Donations can be sent and you can see the cumulative total of money for the prizes to date, here: http://www.gp32spain.com/index.php?mpagina=donations
Cumulative total to date  (April 13 15:30: 1857€ - 2525,33$)

Dates
Deadline to send the game: July 15 July 31
Announcement of the winners: July 31 August 15-31

Contest Rules

First Category: Games

We will only accept games of the following genres:
* Beat 'em up
* Shot 'em up
* Platforms
* Musical (based on music or that music represents an important part of their development).

Update: Now all game types are allowed.

The games can be programmed specifically for GP2X Wiz or can be developed for interpreter engines like Fenix. In any case should include everything needed to run directly on the GP2X Wiz. We will NOT accept games in flash format.

The games should be compatible with the latest firmware available for GP2X Wiz.

Each participant may submit as many games as he/she wants, but will be only eligible for one prize.

We will not accept games previously published in GP2X Wiz. Must be new titles or updates for other systems that have not yet been ported to GP2X Wiz. We will accept games that have already been published previously althoug the version submitted to the contest must include enough new features in order to be a valid entry (new levels, game modes, etc.).

The games may not be published until the contest has ended and winners have been announced. If a game is released before, this will be disqualified immediately.

The maximum size accepted for the games is 2GB.

Games less than 40MB must be sent by e-mail to webmaster((at))gp32spain.com. For games with more than 40MB, the programmer must write to the same e-mail and then we'll provide you with FTP access to send it. The e-mail subject must be "Concurso GP32Spain".

Along with the game you must include 2 screen captures of the game.
You must also include a file "info.txt" with the following information:
- Name of the work submitted.
- A description of the game and a short manual.
- Nick / Name of the programmer. (If more than one person is involved, put all names and jobs performed)
- E-mail contact.

Second Category: Emulators
We will accept new emulators and emulators already published.
When we value emulators modifications, we will take into consideration the improvements or new features of the emulators with respect to the final version published before the contest.

We take into consideration the following features in order of importance:
1 .- New emulators.
2 .- (existing emulators): Overall improvement in performance / speed of the emulator.
3 .- (existing emulators): Support for new games / chips / systems.
4 .- (existing emulators): New options, as SaveState, etc.
5 .- (existing emulators): GUI enhancements and additional menus.
6 .- (existing emulators): Other additions.

The emulators should not include files or commercial games. If it's necessary some kind of bios rom file for its working, must be clearly indicated in the file info.txt

The emulators should be compatible with the latest firmware available for GP2X Wiz.

Each participant may submit as many emulators as he/she wants, but will be only eligible for one prize.

If the developer chooses to release the emulator before the contest is finished, we'll take into consideration only the new features or improvements over the public version.

The emulators must be sent by e-mail to webmaster((at))gp32spain.com. The e-mail subject must be "Concurso GP32Spain".

Along with the emulator you must include a file "info.txt" with the following information:
- Name and version of the emulator submitted.
- List of new features or improvements incorporated in the emulator with respect to the latest public version.
- A description of the emulator and a short manual.
- Nick / Name of the programmer.
- E-mail contact.

Additional information about the contest
Participants can participate in the two categories independently and win a prize in each of them.

The jury will consist of 5 persons that will be announced after we receive all jobs.

Participants from outside of Spain should have a PayPal account where they would receive the prize if they win.

If we don't receive enough titles for any of the two categories of the contest or its level is considered too low, the organization reserves the right to declare the awards deserts, in which case the value of prizes will be added to the awards of the other category.

The rules may be subject to changed. Any changes or additions will be published in www.gp32spain.com.
#493
KermEd, you can use "/" always I use in Windows and Wiz (Linux) and works Ok.
Now, can we return to my topics please?  :)
#494
I made more tests about the fonts in the Wiz. If you use a font with black characters and other colour (pink) background using as transparente colour, works in PC, but not works in Wiz and GP2X. Both colours, black and pink background shows transparent in this platforms. This is a bug. :S

Then I change the font colour with RGB(0,0,1) but not works too. Investigating I discovered a trick: I'm using 16 bpp where the colours are coded in RGB565 bits scheme (in Wiz). 8 bits - 5 = 3 bits are lost (shifted to the right) when the screen colours are compound. Then RGB(0,0,1) are codified with the same bits as RGB(0,0,0). Then the darkest different colour can be RGB(0,0,8), because 8 is 2^3. With this colour in the font works in Wiz too. I'm happy now.  =D
#495
I have bad luck!! Fonts with black text are showed good in PC, but not in the Wiz. Not writes nothing. I use the same fonts and use pink as transparent colour. If I change the font colour to other works good.