BALANCE (WIP)

Advanced game related topics
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by IceSoft »

infratec wrote:...
Is this a 'legal' trick :?:
In 0.0.3? Yes it is legal in this version.
But you see the version number is in a early state, so wait for the next version which will havea new block form: triangles
infratec wrote:...
Is this a 'legal' trick :?:
Or should you do something to avoid this?
Bernd
I am on it:´
Next version will have triangles...so your trick will never work in all cases.
Also a distance field is planed. If your player block collide with this field: an earthquake or any other stuff will be raised

@endo,
Thanks for your crash dump.
I will look on it and tell you the reason later.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by Vera »

Thanks for the adjustments - it now runs fine starting with FPS 92 :D

>>> Score: 609 <<<

Image

Well, in the first game I already reached 132 when I accidentally clicked into the free space while scrolling. Some games later a slim but large pile seriously lost it's balance (by 199) and starting falling over in very slow motion. That's when I knew it'll take time until a box will pass the bottom line so I clicked what I could and achieved these 609. Afterwards I could lean back and enjoy for more than ten minutes the slow snowflake-like falling of all these boxes (at a framerate of 6-8 and maximum CPU load).
What a great advantage by a 'poor' equipment :mrgreen:

I also found that the game stays mouse-sensitive even if it's without focus behind another window.
And I would have liked to scroll by keyboard as well, because it's quite exhausting by mousewheel when you often scroll down and up to stuff holes or when continuing the building of the lower (left behind) sides or just to have look how high it's already on the whole.

cheers ~ Vera
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by IceSoft »

Hello Vera,
Thanks for feedback.

Most of your proposals are implemented with 0.0.4:
- Scroll is possible with Keys (Arrowkeys Up/Down and scoll speed is faster as with the Mousewheel)
- Your player block have to always above the "Borderline" (see screenshot)
- Player block can be rotate (Arrowkeys left/right)
- New block type: Triangle (see screenshot)
- Player block is also a sprite (see screenshot)

Screenshot:
Image
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by IceSoft »

@IdeasVacuum and @endo

Please try this one: This early 0.0.4 version has an OnError check implemented for more info about the chrash.

Attention: The borderline check is notworking in this version!
http://www.morty-productions.de/icesoft ... nError.zip
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
endo
Enthusiast
Enthusiast
Posts: 141
Joined: Fri Apr 30, 2004 10:44 pm
Location: Turkiye (istanbul)
Contact:

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by endo »

Hi,
Here is what V0.0.4 says:
A program error was detected.
Error message: Invalid memory access
error code: -1073741819
code address: 4230091
target address: 0
sourcecode line: 308
register content
eax: 0
ebx: 0
ecx: 1444912
edx: 1453488
ebp: 4150612
esi: 3588997
edi: 0
esp: 1245044

do you still need memory dump?
-= endo (registered user of purebasic since 98) =-
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by IceSoft »

endo wrote:do you still need memory dump?
No.
Seems to be a bug in the MP3D Engine.
I have addressed this bug to the MP3D developers.

Thanks.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by IdeasVacuum »

A program error was detected:

Error Message: Invalid memory access
Error Code: -1073741819
Code Address: 4215653
Target Address: 0
Sourcecode line: 323
Sourcecode file: E:\_Balance_\Balance_0.0.4.pb

Register content:
EAX = 0
EBX = 1
ECX = 20390384
EDX = 0
EBP = 1310704
ESI = 13621708
EDI = -2147483647
ESP = 1310568
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D Physic Engine Chipmunk + Graphic Engine MP3D

Post by IceSoft »

Thanks guys for OnError messages.
I got a MP3D fix.
But I will make some additional stuff bevore I will send the next version.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D physic game)

Post by IceSoft »

Update to 0.0.5:
Downloadlink on the first post.
There is also an OnError check there. If you have probs...please send me the OnError entry.

History 0.0.5:
- Scroll is possible with Keys (Arrowkeys Up/Down and scoll speed is faster as with the Mousewheel)
- Player block can be rotate (Arrowkeys left/right)
- New block type: Triangle (see screenshot)
- Player block is also a sprite (see screenshot)

I think this feature is not needed:
- Your player block have to always above the "Borderline" (see screenshot)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: BALANCE (2D physic game)

Post by Vera »

Again, this is a neat version. I like the new elements, they go together well and make pretty pictures. Image

But there's a major disadvantage by the extrem sensibility of overweight. Seems as if already few pixels knock the balance down and the tumbling is very fast. You can't build up high 'cos there's no scope (Spielraum) and time to plan the placing of the objects.

There's also another effect that very early the hole 'building' starts shivering and the elements start sliding (top-triangles will partly slip down, overlaying on the element below). This can never be counterbalanced and will always lead to a final overweight.

Another point is that on newplay the first element doesn't show off and will be inserted as outlined display. (I take is as 'surprise of the initial stone' :wink: )

cheers ~ Vera
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D physic game)

Post by IceSoft »

Update to 0.0.6

[NEW] Rotate Block with the mouse wheel
[FIX] Internal redesign

Image
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: BALANCE (2D physic game)

Post by blueznl »

Add glue, nails, rubber bands, balloons, rain and fire to up the challenge a bit... just balancing is what too many games do, but how about adding some crazy items?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: BALANCE (2D physic game)

Post by Vera »

Hi IceSoft,

ups - now I'm a bit shocked. :? . After playing with all these nice colors and various shape and sizes this has now become dull stupid. Not only the reduction to three plain shapes but also the exact reapearing order of the elements quickly makes it unappealing to continue playing.

Besides: the red triangle displays one further black line as a right angle starting from the lower right corner upwards. (outline of the quadrat it's derived from?) plus it often sags half way down over the block it is placed on.
The balance is good and the rotation by mousewheel works fine.

glad' I still got the previous versions :mrgreen:

cheers ~ Vera
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: BALANCE (2D physic game)

Post by IceSoft »

Vera wrote:ups - now I'm a bit shocked. :? . After playing with all these nice colors and various shape and sizes this has now become dull stupid. Not only the reduction to three plain shapes but also the exact reapearing order of the elements quickly makes it unappealing to continue playing.
I thought it is too hard. That was the reason for only 3 bricks types.
Vera wrote:Besides: the red triangle displays one further black line as a right angle starting from the lower right corner upwards. (outline of the quadrat it's derived from?) plus it often sags half way down over the block it is placed on.
On my gracard it was working well. On another machine I see what you mean. Thanks.
Vera wrote:The balance is good and the rotation by mousewheel works fine.
Thanks for positive feedback. I thought I get never one ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
endo
Enthusiast
Enthusiast
Posts: 141
Joined: Fri Apr 30, 2004 10:44 pm
Location: Turkiye (istanbul)
Contact:

Re: BALANCE (2D physic game)

Post by endo »

Where is the link for latest (0.0.6) version? Download link leads to v0.0.3?
-= endo (registered user of purebasic since 98) =-
Post Reply