Mosaik
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
The Stone be can set to every place, which
* has no neightbour
* ever neightbour has the same coloror the same icon
the score changed, if the stone has
* no neightbour +1
* one neightbour +5
* two neightbour +10
* three neightbour +50
* four neightbour *2 (!)
Have fun
GPI
http://caosandkin.bei.t-online.de/purebasic/mosaik.zip
EDIT: Filesize:616Kb
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
The Stone be can set to every place, which
* has no neightbour
* ever neightbour has the same coloror the same icon
the score changed, if the stone has
* no neightbour +1
* one neightbour +5
* two neightbour +10
* three neightbour +50
* four neightbour *2 (!)
Have fun
GPI
http://caosandkin.bei.t-online.de/purebasic/mosaik.zip
EDIT: Filesize:616Kb
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
Nice game . The events seems slow tough. May be you have put a delay() somewhere and using WindowEvent(). If yes, don't call the delay() if an event occurs. Ex:
Fred - AlphaSND
Nice game . The events seems slow tough. May be you have put a delay() somewhere and using WindowEvent(). If yes, don't call the delay() if an event occurs. Ex:
Code: Select all
Event = WindowEvent()
If Event
Do your code
Else
Delay(20) ; Wait only when no events are in the queue
EndIf
Fred - AlphaSND
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
Very nice done, but the mouse moves very slow here because StartSpecialFX() is called everytime the mouse moves in another cell.
PureBasic allows you to perform real time effects like alphablending, shadow, color filter etc. These rendering effects are very CPU intensive (even if they are very optimized) and must use a special trick to be performed quickly. StartSpecialFX() creates a memory buffer to perform all the rendering and the result will be copied back to video memory when StopSpecialFX() is called. This means that hardware acceleration (i.e. graphics card chips) cannot be used during this period. All operations are performed by the main processor. This is important to understand otherwise game performance will drop a lot.
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
Very nice done, but the mouse moves very slow here because StartSpecialFX() is called everytime the mouse moves in another cell.
PureBasic allows you to perform real time effects like alphablending, shadow, color filter etc. These rendering effects are very CPU intensive (even if they are very optimized) and must use a special trick to be performed quickly. StartSpecialFX() creates a memory buffer to perform all the rendering and the result will be copied back to video memory when StopSpecialFX() is called. This means that hardware acceleration (i.e. graphics card chips) cannot be used during this period. All operations are performed by the main processor. This is important to understand otherwise game performance will drop a lot.
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
@fred:
What do you mean with :"The events seems slow tough"?
It runs good on my machine, so i think, it should run on nearly every not too old machine.
The only problem is, that i don't get every time a repaint-message, when i need it (for example, move the window outsite the screen and back).
But if you move the mouse in the playfield, it should redraw.
my hiscore: 36.694.656
btw: Newer version (2 Stone-Sets, minor changes, smaller size)
http://caosandkin.bei.t-online.de/pureb ... saik-2.zip
size 403kb
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
@fred:
What do you mean with :"The events seems slow tough"?
It runs good on my machine, so i think, it should run on nearly every not too old machine.
The only problem is, that i don't get every time a repaint-message, when i need it (for example, move the window outsite the screen and back).
But if you move the mouse in the playfield, it should redraw.
my hiscore: 36.694.656
btw: Newer version (2 Stone-Sets, minor changes, smaller size)
http://caosandkin.bei.t-online.de/pureb ... saik-2.zip
size 403kb
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
I think Fred means the mouse reakts very slow when moving fast over the board.
CPU usage is 100 percent if you move the mouse around.
it because of the StartSpecialFX()
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
I think Fred means the mouse reakts very slow when moving fast over the board.
CPU usage is 100 percent if you move the mouse around.
it because of the StartSpecialFX()
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
Hehe, you better join PB chat
I run on XP pro, Fred also.
Whats your OS?
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
Hehe, you better join PB chat
I run on XP pro, Fred also.
Whats your OS?
Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
Small tip: build this structure
(o=empty, #=stone)
oo#oo
o#o#o
#o#o#
o#o#o
And set the 4-neightbour-stone at end of the game (because *2)
What is next:
I have written a new version, with 2 new variants.
The Stone can set to every place, which
Freestyle:
----------
* has no neightbour
* every neightbour has the same color or the same icon
Rand:
-----
* on the border
* with minimum ONE neightbour with the same color or icon
Extreme:
--------
* on the border
* every neightbour has the same color or the same icon
http://caosandkin.bei.t-online.de/purebasic/mosaik.zip
(BTW: I have compressed the bmp and wav in the exe, so the old one can delete.)
http://caosandkin.bei.t-online.de/pureb ... source.zip
Have fun
GPI
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Small tip: build this structure
(o=empty, #=stone)
oo#oo
o#o#o
#o#o#
o#o#o
And set the 4-neightbour-stone at end of the game (because *2)
What is next:
I have written a new version, with 2 new variants.
The Stone can set to every place, which
Freestyle:
----------
* has no neightbour
* every neightbour has the same color or the same icon
Rand:
-----
* on the border
* with minimum ONE neightbour with the same color or icon
Extreme:
--------
* on the border
* every neightbour has the same color or the same icon
http://caosandkin.bei.t-online.de/purebasic/mosaik.zip
(BTW: I have compressed the bmp and wav in the exe, so the old one can delete.)
http://caosandkin.bei.t-online.de/pureb ... source.zip
Have fun
GPI
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB