Skip to content

kan6868/Template-Platformer-Solar2D

Repository files navigation

Template-Platformer-Solar2D

Introduction

This is a sample project to help learn how to build a platformer with Solar2D. Includes basic features such as Player Controller, Movement Platform, Level Controller, etc.

Scenes

  • Start Scene:
    • This is simply a starting scene, where we allow the player to start the level.
  • Game Scene:
    • This scene is controller all of gameplay.
    • The map data will be read by Ponytiled module and create the map.
    • Extends all plugins by object type in map data.
    • Controller gamestate.

How to create new level?

    --in game.lua
    -- load world
    self.level = params.level -- replace your level file here
    print("lode map ".."level_"..self.level)
    local pathData = "res/maps/" .. "level_"..self.level .. ".json"

image

Credit

Map editor: https://www.mapeditor.org/
Map plugin: https://github.com/ponywolf/ponytiled

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages