Jump to content
xisto Community

khalilov

Members
  • Content Count

    281
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by khalilov


  1. It is not hard to make a text based game, all you need is simple PHP and mysql knowledge. Ofcourse your not gona make a money maker from the first attempt but with training and repetition you will get better quickly.I don't know any sites that teach how to make games but i know sites which teach php and mysql.

    http://www.tizag.com/phpT/syntax.php

    http://www.w3schools.com/PHP/php_ajax_intro.asp

     

    As for designing, your game needs to be atractive, so i suggest you learn some CSS here

    http://www.maketemplate.com/

    They offer good ways to make CSS script, simple fill in what you want and you'll get the code.

     

    good luck =)


  2. I suggest you train and do it yourself because if it turns to a potential money maker you'd be forced to split cash then and thats hard in online games, how will you split donations? what if someone is hiding the real amount of cash donated?...So just practice and you'll fine =), unless you just want to do it for fun and not for money.


  3. At the moment mycents don't credit instantly because they are considered as money and therefore it should be hard to spam your way up to a pro plan or so. Iam 100% with this security tactic but I'd like to see how much mycents are awaiting crediting. Just to know how much i need to get my daily required mycents (monthly need/30). Now normally i post as much as i can and collect as much mycents as i can but at sometimes there wouldn't be something good to talk about and i'd be too lazy to start a topic but i would if i was short in daily mycent upkeep.So what iam suggesting is whenever i make a post, a pending mycent number is credited instantly (like old credit system) but its useless, its just a number that shows how much mycents i will get assuming they aren't spam. When iam credited mycents, that number will be decreased from the pending one.On a side question, is their any way to increase my server's processing power by paying extra $? Whats the server power currently available also?


  4. Ah thx, i agree it shouldn't be infinite cuz if something goes wrong my server will lag and needs to be restarted or so. I'll set it to 2 minutes or so. The reason i want to give so much time is that that script might need to modify up to 1000 rows in database tables. As i mentioned I am making a game and each user in the game will have about 30 rows, might increase in the future. So 30 active (hopefully more:P) users=900 +rows. Any cronjob that updates half the players' resources or battles before timing out wouldn't do me good =)


  5. Iam trying to recreate it since iam gona use that alot on my site.

    <link rel="stylesheet" type="text/css" href="map.css" />[tab][/tab][tab][/tab]<style type="text/css">/*<![CDATA[*/[tab][/tab][tab][/tab]/* =======[tab][/tab][tab][/tab]Template CSS[tab][/tab][tab][/tab]============*/[tab][/tab][tab][/tab]* html { margin:0; padding:0;}[tab][/tab][tab][/tab]html, body { height: 100%; }[tab][/tab][tab][/tab]#wrapper { min-height: 100%; }   /* div you want to stretch */[tab][/tab][tab][/tab]body { margin:0 auto; text-align:center; background-color: #eeddbb; }[tab][/tab][tab][/tab]p { margin: 1em; padding:1em; text-align:left }[tab][/tab][tab][/tab]#wrapper { margin: 0 auto; width:1000px; background-color: #ffeecc; border: 1px solid #666666; }[tab][/tab][tab][/tab]#header { margin: 1em 0; text-align:center; border-bottom: 1px solid #666666; }[tab][/tab][tab][/tab]#header h1 { margin: 1em 0; }[tab][/tab][tab][/tab]#footer { margin: 1em auto; padding: 1em; text-align:center; border-top: 1px solid #666666; }[tab][/tab][tab][/tab]#footer a { margin: 1em auto; padding: .15em; }[tab][/tab][tab][/tab]/* =======[tab][/tab][tab][/tab]Page specific CSS Below this line[tab][/tab][tab][/tab]============*/[tab][/tab][tab][/tab] a:link {  color: white; text-decoration: none; }   a:visited {  color: green; text-decoration: none; }    a:hover { color: orange; }[tab][/tab][tab][/tab]h1,h2 {[tab][/tab][tab][/tab]text-align:center;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]h3 {[tab][/tab][tab][/tab]text-decoration: underline;[tab][/tab][tab][/tab]text-align: left;[tab][/tab][tab][/tab]margin-left:5em;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]h4 {[tab][/tab][tab][/tab]margin: .5em 5em;[tab][/tab][tab][/tab]text-align: left;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]p {[tab][/tab][tab][/tab]margin: 4px 5em;   /* ==> left and right margins are critical. see notes on page */[tab][/tab][tab][/tab]padding: 4px 10px;[tab][/tab][tab][/tab]text-align:justify;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]/*[tab][/tab][tab][/tab]=================================[tab][/tab][tab][/tab]start of Tooltip css code here[tab][/tab][tab][/tab]================================= */[tab][/tab][tab][/tab]a.info{[tab][/tab]   [tab][/tab][tab][/tab]text-decoration:none;[tab][/tab][tab][/tab]font-style:italic;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]a.info:hover {[tab][/tab][tab][/tab]z-index:125;[tab][/tab][tab][/tab]background-color:#ffff66;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]a.info span{[tab][/tab][tab][/tab]display: none;  /* hide the span text using this css */[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]a.info:hover span{ /*the span will display just on :hover state*/[tab][/tab][tab][/tab]display:block;[tab][/tab][tab][/tab]position:absolute;[tab][/tab][tab][/tab]top: 0px;[tab][/tab][tab][/tab]left: -100px;[tab][/tab][tab][/tab]width:100px;   [tab][/tab][tab][/tab]border:1px solid orange; /* border colour */[tab][/tab][tab][/tab]background-color:yellow; /* background colour here */[tab][/tab][tab][/tab]color:#000000;[tab][/tab][tab][/tab] /* text colour */[tab][/tab]  [tab][/tab][tab][/tab][tab][/tab][tab][/tab]text-align: center;[tab][/tab][tab][/tab]font-size: 15px;[tab][/tab][tab][/tab][tab][/tab][tab][/tab]z-index:30;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab].images {[tab][/tab][tab][/tab]vertical-align:bottom;[tab][/tab][tab][/tab]}[tab][/tab][tab][/tab]/*]]>*/[tab][/tab][tab][/tab]</style><!--[if lte IE 6]><style type="text/css">#wrapper {height: 100%;}</style><p class="map"><?php$x=$_GET['x'];$y=$_GET['y'];$x*=74;$y*=57;echo "<a class=info><img class='images' alt='' style='position:relative;top:".$y."px;left:".$x."px;'src='pic/mark.jpg' ><span>mark</span></a>";?><?php /* <table  class=boldtable1 cellspacing=0><link rel="stylesheet" type="text/css" href="map.css" /><?php$x=$_GET['x'];$y=$_GET['y'];  for($j=0;$j<10;$j++)    {echo "<tr>"; for($i=0;$i<10;$i++)   {if(($i!=$x)||($j!=$y)){?>   <td>[tab][/tab]<?php echo "<a href=map.php?x=".$i."&y=".$j.">"; ?>   [tab][/tab]<img src="pic/grass.jpg"></a></td>    <?php }   else { ?>   <td><img src="pic/mark.jpg"></td>   <?php }}  echo "</tr>";  }</table>  */?></p>

    The CSS file is still the same, the pic that will reveal mark when hovered over does not appear in IE, can you do your magic and tell me what you did cuz i keep modifiing and recreating the code, so i don't wanna keep asking the same subject over and over :/

    Note: some of the code (CSS part) i got from the internet, do i need to quote it too? do i use quote and code tags at the same time?

    Edit: whats with the tabs in the code O.o

  6. Thanks it worked now, can you tell me what you changed exactly in the code and what was denying its view in IE?And regardign the http:// part i already do it the way you guys say i just did it like this this time cuz i couldn't find what was wrong and was trying out all possible errorsXD


  7. If you have an index.php file in your Game folder, you cannot see any files, with IE you can only start the index.php program.Just for fun, rename your index.php to index.something, rename your index.html to index.somethingelse and you will be able to see the files with IE6.


    Doesn't work


    * {  margin: 0;  padding: 0;}a:link {  color: white; text-decoration: none; }a:visited {  color: green; text-decoration: none; } a:hover { color: orange; }.boldtable {position:relative;top:216px;left:250px;font-family:sans-serif;font-size:12pt;color:yellow;background-image: url(C:\wamp\www\Game\pic\grass.jpg); 	background-repeat: repeat;} .boldtable1 TD, .boldtable1 TH{font-family:sans-serif;font-size:8pt;width=74px;height:57px;color:yellow;}p.map{ position:relative;left:20%;top:20%;width:70%;height:70%;background-image: url(grass.jpg); 	background-repeat: repeat; }
    <link rel="stylesheet" type="text/css" href="map.css" /><p class="map"><?php$x=$_GET['x'];$y=$_GET['y'];$x*=74;$y*=57;echo "<img style='position:relative;top:".$y."px;left:".$x."px;'src='file:\\C:\wamp\www\Game\pic\mark.jpg'>";?><?php /* <table  class=boldtable1 cellspacing=0><link rel="stylesheet" type="text/css" href="map.css" /><?php$x=$_GET['x'];$y=$_GET['y'];  for($j=0;$j<10;$j++)    {echo "<tr>"; for($i=0;$i<10;$i++)   {if(($i!=$x)||($j!=$y)){?>   <td>	<?php echo "<a href=map.php?x=".$i."&y=".$j.">"; ?>   	<img src="file:\\C:\wamp\www\Game\pic\grass.jpg"></a></td>    <?php }   else { ?>   <td><img src="file:\\C:\wamp\www\Game\pic\mark.jpg"></td>   <?php }}  echo "</tr>";  }</table>  */?></p>
    C:\wamp\www\Game\pic\grass.jpg
    C:\wamp\www\Game\pic\mark.jpg
    Are the direct links to the pics, the grass (background) is appearing normally, mark isn't loading in IE, but its loading in Firefox.

  8. I don't hate Photoshop though, I think it is marvelous, but if you don't need anything special why waste lots of money when you can use Gimp which is free/open source and be happy. :rolleyes:

    One of the ups of living in a 3rd world country is that i can get photoshop along with like 50programs for 1$ :P, so i'll get photoshop and download GIMP and use them both. Both can make pics with transparent backgrounds right?

  9. It didn't work =), but this did:

    <link rel="stylesheet" type="text/css" href="map.css" /><p class="map"><?php$x=$_GET['x'];$y=$_GET['y'];$x*=74;$y*=57;echo "<img style='position:relative;top:".$y."px;left:".$x."px;'src='file:\\C:\wamp\www\Game\pic\mark.jpg'>";?></p>
    Turns out the <div></div> were messing things up. By putting the image directly inside <map> tags its 0,0 were set to top left of map. Then by using relative positioning it works. Thanks guys, especially for the relative position thing, didn't know it =). Alot of recoding to do O.o

  10. I am making a coordinate system

    p.map{ position:absolute;left:20%;top:20%;width:70%;height:70%;background-image: url(grass.jpg); 	background-repeat: repeat; }

    An object(another image) appears in a certain position depending on GET vars
    <p class="map"><?php$x=$_GET['x'];$y=$_GET['y'];$x*=74;$y*=57;echo "<div style='position:absolute;top:".$y."px;left:".$x."px;'><img src='file:\\C:\wamp\www\Game\pic\mark.jpg'></div>";?></p>

    The position of the pic comes outside the map, whats the code so that that style coordination is relative to map, meaning 0px,0px are at top left of map box.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.