Skip to content
Sign UpLog In
Profile icon

BAWAHWAK

@Creyek
Engine specialist | I mostly program in C++.
  • 2D player movability (C++) (Non destructive/Beta)

    Cover page
    Made with C++11

    Using this to make edits to transfer over to the main project, I expect many bugs.

    collisions are a headache

    Working on this whenever I have the time.

    Press S on the intro to skip it. Press R to reset player position (in case you fall)

    Recent comments (16)
    CharlieAsplund
    CharlieAsplund
    2 months ago

    I am unable to make it load

    Creyek
    Creyek
    2 months ago

    Step 1: Brute force collisions for the time being Step 2: Remove everything and create a collision function to make a more robust system

    Possible implementation idea:

    (function) collide(Object1, Object2); _________________^_______^

    Use to get object information (Positions, etc.) do the math inside of the function - keep in while loop (will also handle the boundaries and functionality of the collisions)

    If doesn't work: Curl up into a ball and cry.

    CheeseTheRat
    CheeseTheRat
    3 months ago

    Doesnt load

    GLiQue
    GLiQue
    3 months ago

    Now I also wanna learn C++

    GLiQue
    GLiQue
    3 months ago

    So coool

    CharlieAsplund
    CharlieAsplund
    3 months ago

    What does the non destructive mean in the repl name?

  • SDL2 For C++

    Cover page
    Made with C++

    The program simply outputs to the console if SDL is initialized or not.

    Recent comments (0)
Repls
Community
Creyek
Creyek
published a Repl
2 months ago
0
Funniest thing ive ever witnessed
Funniest thing ive ever witnessedthis guy is kind of pathetic, and after calling out him posting scratch projects on a platform that shouldn't have them (replit) i have been blocked lol.
Creyek
Creyek
@1Tim 2 months ago
Creyek
Creyek
published an Update
2 months ago
5
2D player movability (C++) (Non destructive/Beta)
2D player movability (C++) (Non destructive/Beta)Using this to make edits to transfer over to the main project, I expect many bugs. collisions are a headache Working on this whenever I have the time. Press S on the intro to skip it. Press R to reset player position (in case you fall)
Roadmap
Step 1: Brute force collisions for the time being Step 2: Remove everything and create a collision function to make a more robust system Possible implementation idea: >(function) collide(Object1, Object2); >__^^ Use to get object information (Positions, etc.) do the math inside of the function - keep in while loop (will also handle the boundaries and functionality of the collisions) If doesn't work: Curl up into a ball and cry.
Creyek
Creyek
@Creyek Updated collisions, now you can jump and stand on the other blocks. Unfortunately, the side of the walls teleports you, I'll have to deal with that later.2 months ago
Creyek
Creyek
published a Repl
3 months ago
0
Rock Paper Scissors
Rock Paper Scissorsthis literally took 2 minutes to write.
Creyek
Creyek
published a Repl
3 months ago
5
2D player movability (C++) (Non destructive/Beta)
2D player movability (C++) (Non destructive/Beta)Using this to make edits to transfer over to the main project, I expect many bugs. collisions are a headache Working on this whenever I have the time. Press S on the intro to skip it. Press R to reset player position (in case you fall)
CheeseTheRat
CheeseTheRat
Doesnt load3 months ago
Creyek
Creyek
Step 1: Brute force collisions for the time being Step 2: Remove everything and create a collision function to make a more robust system Possible implementation idea: >(function) collide(Object1, Object2); >_________________^_______^ Use to get object information (Positions, etc.) do the math inside of the function - keep in while loop (will also handle the boundaries and functionality of the collisions) If doesn't work: Curl up into a ball and cry.2 months ago
Creyek
Creyek
published a Repl
3 months ago
6
2D player movability (C++)
2D player movability (C++)Character controller. May start work on obstacles. comment about any bugs :)
CharlieAsplund
CharlieAsplund
This is impressive!3 months ago