Giter Site home page Giter Site logo

love2d-demos's Introduction

love2d-demos

A collection of (not necessarily playable) demos written in Löve, mainly used to learn Lua and Löve.

All of the source code is licensed under the GPLv3. The artwork however is subject to miscellaneous licenses, which are presented in the credits section of each demo (and possibly within the demo itself.)

In order to play them, you have to have Löve installed. Then simply download the .love-file and open it with Löve.

A word on GLES

If you want to play around with code that uses shaders, etc. and use it on mobile, make sure to test it with GLES like so:

$ LOVE_GRAPHICS_USE_OPENGLES=1 love game-dir

To make sure, that you're graphics card actually does use GLES, here is an example, that should fail (complaining about initializing x in line 1) if GLES is used and should run fine otherwise:

function love.load()
    shader = love.graphics.newShader([[
        extern number x = 1.0;
        vec4 effect(vec4 color, Image tex, vec2 tc, vec2 sc){
            vec4 pixel = Texel(tex, tc);
            return pixel;
    ]])
end

Thunderstorm

Thunderstorm screenshot

A little scene displaying a thunderstorm in a desolate city. It's main focus is generating time-delayed sound and graphics.

Löve-File: thunderstorm-v0.2.0.love

Credits: Credits

A circle amongst squares

Circle screenshot

A little horror "game", in which you are a circle amongst squares. This one has directional sound in it, so earphones may be a good idea. It has some collision detection (using bump) and I played around with a pixel shader and am quite pleased with the results. :-)

How to play: Move with w, a, s, d or the cursor keys. Press escape to exit.

Löve-File: circle-amongst-squares-v0.2.1.love

Credits: Credits

love2d-demos's People

Contributors

messersm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

chiatzenw

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.