Discord
Login
Community
DARK THEME

3d Platformer - Community levels!

So, I just recently created a 3d platformer - https://microstudio.dev/i/this_name_is_taken/3dplatformer/ and was wondering if anyone would like to contribute to the 'community levels section'. The best way to create community levels is to clone the project and to start creating the levels you would like in the 'add community levels' section in the 'cube_placements' sprite. I will explain the rundown of how to use my engine here.

All the cubes will be added using the 'addcube function'. It has 10 inputs -

addcube(cubex,cubey,cubez,cubewidth,cubeheight,cubedepth,R_colour,G_colour,B_colour,hitboxtype)

X is right and left, Y is up and down, and Z is forwards and backwards. Note that the cubes width and height is not halved; meaning that a cube with width 100 will have a real width of 200. Also note that the player starts at position 0,0,0 at the start of a level.

There are 4 hitbox types. Hitbox type 0 is ground, hitbox type 1 is the finish, hitbox type 2 is lava, and hitbox type 3 is a bouncy surface. An example of the cube you might start with is one underneath the player at (0,0,-100) with dimensions (200,50,200), colour (0,0,255) and a hitbox type of 0. I use this cube in level 1 and many other levels as the starting cube.

addcube(0,-100,0,200,50,200,0,0,255,0)

Remember to put this inside the 'cube_placements' sprite!

Simply submit those cube placements and I can add those in - make sure to include the name of your level so I can add that as well - I will add your name in the title.

Submit any community levels you have here, using backquotes around your code (top left on keyboard below escape)! DON'T FORGET TO ADD THE NAME OF YOUR LEVEL! :)

`` (but with three backquotes)
code() //Example of how to do formatting, see in use below
mylevelname
``
code()
mylevelname

You after something like this?:

addcube(0,-100,170,200,50,200,0,0,255,0)
addcube(0,-100,570,200,50,200,0,255,100,2)
addcube(0,-100,970,200,50,200,0,255,100,2)
addcube(0,-100,1370,200,50,200,0,255,100,0)
addcube(0,0,400,200,50,20,255,0,255,0)
addcube(0,0,800,200,50,20,255,0,255,0)
addcube(0,0,1200,200,50,20,255,0,255,0)
addcube(0,0,1600,200,50,20,255,0,255,2)
addcube(0,-100,1770,200,50,200,200,0,0,1)
confusion

Level name is confusion

I have a question: how do you get the cubes to move?

Edit: You should randomise what order the community levels are done in

Amazing! I thought nobody was ever going to create a level for my platformer :). Added!

Getting cubes to move uses a variable that is always increasing at a constant rate - called 'globaltimer' - which increases by 1/60 each frame. Getting normal cubes to move probably won't work (because of the way I coded it) but moving every other block should work. I use it in level five with the platforms that move up and down - addcube(0,200*sin(globaltime*2)-100,320,200,100,20,255,0,0,2) (it has a y position of 200sin(globaltime*2)-100).

P.S it took me 3 times to figure out the trick to the last pink block XD

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community