Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 08:31
    jcubic closed #691
  • Oct 14 08:31
    jcubic closed #692
  • Oct 14 08:31
    jcubic closed #695
  • Oct 14 08:31
    jcubic closed #699
  • Oct 12 17:09
    jcubic edited #684
  • Oct 12 17:07
    jcubic labeled #684
  • Oct 12 17:06
    jcubic edited #684
  • Oct 03 15:16
    jcubic commented #683
  • Oct 03 15:16
    jcubic commented #683
  • Oct 01 13:46
    jcubic commented #693
  • Oct 01 13:43
    jcubic edited #700
  • Oct 01 13:40
    jcubic labeled #700
  • Oct 01 13:40
    jcubic opened #700
  • Oct 01 12:39
    jcubic labeled #691
  • Oct 01 12:26
    jcubic labeled #692
  • Oct 01 12:22
    Ra0R commented #693
  • Oct 01 12:21
    jcubic labeled #699
  • Oct 01 12:20
    Ra0R commented #693
  • Sep 30 10:33
    jcubic commented #699
  • Sep 30 10:27
    jcubic labeled #699
Jakub T. Jankiewicz
@jcubic
I was hoping that making gaiman will make it simpler, single file with whole game
jagg3127-alt
@jagg3127-alt
ah ok
Jakub T. Jankiewicz
@jcubic
it depend on what you want. Look how much time it took to make so little
codding take time
jagg3127-alt
@jagg3127-alt
yeah it took forever but plugins make it easier
Jakub T. Jankiewicz
@jcubic
after you see the end result you may think, Oh so short but it take time to make it so
jagg3127-alt
@jagg3127-alt
i could always expand after i first release it
i wanna do so much in so little time but that is physically and mentally impossible
Jakub T. Jankiewicz
@jcubic
Writing game like this tame time, like with everything
jagg3127-alt
@jagg3127-alt
yep write code test debug repeat
Jakub T. Jankiewicz
@jcubic
You can try mange your work. Create issues on GitHub where you will write what you want step by step. Split the work into parts that can be done independently and just take one solve it and pick next one, If you fix all the issues you will have a game.
I would start with creating issue for single feature you want
jagg3127-alt
@jagg3127-alt
ok
but what if i made a game where you have to escape a room and then another and another and theres a terminal i each room
Jakub T. Jankiewicz
@jcubic
I have project that have 159 issues, when I want something I create an feature issue, when I found a bug I create issue with bug report
jagg3127-alt
@jagg3127-alt
ah ok
but what if i made a game where you have to escape a room and then another and another and theres a terminal i each room
Jakub T. Jankiewicz
@jcubic
if each terminal is diffrent not similar in any way then you will nee to write each terminal from scratch
jagg3127-alt
@jagg3127-alt
yep but it would be a fun game afterwords
Jakub T. Jankiewicz
@jcubic
I think that you will need to some how create a way to generate those terminal, based on some data, but it's lot of work
jagg3127-alt
@jagg3127-alt
yeah but i wont give up on it
Jakub T. Jankiewicz
@jcubic
Lot of games was created by first writing editor for creating games and then creating game in that editor
jagg3127-alt
@jagg3127-alt
how would i do that
Jakub T. Jankiewicz
@jcubic
Write code or use a tools that will help you
jagg3127-alt
@jagg3127-alt
so where would i get these tools
Jakub T. Jankiewicz
@jcubic
I think that for this specifc task you will need to write the tool first
jagg3127-alt
@jagg3127-alt
so how do i do that
Jakub T. Jankiewicz
@jcubic
Example tool is this https://github.com/jcubic/gaiman
jagg3127-alt
@jagg3127-alt
ok
Jakub T. Jankiewicz
@jcubic
it's a language, to create it I used tools called parser generator and code generator
jagg3127-alt
@jagg3127-alt
ok this is getting deep ill be right back
Jakub T. Jankiewicz
@jcubic
I think you have two options, create GUI editor or write a language that will generate the games
First require to write CSS/HTML/JavaScript
But I think that language will be better, you can use any editor you want
You write simple code that you would like your code to be written and then create langauge that will allow you to write that game like this
I'm wondering it would be possible to make gaimain generate PHP code and generate your game
jagg3127-alt
@jagg3127-alt
you would help me with your generator? i dont think its necesary
but if you wanna try go ahead
Jakub T. Jankiewicz
@jcubic
Maybe will do this, but not right now
jagg3127-alt
@jagg3127-alt
ok should we talk on this or a different chat cause i have a chat on gitter specific to my coding stuff
Jakub T. Jankiewicz
@jcubic
If you want to keep logs in one place we can chat in different place
jagg3127-alt
@jagg3127-alt
yeah that would be great
sent a link
jagg3127-alt
@jagg3127-alt
my code is messed up could you check it out im gonna go eat dinner
jagg3127-alt
@jagg3127-alt
its typing ${$log} instead of the beginning thing also when i go into the first log it types it twice
so could you help???
Jakub T. Jankiewicz
@jcubic
Sorry I've made mistake it should be:
<?php
  function logs($token, $choice = 0) {
    $this->valid_token($token);
    global $logs;
    if (isset($logs[$choice])) {
      $log = $logs[$choice];
      if ($choice == 0) {
        return '[[ send "$log::logs" ]]';
      } else {
        return '[[ send "$log::logs::1000" ]]';
      }
    } else {
      throw new Error('Invalid choice');
    }
  }
$logs not ${$logs} it was left over from previous code.
and no It will not echo twice because the function is called once and only one return is called at a time
first return is when you type just logs without the number and the other return when you type a number