项目作者: fstrahij

项目描述 :
Project on Faculty of Organization and Informatics in Varaždin on course Logical Programming.
高级语言: Prolog
项目地址: git://github.com/fstrahij/Pokemon-Game.git
创建时间: 2018-02-12T15:31:47Z
项目社区:https://github.com/fstrahij/Pokemon-Game

开源协议:

下载


Pokemon-game-prolog

Project on college Faculty of Organization and Informatics in Varaždin on course Logical Programming.

Requirements:

  • SWI-Prolog (In this project has been used 32 bit SWI-Prolog 7.2.0)

  • Connector/ODBC (OPTIONAL). If u want to use database for saving stats.

  • Database (OPTIONAL). If u want to save your current position and stats u should install it. I have used XAMPP with MariaDB:

Database setup:

  1. download and install ODBC connector
  2. go to ODBC Data Sources -> Add -> MySQL ODBC 5.3 Unicode Driver
  3. set Database: bdprolog
  4. set user and password if u need them to connect to database

Game setup:

  • put images in your SWI-Prolog instalation folder(\swipl\xpce\bitmaps)
  • start pokemon.pl

List of predicates:

Predicate Description
start initialize new window
uzmi(O) get object O into inventory. Object O can be poke_lopta(eng. pokeball) or pokedex
idi(X) go onto location X
analiza_pokemona(P) analize pokemon P with pokedex
zatvori_pokedex close pokedex
uhvati_pokemona(P) get pokemon P into invetory. P is pokemon name
odabir_pokemona(P1, V) P1 is pokemon in inventory. V is type of attack, can be obicni(regular) or posebni(special)
spremi save location and stats into database
ucitaj get saved location and stats from database

List of locations:

  • kuca
  • pocetni_svijet
  • vatreni_svijet
  • vodeni_svijet
  • travnati_svijet
  • elektricni_svijet
  • dvorana

    Screenshoots:


    alt text
    alt text
    alt text
    alt text
    alt text
    alt text
    alt text
    alt text
    alt text