Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Jul 2002
Offline Last Active Today, 01:42 PM

#5270221 Python for 1st language?

Posted by on 08 January 2016 - 11:30 PM

Do you agree with this statement?

We agree with this statement. Use Python and PyGame and create games smile.png

#5269702 x, y, width, height to UV

Posted by on 06 January 2016 - 04:46 PM

Check the answer below.

#5269622 A programming language showdown for my use case.

Posted by on 06 January 2016 - 08:34 AM

I agree with Viper. If you're already comfortable with Java, then use Java. Why lose productivity over online religious wars? As far as limitations go, the only limitation that you're going to have is what you can get done due to your limited knowledge. And you'll overcome that continuously by learning and doing.


So your endeavor is reasonable. Your tools are sufficient. Your limitations are temporary at best. Go forth and conquer the universe, Young Netizen.

#5268724 trying to think up a new way to level up

Posted by on 01 January 2016 - 12:17 PM

So, the better you are at playing the game, the more experience you get, making the game easier, making the game less enjoyable, making you want to play less.
But, the worse you are at playing the game, the less experience you get, making the game harder (or slower), making the game less enjoyable, making you want to play less.

Whoa, there, Mr. Assumption. How did you get all of that? There's been no mention of mechanics, balancing, or content.

Challenging the player to be a better player. That's bad?
Reducing the amount of grinding by getting automatic EXP. That's bad?
Rewarding the player for being good or getting better. That's bad?
Encouraging (not forcing) the player to travel and explore the game world. That's bad?

Hmmm. Yeah, we disagree on a lot.

#5268722 Random Circles in a Circle

Posted by on 01 January 2016 - 11:54 AM

Rewritten. Though none of the circles move.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">


    <canvas id="myCanvas" width="1000" height="1000" style="border:3px solid #c3c3c3;">
    It appears that your browser does not support HTML5 and the canvas element.

    <script type="text/javascript">
        function drawCircle(x, y, r, color) {
            color.arc(x, y, r, 0, Math.PI * 2, true);

        function getColor() {
            var hexColor = "#000000";
            return hexColor.toUpperCase();

        function overlapCheck(x, y, radius) {
            var pass = false; // not sure of the initial value
            for (var i = 1; i < 4000; i++) {

                if (
                    ((x + radius + Circle[i][2]) > Circle[i][0])
                     (x < (Circle[i][0] + radius + Circle[i][2]))
                     ((y + radius + Circle[i][2]) > Circle[i][1])
                     (y < (Circle[i][1] + radius + Circle[i][2]))
                   ) {
                    //AABBs are overlapping

                    var x_circle = (x - Circle[i][0]);
                    var y_circle = (y - Circle[i][1]);
                    distance = Math.sqrt((x_circle * x_circle) + (y_circle * y_circle));

                    if (distance < radius + Circle[i][2]) {
                        pass = false;
                    } else {
                        pass = true;

                return pass;

        //Construct Array and first entry
        var Circle = [];
        for (var i = 0; i < 4000; i++) {
            Circle[i] = [, , , ];

        Circle[0][0] = 500;
        Circle[0][1] = 500;
        Circle[0][2] = 50;
        Circle[0][3] = "#000000";

        // Fill Array
        for (var i = 1; i < 10; i++) {
            do {
                var x = Math.floor((Math.random() * 1000));
                var y = Math.floor((Math.random() * 1000));
                var radsize = Math.floor((Math.random() * 5) + 1);
                if (radsize == 1) { radius = 2.5; }
                if (radsize == 2) { radius = 5; }
                if (radsize == 3) { radius = 10; }
                if (radsize == 4) { radius = 20; }
                if (radsize == 5) { radius = 40; }

                var pass = overlapCheck(x,y,radius);
                //pass = true
            while (pass == false)
            while loop check variable = !overlapCheck(x,y,radius)
            Current variable is just to bypass
            Circle[i][0] = x;
            Circle[i][1] = y;
            Circle[i][2] = radius;
            Circle[i][3] = "#000000";


        var theCanvas = document.getElementById("myCanvas");
        var canvasContext = theCanvas.getContext("2d");

        circles = Circle.length;
        for (var i = 0; i < circles; i++) {
            canvasContext.fillStyle = Circle[i][3];
            drawCircle(Circle[i][0], Circle[i][1], Circle[i][2], canvasContext);

#5267654 Replacing ECS with component based architecture, or traditional OOP, or somet...

Posted by on 23 December 2015 - 09:08 AM

Sorry I don't have anything helpful to add, but...

As such an ECS is a component based architecture.

The use of inheritance here made me chuckle.

#5260156 The Big List of Good Design Practices

Posted by on 02 November 2015 - 11:37 AM

When possible, get others to test your game and give feedback. Do it in the alpha stages.

#5258318 Is there any space left for games about zombies?

Posted by on 21 October 2015 - 08:05 AM

Killing stuff with reckless abandon knowing that they are no longer human is fun. Space setting, jungle setting, Vampiric setting, urban setting. All are great as long as story is easily digestable, the mission are clear, and the game gives you a sense of urgency, purpose, and fun.


In short, one can never get enough zombies. :)

#5257736 So this fine southern gentleman walks up to you and...

Posted by on 17 October 2015 - 06:20 PM

The sad thing is if this language goes live and 5 years later there's a 550% increase in the number of US Southern programmers.

#5256376 What makes a City Builder fun?

Posted by on 09 October 2015 - 09:33 AM

I can't counter a Godzilla... just clean up the mess sad.png


But isn't the part of city planning and building? Unforeseen disasters and planning to repair it.

#5256226 Relation between mines & factories

Posted by on 08 October 2015 - 09:57 AM

I don't understand... Write this down with numbers maybe?

Like: you have 5 factories and 3 mines, each mine extracts 1 unit of minerals, each factory requires 1 unit of minerals, therefore 2 factories are idle (that's how it works now). So, 3 units of manufacturing productions are made per turn.


Going with your example, let's say that each mine has 170,450 units of wood. You send out miners and each miner can procure 1 to 5 units of wood. So the factories are now receiving their units of wood. Then you can set the production rate. Every 300 units produce something, Every 200 units produce something. Or Every 100 units produce something. But the number of units determine the quality of the product. You can spread out how the wood is distributed as well. So all 3 mines supply all 5 factories. Or all 3 mines supply only 3 factories. Or any other combination.

#5256223 What makes a City Builder fun?

Posted by on 08 October 2015 - 09:43 AM

Out of all the SimCitys I've played, the SNES I thought was the best. It was simple, engaging, and you got instant feedback. The rules were easy to learn, but not as easy to master. And who doesn't like watching a creation grow successfully, but at the same time, being able to (somewhat) micromanaging a situation.

#5256202 Relation between mines & factories

Posted by on 08 October 2015 - 08:07 AM

It could have a type of point to quality construction.


Say you have 3 factories. For it to make A quality stuff, it needs at least 300 points of wood. 200-299 is B quality. 100 - 199 is C quality. Anything under 100, just doesn't get made until you get more materials. So you need to make sure you have enough mines but you're not worried about ratio, just quantity.

#5256001 Question about C# if statements for Simple Game

Posted by on 07 October 2015 - 07:01 AM

Console.WriteLine("Let's play a game! I'm looking for a number 1-10");
int rightNumber = 3;
int inputtedNumber = 0;
int points = 100;

  inputtedNumber = int.Parse(Console.ReadLine());

  if (rightNumber < inputtedNumber) {
    Console.WriteLine("Too high!");
    points = points - 1;
  else if (rightNumber > inputtedNumber) {
    Console.WriteLine("Too Low!");
    points = points - 1;
  else {
    Console.WriteLine("You got it!");
} while (rightNumber != inputtedNumber && points > 0)

Console.WriteLine("Your points equal " + points);

Sorry, there were several things bothering me about the code and I just felt compelled to provide my own version.

#5255899 Scrolling: The leap from Slordax to Commander Keen

Posted by on 06 October 2015 - 03:32 PM

I have no answer for you. But it's a good question!