GithubHelp home page GithubHelp logo

moonlove-faststart's Introduction

MoonLove-Faststart

Some templates and basic engine structure using Lua, Love and Moonscript. Intended to be used specially in game jams such as Ludum Dare and for rapid game prototyping.

Getting Started

Install both Love and Moonscript and make sure they are both in your system PATH. You can check that by opening a console and typing "love" and "moon", they both should give message asking for paramenters. With that all set, open the Faststart.sublime-project file and select the "Compile my Project" build system (Tools > Build System > Compile My Project) and press Control + B to run your project!

Here's how the folders are supposed to work:

  • bin: This is where the .exe or similar will be placed when you pack your game for distribution.
  • game: Lua files that Löve will use will be placed here by the compiler.
  • game/assets: Images, sound and other asset files shoud be placed here.
  • game/lib: External libs are placed here.
  • src: Moon files that will be compiled into Lua files by sublime.

Usage

First add the root folder to Sublime (Project > Add Folder to Project). Then you can just make your game in the src/ folder, placing your .moon files in there. Select the build Compile Moon and Run Love build system (Tools > Build System > Compile Moon and Run Love) and press Control + B to run your game.

Utilities

Other libraries included

  • Lume: An amazing library full of great utilities for games.

To Do

There is still a lot of things to improve here, here's the main ones for now:

  • Make a better engine framework
  • Scripts for packing your Love File
  • General utilities
  • Placeholder assets

moonlove-faststart's People

Contributors

allenoliver avatar saint11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

moonlove-faststart's Issues

Having problems with Faststart.sublime-project

Trying to using the system Build that you provided in your project, but each time i try to use it wit Ctrl+B SublimeText outputs me this error
"init() got an unexpected keyword argument 'build_systems'
[cmd: None]
[path: "all the paths in my system";]
[Finished] "
And when go to (Tools > Build System > Compile My Project) there i no "Compile my Project" build system, there only is Faststart

Sorry resolved by myself, i didn't open properly the project -____-"

Avoid global build system

Not an issue, rather some kind of suggestion if you find it appropriate.

You can avoid adding a global build system, and create a project-specific build system inside your myproject.sublime-project file. Assuming it is at the root of your project directory, something like that would achieve the same thing as your global build system (without requiring to select the build system, it will be selected automatically when opening the project):

{
	"build_systems": [
		{
			"shell_cmd": "moonc -t lua/. src/. && love lua/.",
			"file_regex": "^\\s*(.+):(\\d+): (?:lines \\d+-\\d+|character(?:s \\d+-| )(\\d+)) : (.*)$",
			"name": "Compile my project",
			"working_dir": "${project_path:${folder:${file_path}}}"
		}
	],
	"folders": [
		{
			"name": "My Project Name",
			"path": ".",
			"folder_exclude_patterns": [
				".git"
			],
			"file_exclude_patterns": [
				"*.sublime-*"
			]
		}
	]
}

The file_regex can be removed. I added it because that's the one I use for haxe (so it's not correct for your use case) to parse the build result and make links out of errors so that I can click on one and go to the corresponding file/line. Maybe you could adjust it to your build command (if not, just drop this line).

I added some other examples of project configuration, like renaming folders and excluding files/directories in your "folders" view.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.