From c9cad90ce6cdc1fbcc8797d5505b4d784ff1cb8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 14 Jan 2016 15:35:36 -0500 Subject: [PATCH] lib/gamnit: rename simple_2d to flat MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/asteronits/org.nitlanguage.asteronits.txt | 2 +- contrib/asteronits/src/asteronits.nit | 2 +- lib/gamnit/REAME.md | 2 +- lib/gamnit/{simple_2d.nit => flat.nit} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename lib/gamnit/{simple_2d.nit => flat.nit} (99%) diff --git a/contrib/asteronits/org.nitlanguage.asteronits.txt b/contrib/asteronits/org.nitlanguage.asteronits.txt index 9f47066..de34ab1 100644 --- a/contrib/asteronits/org.nitlanguage.asteronits.txt +++ b/contrib/asteronits/org.nitlanguage.asteronits.txt @@ -6,5 +6,5 @@ Issue Tracker:https://github.com/nitlang/nit/issues Summary:Destroy asteroids in this simple 2D sample game made with gamnit Description: -Sample portable gamnit game implemented with the simple_2d API. +Sample portable gamnit game implemented with the flat API. . diff --git a/contrib/asteronits/src/asteronits.nit b/contrib/asteronits/src/asteronits.nit index 2eb5e3a..a2aed95 100644 --- a/contrib/asteronits/src/asteronits.nit +++ b/contrib/asteronits/src/asteronits.nit @@ -22,7 +22,7 @@ module asteronits is android_api_target 15 end -import gamnit::simple_2d +import gamnit::flat import game_logic import spritesheet diff --git a/lib/gamnit/REAME.md b/lib/gamnit/REAME.md index 9d60cc0..7802ab2 100644 --- a/lib/gamnit/REAME.md +++ b/lib/gamnit/REAME.md @@ -8,7 +8,7 @@ It is modular, different parts of the framework are available through different It defines the basic methods to implement in order to obtain a working game: `App::frame_core` to update the screen and `App::accept_event` to receive user inputs. -* `simple_2d` provides an easy to use API for 2D games based on sprites. +* `flat` provides an easy to use API for 2D games based on sprites. Clients of this API must redefine `App::update` to update the game logic and fill `App::sprites` with objects to draw. * `cameras` provides cameras classes to produce MVP matrices which can be fed to shaders. diff --git a/lib/gamnit/simple_2d.nit b/lib/gamnit/flat.nit similarity index 99% rename from lib/gamnit/simple_2d.nit rename to lib/gamnit/flat.nit index 338f736..4c0b103 100644 --- a/lib/gamnit/simple_2d.nit +++ b/lib/gamnit/flat.nit @@ -30,7 +30,7 @@ # It is used to position the sprites in `App::ui_sprites`. # # See the sample game at `contrib/asteronits/`. -module simple_2d +module flat import glesv2 -- 1.7.9.5