Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!

Code Fox

Member Since 24 Nov 2011
Online Last Active Today, 02:26 PM

#5209388 Code written inside a Render() loop

Posted by Code Fox on 08 February 2015 - 05:17 AM

The memory block will be over written by "new" data every time there is a call to do it.


 All the code "bits" that only need executed once can be spun off as a separate method ... or the whole render() method could be spun off as a separate class, with overloaded methods .

#5209111 How to save the enemy formation in a STG game.

Posted by Code Fox on 06 February 2015 - 12:49 PM

This can be accomplished by creating an Object array. Each object has an instance of an enemy, and the location it in in the world.



// Example of a class that can be saved and iterated from an array
// Written in Java

public class EnemyListExample{

Enemy e;
Group g;
int x;
int y;

     public EnemyListExample(Enemy enemy, Group, group, int X_Loc, int Y_Loc){
          e = enemy;
          g = group;
          x = X_Loc;
          y = Y_Loc
     public Enemy getEnemy(){ return e; }
     public Group getGroup(){ return g; }
     public int getX_Loc(){ return x; }
     public int getY_Loc(){ return y; }

#5208039 Roguelikes and "dice"-based combat

Posted by Code Fox on 01 February 2015 - 10:09 AM

Dice based computer games really do not do too well with "modern" players ... this guy actually explains it a lot better than I can ...


#5207141 Images in Java

Posted by Code Fox on 28 January 2015 - 05:09 AM

[ LINK ]

#5205872 Creating a game with Python

Posted by Code Fox on 21 January 2015 - 04:49 PM

If you want better graphics than what Pygame is capable of, there are the graphic libraries of Direct Pythion 11 and PyOpenGL .

#5203323 Killer game programming in java

Posted by Code Fox on 10 January 2015 - 02:24 PM

A good free beginner's Java book would be Think Java: How to Think Like a Computer Scientist .


 It's not geared specifically toward games, however once you have completed reading AND doing all the assignments in the book, you'll have more than enough knowledge to make your own games.


Note: It is not a good idea to read Java related books that are 5+ years out of date, as most of the more advanced topics are quite out-of-date .

#5202725 Anyone know what API and library Pokemon games are built with?

Posted by Code Fox on 07 January 2015 - 07:44 PM


The first Pokemon game was written for the original GameBoy  ... the dev kit I linked to compiles to the original ROM format from normal C code .

 More info on developing for GameBoy can be found here and here .



 Edit: The Pokemon cartridges apparently had an issue with memory management ...


#5202399 Geographical realities

Posted by Code Fox on 06 January 2015 - 04:32 PM

It is going to be hard to find a job at your age of 35.

 Programming / development is VERY discriminatory about age in the US.

#5198981 Is Java a good Language for Games?

Posted by Code Fox on 18 December 2014 - 01:23 PM

You can do manual garbage disposal if that is an issue ...

whatever = null;

#5198719 Something good for beginners... maybe

Posted by Code Fox on 17 December 2014 - 01:46 AM

IMHO - It's not a good idea to show a "beginner" a program they have to compile themselves to use ... just saying.

#5196447 Basic game knowledge? Where should i start?

Posted by Code Fox on 05 December 2014 - 09:38 AM

"Game development knowledge" is a very ... unspecific term.


 How about you try to create a basic 2D game in Java WITHOUT using third party libraries.

Games are nothing more than a graphical program run in a loop  - a "knowledgeable" Java programmer can accomplish this in less than 2 hours . [ LINK ]

#5196416 How they made this game?

Posted by Code Fox on 05 December 2014 - 04:29 AM

That site could have used almost any "back end" language to generate those pages.

 It is mostly likely PHP since over 82% of all web sites use it ( and the website uses a PHP session ID tag ).


 Interestingly, when I looked at the web page using my debugging tools, there is no JavaScript being used.


If you would like to try to make your own PHP web site THIS LINK is very helpful .

 If you are running Windows, you can grab a free PHP web server from HERE .

 If you are running MAC, there is a version HERE .

 If you are running Linux, you may ( or may not ) have have one already installed LINK .

#5195246 Where It all begins

Posted by Code Fox on 28 November 2014 - 02:40 PM

To help you get better at programming - make the same game in all 3 languages !


Different tools are used for different purposes, and figuring out what "works best" in each situation is a great thing to know.



Using Python for 3D graphics rendering is not a good idea.

Using C++ for a typical 2D game is a huge waste of time.

Using Java to write simple game scripts is not a good use of resources.


#5194548 Some help with creating a Street Fighter style Beat Em' Up game?

Posted by Code Fox on 24 November 2014 - 11:43 PM

Trying to do a more "complex game" as your first project may not be the best thing. Most folks end up getting very frustrated and than quitting .

 I would highly recommend reading THIS free book and doing all programming exercises it has in it .


 To answer your question ... there is a third party library for Python called PyGame - you still need to have a very good understanding of how to code before using it.

#5194122 MAKE A CHOICE engines

Posted by Code Fox on 22 November 2014 - 07:40 AM

Being able to write basic programs is a requirement, regardless of what game engine you use.

 If you are new to programming, I recommend reading THIS and THIS free book.


Once you have the basics of programming, the most "new to programming" friendly engine I know is ALICE 3D .