Game engine used?
Moderator: NBJeff
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
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
010110010110111100100000011011010110000101101101011011010110000100100000011011000110100101101011011001010111001100100000011000100111100101110100011001010010000001100011011011110110010001100101
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
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
-
- level2
- Posts: 205
- Joined: Sat Jun 01, 2013 12:36 pm
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
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.
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?!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.
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
-
- level4
- Posts: 750
- Joined: Sat Nov 24, 2012 8:57 pm
- Location: Oregon
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
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:
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';
}
}
-"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.
-"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.
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
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
Who is online
Users browsing this forum: No registered users and 13 guests