Giter Site home page Giter Site logo

glaw's Introduction

Glaw

The goal of GLAW is to provide a collection of basic functionalities to help developping games.

Quickstart

Using Quicklisp

You can get glaw directly from quicklisp by just doing:

(ql:quickload "glaw")

This may not be the latest git version depending on when I pushed changes.

If you want the latest git version first clone this repository:

git clone git://github.com/patzy/glaw.git

Then change to the new glaw directory and issue the quickload call from here.

If you want to try the examples just do:

(ql:quickload "glaw-examples")

Manual install

Get the following required dependencies (and their respective dependencies):

If you want to use the included extension you may need:

  • imago: glaw-imago for image based assets loading
  • lispbuilder-sdl and lispbuilder-sdl-image: glaw-sdl for image based assets loading

Get ASDF and configure it so glaw's .asd are in the search path and then run:

(asdf:operate 'asdf:load-op :glaw)

for the lib itself, or:

(asdf:operate 'asdf:load-op :glaw-examples)

for the examples.

Examples

A few examples are provided in the examples/ directory, they depend on:

  • glop for windowing and input.
  • imago for texture loading.

It is possible to use the examples with lispbuilder-sdl and lispbuilder-sdl-image instead of glop and imago. To do so:

  • change the :depends-on line in glaw-examples.asd
  • use :glaw-examples-sdl in *features* instead of :glaw-examples-glop

Note that I don't test often with lb-sdl and it may not work/compile properly.

To run an example:

 (glaw-examples:run-example 'glaw-examples:example-name)

Where example-name may be one of the following:

  • sprites
  • gui
  • particles
  • text
  • pathfinding
  • texture
  • tilemap
  • sound
  • skeletons
  • console
  • input

In all examples you may use ESC or q to quit and alt-s to toggle render stats display.

There's also a simple breakout game using glaw here, a more polished asteroid clone here and an adaptation of the clans board game here.

glaw's People

Contributors

patzy avatar acieroid avatar neil-lindquist avatar

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.