Skip to content

Commit 5a40177

Browse files
committed
Bumped to v3.0.0 and made important changes.
- Updated README and ChangeLog to meet the latest release - Added tons of new levels - Fixed error on `BoardParser`, where it would "see" the level's width as two characters smaller - Updated all previous levels to meet the above requirement
1 parent afa1b83 commit 5a40177

36 files changed

+759
-257
lines changed

ChangeLog

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
07-28-2014 v3.0.0
2+
* Gameplay: Levels! Now you can make your own maps and mazes
3+
that the snake will play on. As expected, each
4+
level has it's own score count.
5+
* Gameplay: Made possible for the game levels to scroll.
6+
Now you can set the game map to move on all
7+
4 directions under a configurable speed.
8+
* Interface: Made subtle changes on the GUI; specially on
9+
the text dialogs and menu items.
10+
* Development: Rewrote score files format from scratch.
11+
It is now way more extensible; way better than
12+
a mere binary blob.
13+
* Development: Tons and tons of bug fixes. Namely random
14+
game crashes.
15+
* Interface: Game now ships with menu and icon files. It
16+
gets installed in a way that shows nSnake on
17+
the menus of most Linux distributions.
18+
119
05-29-2014 v2.0.5
220
* Development: Completely removed any C++11 features from the
321
codebase. Game is now portable across old

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# General Info
4040
PACKAGE = nsnake
41-
VERSION = 2.0.8
41+
VERSION = 3.0.0
4242
DATE = $(shell date "+%b%Y")
4343

4444
# Install dirs

README.md

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ with textual interface.
1212

1313
Here's some features:
1414

15-
* Customizable gameplay, appearance and keybindings;
16-
* Neat GUI-like interface with nice animations;
17-
* Lots of possible game modes, with scores saved for each;
18-
* Levels - create your own easily;
15+
* Customizable gameplay, appearance and key bindings
16+
* GUI-like interface with nice animations
17+
* Levels - create your own [easily][level_wiki];
18+
* Lots of possible game modes; teleport, scroll map, random walls,
19+
etc. Scores are saved for each setting.
1920

2021
## Controls
2122

@@ -33,24 +34,18 @@ All user settings are located at `~/.local/share/nsnake`.
3334

3435
## Levels
3536

36-
nSnake looks for game levels on `~/.local/share/nsnake/levels`.
37-
They have a `.nsnake` extension and are simple text files.
37+
nSnake looks out for level files on `~/.local/share/nsnake/levels`. By default
38+
it installs stock levels on `/usr/share/games/nsnake/levels`, so make sure to
39+
copy them before playing.
3840

39-
The file format is very easy to edit; open `levels/arena00.nsnake`
40-
with any text editor and follow the instructions there.
41-
42-
Don't forget to copy default levels under the `levels` directory
43-
to the one specified above.
41+
Levels have a `.nsnake` extension and are simple text files. The file
42+
format is very easy to edit; check out [the wiki][level_wiki] for a quick guide.
4443

4544
## Dependencies
4645

47-
nSnake depends on two libraries, `ncurses` and `yaml-cpp`.
48-
49-
### ncurses
50-
51-
This library shows cute things on the terminal.
46+
nSnake only depends on `ncurses`; it's used to show cute things on the terminal.
5247

53-
For nSnake you need the package *ncurses dev*. Note that it's _not_ the default
48+
Make sure you have the package *ncurses dev*. Note that it's _not_ the default
5449
that comes with your distro.
5550

5651
| Distro | Installation command |
@@ -61,22 +56,6 @@ that comes with your distro.
6156

6257
If you know the means to install on other distros, [please tell me][issues].
6358

64-
### yaml-cpp
65-
66-
This library is used to parse **YAML** configuration files.
67-
68-
With it `nsnake` has a human-readable settings file; you can easily backup
69-
and manually change it, although we the preferred method would be from inside
70-
the game.
71-
72-
| Distro | Installation command |
73-
| -------------- | ---------------------------------- |
74-
| Ubuntu/Debian | `apt-get install libyaml-cpp-dev` |
75-
| Fedora | `yum install yaml-cpp-devel` |
76-
| Arch Linux | `pacman -S yaml-cpp` |
77-
78-
If you know the means to install on other distros, [please tell me][issues].
79-
8059
## Usage
8160

8261
Briefly, the following shell commands should configure,
@@ -210,4 +189,5 @@ I raise my hat to:
210189
[gitcafe]: https://gitcafe.com/alexdantas/nsnake
211190
[googlecode]: http://code.google.com/p/nsnake/
212191
[contrib]: https://github.com/alexdantas/nSnake/graphs/contributors
192+
[level_wiki]: https://github.com/alexdantas/nSnake/wiki/How-to-create-your-own-levels
213193

levels/3-hearts.nsnake

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ date=Jul 23, 2014
44
comment=Cute, right?
55

66
start
7-
################################################################################
8-
# #
9-
# #### #### #
10-
# ################# #
11-
# ################### #
12-
# ################### #
13-
# ################# #
14-
# ############## #
15-
# ########### #### #### #
16-
# ##### ################# #
17-
# # ################### #
18-
# ################### ##### #### #
19-
# ################ ################ #
20-
# ############# ################## #
21-
# ######### ################## #
22-
# ##### ################ #
23-
# # ############ #
24-
# @ ######## #
25-
# ## #
26-
# #
27-
################################################################################
7+
##############################################################################
8+
# #
9+
# #### #### #
10+
# ################# #
11+
# ################### #
12+
# ################### #
13+
# ################# #
14+
# ############## #
15+
# ########### #### #### #
16+
# ##### ################# #
17+
# # ################### #
18+
# ################### ##### #### #
19+
# ################ ################ #
20+
# ############# ################## #
21+
# ######### ################## #
22+
# ##### ################ #
23+
# # ############ #
24+
# @ ######## #
25+
# ## #
26+
# #
27+
##############################################################################
2828
end
2929

levels/NSNAKE.nsnake

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ date = Jul 23, 2014
77
comment = How meta. Watch out for the letter K!
88

99
start
10-
################################################################################
11-
# #
12-
# #
13-
# #
14-
# #
15-
# # ###### # #
16-
# ## # # ## # ####### # # ###### #
17-
# ### # # ### # ####### # # # #
18-
# # # # ###### # # # ####### #### # #
19-
# # # # # # # # # # #### ###### #
20-
# # ### # # ### # # # # # #
21-
# # ## ###### # ## # # # # # #
22-
# # # ###### #
23-
# #
24-
# #
25-
# @ #
26-
# #
27-
# #
28-
# #
29-
# #
30-
################################################################################
10+
#############################################################################
11+
# #
12+
# #
13+
# #
14+
# #
15+
# # ###### # #
16+
# ## # # ## # ####### # # ###### #
17+
# ### # # ### # ####### # # # #
18+
# # # # ###### # # # ####### #### # #
19+
# # # # # # # # # # #### ###### #
20+
# # ### # # ### # # # # # #
21+
# # ## ###### # ## # # # # # #
22+
# # # ###### #
23+
# #
24+
# #
25+
# @ #
26+
# #
27+
# #
28+
# #
29+
# #
30+
#############################################################################
3131
end
3232

3333
; You can add secret stuff here too!

levels/arena00.nsnake

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ date=Jul 22, 2014
2929
comment=The very first level made for nSnake!
3030

3131
start
32-
################################################################################
33-
# #
34-
# #
35-
# #
36-
# #
37-
# ######################## ###################### #
38-
# # # #
39-
# # # #
40-
# # # # #
41-
# # #
42-
#@ ##### #
43-
# # #
44-
# # # # #
45-
# # # #
46-
# # # #
47-
# ######################## ###################### #
48-
# #
49-
# #
50-
# #
51-
# #
52-
################################################################################
32+
##############################################################################
33+
# #
34+
# #
35+
# #
36+
# #
37+
# ######################## ###################### #
38+
# # # #
39+
# # # #
40+
# # # # #
41+
# # #
42+
# @ ##### #
43+
# # #
44+
# # # # #
45+
# # # #
46+
# # # #
47+
# ######################## ###################### #
48+
# #
49+
# #
50+
# #
51+
# #
52+
##############################################################################
5353
end
5454

levels/arena01.nsnake

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ date=Jul 23, 2014
44
comment=Random level that came across my mind
55

66
start
7-
################################################################################
8-
# # #
9-
# # #
10-
# # #
11-
# # #
12-
# # #
13-
# #
14-
# #
15-
# #
16-
# #
17-
######################## @ ######################
18-
# #
19-
# #
20-
# #
21-
# #
22-
# # #
23-
# # #
24-
# # #
25-
# # #
26-
# # #
27-
################################################################################
7+
##############################################################################
8+
# # #
9+
# # #
10+
# # #
11+
# # #
12+
# # #
13+
# #
14+
# #
15+
# #
16+
# #
17+
####################### @ #####################
18+
# #
19+
# #
20+
# #
21+
# #
22+
# # #
23+
# # #
24+
# # #
25+
# # #
26+
# # #
27+
##############################################################################
2828
end
2929

levels/arena02.nsnake

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name = Arena 02
2+
author = Alexandre Dantas
3+
date = Jul 28, 2014
4+
comment = Nice box in the middle
5+
6+
start
7+
##############################################################################
8+
# #
9+
# #
10+
# #
11+
# ################ #
12+
# #
13+
# # # #
14+
# # # #
15+
# # # #
16+
# # # #
17+
# @ # # #
18+
# # # #
19+
# # # #
20+
# # # #
21+
# # # #
22+
# #
23+
# ################ #
24+
# #
25+
# #
26+
# #
27+
##############################################################################
28+
end

0 commit comments

Comments
 (0)