Game engine used?

General chit-chat and minor questions about just about anything

Moderator: NBJeff

User avatar
paktsardines
level5
level5
Posts: 1752
Joined: Mon Oct 01, 2012 11:10 am
Location: Australia

Postby paktsardines » Sun Aug 04, 2013 4:13 am

Byte code? You kids got it easy. In my day we didn't even have bytes... we had panels... eight levers to a panel. ;)

010110010110111100100000011011010110000101101101011011010110000100100000011011000110100101101011011001010111001100100000011000100111100101110100011001010010000001100011011011110110010001100101
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sun Aug 04, 2013 4:16 am

MAdMaN wrote:
xander wrote:ANSI C (C99 for those who care). Everything else is crap. :P

xander

Assembly or go home.

I wasn't meaning to get into who can program at the lowest level---I just really, really like C. It is clean and simple, and allows you to get pretty close to the hardware without having to speak assembly. The language is old enough and the compilers optimized enough that you can be pretty sure of getting good, fast code. Since most of what I do in terms of programming is mathematical simulation, C is the way to go. I can write a one-off pretty quickly, let it spin for a while, and be done.

xander
User avatar
paktsardines
level5
level5
Posts: 1752
Joined: Mon Oct 01, 2012 11:10 am
Location: Australia

Postby paktsardines » Sun Aug 04, 2013 9:37 am

Plus completing something in C is far more satisfying than some girly language like PHP.
User avatar
MAdMaN
level4
level4
Posts: 897
Joined: Mon Jul 19, 2004 4:12 pm
Location: Manchester, England

Postby MAdMaN » Sun Aug 04, 2013 10:52 am

xander wrote:I wasn't meaning to get into who can program at the lowest level

I was just being silly (I'm not a programmer).
iScripters
level2
level2
Posts: 205
Joined: Sat Jun 01, 2013 12:36 pm

Postby iScripters » Sun Aug 04, 2013 10:53 am

paktsardines wrote:Plus completing something in C is far more satisfying than some girly language like PHP.


PHP ftw :(
User avatar
paktsardines
level5
level5
Posts: 1752
Joined: Mon Oct 01, 2012 11:10 am
Location: Australia

Postby paktsardines » Sun Aug 04, 2013 2:44 pm

My full-time job is php programmer, and it's a full-time stupid language.


edit: Here's just one example of many:
Let's say:
$i="0";
$j=null;
k="\0";
l=""

In php, does $i == $j? yes
In php, does $i == "0"? No, it goddamn doesn't. wtf?
In php, does $j == $k? No.
In php, does $k == $l? No.
In php, does $l == null? No.

Php is liquid poo, bottled as a cure-all. iScripters, there's no room for your charleton religion. PHP should never have been used for anything but a pretty average templating tool.
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Postby NeatNit » Sun Aug 04, 2013 6:13 pm

paktsardines wrote:My full-time job is php programmer, and it's a full-time stupid language.


edit: Here's just one example of many:
Let's say:
$i="0";
$j=null;
k="\0";
l=""

In php, does $i == $j? yes
In php, does $i == "0"? No, it goddamn doesn't. wtf?
In php, does $j == $k? No.
In php, does $k == $l? No.
In php, does $l == null? No.

Php is liquid poo, bottled as a cure-all. iScripters, there's no room for your charleton religion. PHP should never have been used for anything but a pretty average templating tool.
Are you... Serious... What?!
User avatar
paktsardines
level5
level5
Posts: 1752
Joined: Mon Oct 01, 2012 11:10 am
Location: Australia

Postby paktsardines » Mon Aug 05, 2013 1:16 am

Yes, I'm serious. Happy to answer/debate specifics if you'd like.
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Postby NeatNit » Mon Aug 05, 2013 7:36 pm

paktsardines wrote:Yes, I'm serious. Happy to answer/debate specifics if you'd like.

First question: Do you want to kill yourself?




Second question: Why don't you?
HerrJoebob
level4
level4
Posts: 750
Joined: Sat Nov 24, 2012 8:57 pm
Location: Oregon

Postby HerrJoebob » Mon Aug 05, 2013 10:25 pm

paktsardines wrote:Let's say:

$i="0";
$j=null;

In php, does $i == $j? yes


Why does $i==$j? Is $i="0" a PHP syntax for assigning null? If so that is pretty jacked.

As a C++ programmer the rest kinda sorta make sense to me...
User avatar
paktsardines
level5
level5
Posts: 1752
Joined: Mon Oct 01, 2012 11:10 am
Location: Australia

Postby paktsardines » Tue Aug 06, 2013 1:57 am

Yeah, php stupidly treats a zero in quotes as null. It make life difficult when you want to compare anything to the character '0'

The following illustrates some more oddities, if you run php over it:

Code: Select all

$values = array(
           '0 (numeric)' => 0,
           "'0'" => '0',
           '"0"' => "0",
           '"\0"' => "\0",
           '"0\0"' => "0\0",
           'null' =>  null,
           "''" => '',
           'false' => false,
           'str_false' => 'false',
           'true' => true,
           'str_true' => 'true'
);

foreach ($values as $name => $value) {
        print_r("Name:$name\n");
        print_r('isset:' . yay_nay(isset($value)) . "\n");
        print_r('is_null:' . yay_nay(is_null($value)) . "\n");
        print_r('empty:' . yay_nay(empty($value)) . "\n");
        print_r('is true:' . yay_nay($value == true) . "\n");
        print_r('is false:' . yay_nay($value == false) . "\n\n");
}

function yay_nay ($value) {
        if ($value == 1) {
                return 'yes';
        }
        else {
                return 'no';
        }
}
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Tue Aug 06, 2013 5:45 am

paktsardines wrote:--==<snip==--

You know, it is shit like that which makes me never regret my decision to study pure mathematics, and stay the hell away from anything that might be remotely considered applied, practical, or useful.

xander
Daiky
level1
level1
Posts: 22
Joined: Sat Jul 13, 2013 10:01 pm

Postby Daiky » Tue Aug 06, 2013 8:42 am

-"What is a good game language/ engine to use for a simulation game?"
-"Visual studio c++"
-"Will look into this. Once again thank you for the USEFUL information provided!"

- discussing php quirks

Why didn't anyone just tell the OP that the engine is (home-made and) based on SDL? That would be imho the most useful answer/post for the OP in this entire thread.

Trying to compile some simple SDL game examples and then tweaking/modding them is a great place to start learning C++, the visual studio IDE and the SDL libraries. And with some dedication and a lot of free time, he might be able to start writing his game... after 5 years or so.
Or more likely he will get frustrated at some point, underestimating the amount of work needed to write games and abandons his idea and just plays games instead of trying to make one.

In that case, it didn't matter what you answer/post in this thread, hmm, so discussing php quirks might be even more useful in the end. Only the title of the thread is confusing.
User avatar
paktsardines
level5
level5
Posts: 1752
Joined: Mon Oct 01, 2012 11:10 am
Location: Australia

Postby paktsardines » Tue Aug 06, 2013 8:55 am

Why didn't anyone just tell the OP that the engine is (home-made and) based on SDL?


Because internets.
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Tue Aug 06, 2013 3:44 pm

Daiky wrote:-"What is a good game language/ engine to use for a simulation game?"
-"Visual studio c++"
-"Will look into this. Once again thank you for the USEFUL information provided!"

- discussing php quirks

The OP got the information that he thought he wanted. Thread over. He was happy, we were happy. Why not discuss the quirks of PHP?

Daiky wrote:Why didn't anyone just tell the OP that the engine is (home-made and) based on SDL? That would be imho the most useful answer/post for the OP in this entire thread.

Looks like you just did. You are hereby awarded one internets.

xander

Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests