This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LDDestroier's profile picture

Help with platformer engine?

Started by LDDestroier, 26 March 2016 - 10:44 PM
LDDestroier #1
Posted 26 March 2016 - 11:44 PM
I'm trying to make meself a game (my FIRST game), and make it a platformer. However, I can't figure out for the life of me how to go about doing that.

Here's my broken engine: WBG8q8Bv
Here's a level editor (works): nnRGZiZA

Here's a level I made with it: iQ0nccG5
Here's the palate that goes with it: L38TJebN

The idea is that you have two files: a level file, and a palate file. The palate stores the tiles and their properties (eg. solid, color, character, effect of gravity…), and the level stores the arrangement of those tiles, and nothing more (so far.) The problem I have with this is that I can't figure out the math and coding for a proper platformer, and thinking about it makes my brain hurt. Can someone help me?

By the way, before you look at the engine code, download the editor, level and palate, then run "editor levelname palatename".

Editor controls:
SpoilerArrow keys: scroll around
Click on hotbar to select item and show it's name
Click on screen to place that item (air deletes items)
CrazedProgrammer #2
Posted 27 March 2016 - 01:23 PM
I can't really help you, since I don't know how to go about making a platformer game.
Platformer games might seem simple to make, but the logic in the collision detection and physics are very complicated to properly Iimplement.
I'd suggest starting with a simpler to implement game (preferably 70's-80's arcade games :P/>) with only a few objects and variables so you won't get overwhelmed.
Edited on 27 March 2016 - 11:26 AM
Bomb Bloke #3
Posted 27 March 2016 - 02:08 PM
I'd suggest asking a rather more specific question about where you're getting stuck. You're not even hinting which mechanics are giving your trouble here, and I for one am not inclined to read through your entire script just to figure out the basics of what your question should be.
LDDestroier #4
Posted 27 March 2016 - 06:34 PM
I think I'll just abandon it. Lock this thread, please.