We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LDPhysics platform game
#1
I'm going to have a go at a LDPhysics based game - I've never actually written a whole game using this, only demos, so fancy having a go.  I liked the approach AbsoluteBegginer took sharing the stages of his development of AI game so plan to do the same here.  LDPhysics uses the Box2D physics engine (as was used for Angry Birds and many other physics based games) and is very powerful, but does need a bit of physics knowledge.  When I added it to LD extension I wrote some documentation for it that you can see here.

I plan the game to be based on a platform system with some main game goal, with a player that can find stuff to help like bombs, arrows to shoot ropes to climb etc.  The player will pick things with left mouse and action things with right mouse button and move with arrow keys.  The physics engine works best with things happen roughly on the scale of 1m, which by default is set to 10 pixels.  Initially I will stick with this and make the game area 1000x800 pixels which corresponds to 100x80 m.  I will make my player 10*25 pixels which is quite small, but see how I get on.

The first challenge is to move the player nicely.  InBox2D you don't generally set position and velocity, you interact through forces, impulses and rotational torques.  This is so the player interacts nicely with the physics world and doesn't just 'teleport' about, get hit by things and can fall off ledges etc.  This may be be tricky, I haven't tried this so will see how it works out.

I will start with a blank game template - NJVR762.000 and will post as it develops - any ideas/suggestions along the way very welcome.
[-] The following 3 users Like litdev's post:
  • AbsoluteBeginner, ata, z-s
Reply


Messages In This Thread
LDPhysics platform game - by litdev - 06-27-2024, 11:59 AM
RE: LDPhysics platform game - by z-s - 06-27-2024, 12:34 PM
RE: LDPhysics platform game - by litdev - 06-27-2024, 04:09 PM
RE: LDPhysics platform game - by eddylo - 06-27-2024, 06:33 PM
RE: LDPhysics platform game - by AbsoluteBeginner - 06-27-2024, 06:49 PM
RE: LDPhysics platform game - by litdev - 06-27-2024, 08:08 PM
RE: LDPhysics platform game - by z-s - 06-28-2024, 02:31 AM
RE: LDPhysics platform game - by litdev - 06-28-2024, 10:22 AM
RE: LDPhysics platform game - by eddylo - 06-28-2024, 07:30 PM
RE: LDPhysics platform game - by litdev - 06-29-2024, 09:38 AM
RE: LDPhysics platform game - by AbsoluteBeginner - 06-29-2024, 10:56 AM
RE: LDPhysics platform game - by z-s - 06-29-2024, 11:20 AM
RE: LDPhysics platform game - by litdev - 06-29-2024, 06:59 PM
RE: LDPhysics platform game - by AbsoluteBeginner - 06-30-2024, 05:28 PM
RE: LDPhysics platform game - by litdev - 06-30-2024, 07:18 PM
RE: LDPhysics platform game - by AbsoluteBeginner - 06-30-2024, 08:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)