Jump to content

  • Log In with Google      Sign In   
  • Create Account

Code Fox

Member Since 24 Nov 2011
Offline Last Active Yesterday, 02:52 PM

#5294895 Best approach for a demo game in short time?

Posted by Code Fox on 03 June 2016 - 10:22 PM

2 months is not a lot of time to learn a complex game engine AND a lower level programming language at the same time. I do not know what you plan on doing in that time, but you may want to consider scaling back to something more reasonable for someone who is new to programming.

 In 2 months, if you are a fast learner, something like Snake or Asteroids is possible. 

 

HERE is a good free E-Book to get you started in C++




#5294699 Switching from C++ to Java

Posted by Code Fox on 02 June 2016 - 02:02 PM

 

 

 Java outlaws global functions

.

public static void someMethod(){
//stuff goes here
}


.

In a way, you can have 'global functions' in Java by declaring a method as static - it's not recommended practice, since it can lead to spaghetti code ...




#5294585 Building a game like "Game of War"

Posted by Code Fox on 02 June 2016 - 12:15 AM

Awe... Godaddy wants like 10k a month for a dedicated server. Ok. There is no way to finish this without money. I'll have to be creative and find a way to make it different so I don't need to make it into an mmo. Maybe just have it like many other games where there is just a live chat.

.

Before dropping any money on a server, you can always test, for free, using 127.0.0.1

 

 How is the coding bits coming long?




#5294574 Building a game like "Game of War"

Posted by Code Fox on 01 June 2016 - 09:51 PM



I don't remember saying easy. I'm taking short cuts to make it more simple. I think it is hard but not as hard as everyone says. I'm learning JavaScript now. Some is familiar.

.

I have a "simple" challenge for you than.

 Using JavaScript / HTML5 ( no need for Unity at this point ), write a program that generates a random maze that can be solved. ( I can easily tell if you copy-paste )

 This kind of programming will be just a small part of the path finding AI required to make an RTS like you have mentioned above.




#5294506 Building a game like "Game of War"

Posted by Code Fox on 01 June 2016 - 11:50 AM

Game Of War looks like a tile based RTS / base building type of game.

 

HERE is a video tutorial to get you started ...

Programming the AI for a game like this is not going to be easy!




#5294001 I Feel Really Stupid Now ...

Posted by Code Fox on 28 May 2016 - 10:52 PM

We all have "one of those days" sometimes

 

 

For over 90 minutes I was attempting to assign a value to an initialized array -  inside of the class body ...

 

 

 

( For you's that aren't familiar with Java, you can't do that - it throws errors )

public class Random{

// Can not do it this way
String a;
a = "Moo!";

// Correct way to do it
String b = "Moo";

// Also correct 
String c;
     public Random(){
     c = "Moo!";
     }

}



#5293997 Testing If 2 Objects Are The Same

Posted by Code Fox on 28 May 2016 - 09:27 PM

  @Override public boolean equals(Object o) {
    if (this == o) {return true;}
    if (o == null || !(o instanceof Test)) {return false;}
    Test tmp = (Test) o;
    return (this.b == tmp.b && Objects.equals(this.a, tmp.a) ); 

So the answer to my question is "no" ?




#5292829 Best Programming Language for Simple Multiplayer Sport Simulation Game

Posted by Code Fox on 22 May 2016 - 01:21 AM

If you do not want to get into complex server modification, I recommend going with a simple PHP / SQL environment. ( You also get to play with HTML5 and JavaScript )

 For windows, a server can be set up in one click for free




#5254765 I want to make a game but i have no skill!

Posted by Code Fox on 30 September 2015 - 06:39 AM

 

This I can agree with. However what I find kind of bad is the constant bashing of indie games on YouTube. Games like this might be bad to us but someone put their heart and soul into it and thought it good enough to share with the world. Probably a lone developer on a low budget or no budget. If this is their first game and they are met with such a hostile reception (see the YouTube comments) why would they ever be tempted to release something better? ...gamers and especially Youtubers can be so mean and child like. Is this what awaits most of us?...

 

.

Simple solution - don't attempt to sell the game on a major publishing site! There are a quite a few malicious "game developers" who intentionally release poor quality game, after poor quality game, after poor quality game ( Digital Homicide is one of the more noteworthy 'companies' ).

 Put your early not-so-good games on sites such as itch.io , and please stop believing that "any" game is good enough to be sold for $$$ .




#5254590 I want to make a game but i have no skill!

Posted by Code Fox on 29 September 2015 - 08:16 AM

then get the skills needed. It's not rocket science, just a lot of hard work.

 

Just don't expect a shortcut and being able to finish an AAA Game in 21 hours....

.

 Just a note: Steam and other online stores are flooded by absolute garbage that are carelessly slapped together in a game engine, such as Unity, GameMaker, or Unreal Engine .... Please PLEASE take your time and study good game design!

 

 Me, and many other people are getting sick and tired of all the "shovelware" - most common being hallway shooters, walking simulators, and first person horror.

[HERE] is an example of a game that was slapped together in a couple hours, and than sold on Steam - no one wants this junk!




#5253055 Battleground Fantasy- crowdfunding question

Posted by Code Fox on 19 September 2015 - 10:24 AM

1: You have to "stand out" to get noticed amongst all the others who have flooded the crowdfunding sites.  Having a professional promo video and artwork is pretty much mandatory.

2: Set your funding goal  low - don't expect many folks to donate to your cause ( but if a lot of folks do, great ! ).

3: Don't over promise. This is becoming a very annoying trend. Only promise what you KNOW you can deliver.

4: Don't set a release date. Too many games are rushed out the door, uncompleted, because of this.

5: Be realistic ( and cost effective ) about the "rewards" you will be giving backers.

 

6: Create a blog that shows backers daily progress you are making on the game.




#5248882 Out of ideas for games.

Posted by Code Fox on 25 August 2015 - 05:42 PM

If you are out of ideas, open a dictionary to a random page and randomly pick a word.

 

 Now slap the words "Simulator 2015" to the end of that word.




#5246469 2D shooting cannon in Java errors

Posted by Code Fox on 14 August 2015 - 08:44 AM

( This code has a little bit of an issue with spaghetti going on, which can make the code hard to read and debug )

 

 The error is a null pointer that was returned by ....

Game.pkg0.Entity.getX(Entity.java:28)

going to that class, we have this ...

public double getX() {
        return position.getX(); } 

tracing that back, we get

private Vector position;

This Vector object is not initiated whenever the Entity object is created - and thus is in a NULL state until it is set.

 

 You need to learn how to 'set' class objects and class verables whenever an object is created, using constructors [ LINK ]




#5243013 Can game development excel with abstract concepts?

Posted by Code Fox on 27 July 2015 - 12:03 PM

 

That meant i would have to click 400x800x5 (1,600,000) times or less!!!

.

If there is a "quantifiable" logic error in the matrix, wouldn't it be easier to to create a dump file with the results of each iteration, than write a script to automatically scan the file and report on all the abnormal ( out of expected bounds ) behaviors ?

 

 Note: I have actually done something like this before to find logic flaws with a fractal-noise program I wrote.




#5242841 can someone please explain how this code works

Posted by Code Fox on 26 July 2015 - 03:57 PM


        //these definitions confuse me a bit
// #1 
        private BufferedImage image = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); 
	int[] pixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData();



        //I know why this gets called
        public void render()
	{
		//this I don't understand
// #2
		BufferStrategy bs = getBufferStrategy();
		if (bs == null)
		{
			createBufferStrategy(3);
			return;
		}
		
                //Screen is our own class, this just fills and array with colour at the moment 
		Screen.render();
		
                 //this just transferes the arrays accross
		for (int i = 0; i < pixels.length;i++)
		{
			pixels[i] = Screen.pixels[i];
		}
		
// #3
		//I didn't know you could define objects like this, can someone please explain this
		Graphics g = bs.getDrawGraphics();

                //these methods are fine
		g.setColor(Color.BLACK);
		g.fillRect(0, 0, getWidth(), getHeight());
		g.drawImage(image, 0, 0, getWidth(), getHeight(),null);	

                //I am assuming this puts the rendered image to the buffer
		g.dispose();
                //and that this renders to the screen
		bs.show();
		
	}

.

#1 - create a new object "Image" of the type BufferedImage. "pixels" is an integer array

 

#2 "bs" is a reference to the method "getBufferStrategy()" ( which returns an object )

 

#3 "Graphics g" is referencing  "bs" ... "getDrawGraphics()" is a method from the object returned by "getBufferStrategy()"






PARTNERS