Skip to content

Otakon/MVC-Game-Sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVC-Game-Sample

Screenshot

Screenshot

A simple game written in Java demonstrating the MVC pattern. The goal of this game is to trap the cats by pushing the blocks. Compile with Java 1.6 or higher.

Creating new levels

You can create .txt files and set the program to parse it, example configuration:

XXXXXXXXXXXXXXXXXXXXXX
X                    X
X                    X
X    bbbbbbbbbbbb    X
X   bbbbbbbbbbbbbb   X
X   bbb        bbb   X
X   bbb        bbb   X
X   bbb   m    bbb   X
X   bbb        bbb   X
X   bbb        bbb   X
X   bbbbbbbbbbbbbb   X
X    bbbbbbbbbbbb    X
X                    X
X          c         X
XXXXXXXXXXXXXXXXXXXXXX

where

x or X UnmovableBlock
b or B MovableBlock
m or M Mouse
c or C Cat
t or T Trap
h or H Cheese

License

Copyright (C) 2014  Nima Ghafoori

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

About

A simple game written in Java demonstrating the MVC pattern.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%