Giter Club home page Giter Club logo

prim's Introduction

Prim

An original game made by Legendary Games studio, requested by Dimitri Watel. There is a version in C using ncurses, and we have a version made using electron. It was coded by

  • Valentin DREANO
  • Antoine MAN
  • Quentin RAMSAMY- -AGEORGES
  • Ramzy ZEBRIR

Why you should play this game ?

Well this is quite a simple game, you might want to try to challenge yourself and get the highest score, or simply check the code and find how you could customize the game to make it yours, since the game is open-source.

Screenshots

menu.png

menu.png

menu.png

menu.png

menu.png

menu.png

prim's People

Contributors

quentinra avatar ox0rio avatar dependabot[bot] avatar ramzy100 avatar

Stargazers

Antoine Man avatar

Watchers

James Cloos avatar

prim's Issues

Background - image improvement

I don't know if you noticed it or if it was made on purpose but the backgroung of the map change each turn.
Maybe it would be better to make it static when a game party is launched.

Gate - equilibrate game

Maybe make the game better by adding more malus for each garbage, something not fixed like 1.

Settings

It's a bit weird that changing the lang too many times some up the screen reloading, and maybe a way to change the volume faster would be good too.

Also adding keys to do some actions would be nice. And opening the settings during the game too.

How to contribute

Maybe a file explaining how do to read the code for the version_js might be a great idea.

Machine

Add a description a each machine, add a description about the effect on lvl up since it's always the same.

Recycling centers

A recycling center should be less convenient since upgrading it is pretty useless.

Maybe something, like we need 20 garbage to produce a resource and only one, can be produced
per turn.

Score - weird values

The score can take some weird values, such as 8100.0062612 so maybe make a better function.

This sample might help

score <- function (s, g, t, dd, ns, fe, fa){
  score <- s - g
  if (score > 0){
    score <- ifelse(s > 10000 * 2, sqrt(s), s)
    score <- score + score * (1 / log(t))
    score <- score + sqrt(dd / t)
    score <- score + score * (1 / log(ns))
    if( g > 1 ) score <- score - score / log2(g^2)
  }
  if(fe + fa < 10) score <- score / 2
  round(score)
}

score(2322992,1,129,154381563207,400,10,10 )

for (i in sample(1:10000, 50)){
  cat("i=",i, " for ",
    score(10032,i, sample(1:700,1), sample(
      50000:3000000, 1
    ),sample(0:300, 1),350,170 ),
      "\n"
  )
}

Music

Music is reloading each time we are changing a menu

Translation

A lot of values are not translated since v3.

Source image

We should find a better picture for the source.

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.