![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on LUA vs. C++ within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; The lowdown is that I am very new. When I say very I actually mean very very. Whats the best ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
The lowdown is that I am very new. When I say very I actually mean very very. Whats the best way to get started LUA or C++. From what ive seen LUA is easier for noobs but C++ is way more advanced and powerful. So basically I would appreciate it if I could have your views on it as I hope it will help more people than myself.
|
|
|
|
|
|
#2 | |
![]() |
Quote:
|
|
|
|
|
|
|
#3 |
![]() |
lua most deinitely altho lua is still hard to learn so ud be best not to start on anyting too hard.
theres soem great tutorials by both whitehawk and pspmilliomaire whihc you can find easily in the homebrew or dev setion of these forums i think. gd luck ![]() p.s. i apologise for my spelling, i got bored and cracked open the vodka. lol...
__________________
[quote=Urza the Tyrant][B][COLOR=Purple] Its hard to convince people of your opinion when you type like a moron.[/COLOR][/B][/quote] |
|
|
|
|
|
#4 |
![]() ![]() Tha Sigerator
|
lol, if i wern't about to go i'd make a beautiful "posting while intoxicated" sig for u....AWW WELL see yaz
btw. go for lua if your not 100 percent ready to engulf urself in hard arse coding
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -
|
|
|
|
|
|
#7 |
![]() |
start with c++.
trust me, youll appreciate the decision few months down the line... it might be difficult right now, but once you get the hang of it, you can make the psp dance..ok maybe not, but you get my point
|
|
|
|
|
|
#8 |
![]() ![]() SHOOP DA WHOOP
|
C++ is really hard to learn but i think in the longrun it is worth it...(c++ is more accepted and can be used in more situations)
but as your just starting out try learning lua first
|
|
|
|
|
|
#9 | ||
![]() |
Quote:
Quote:
![]() Ok well how about I start with C++ and if I find it way too hard then I will just move down to LUA? |
||
|
|
|
|
|
#10 |
![]() ![]() AKA Homer
|
I'd say go for C. It's quite simple and when you know it it's simple to just move to C++.
|
|
|
|
|
|
#11 | |
![]() |
Quote:
|
|
|
|
|
|
|
#12 | |
![]() ![]() OMFG
|
Quote:
|
|
|
|
|
|
|
#14 |
![]() ![]() Developer
|
Ok, here's what I think:
If you think you might want to progress seriously into programming, learn C/C++. If you'd just like to make a few simple games, learn LUA. Thing is, most people starting programming don't find that the language is the problem, it's the logic. E.g collision detection - it's basically the same in both languages, only the sytax is a little different. So if you're learning C, you'll probably encounter only a few more problems than in LUA. Pros of both: LUA: Slightly faster to learn Simple syntax (no messing with pointers and dereferences) Image loading code pre-created Programming on-the-go with TTLDE C/C++: Much more powerful and fast More widespread language for other platforms More reference material (the web's full of generic C help) Ability to port C/C++ games to the PSP OOP can be massively useful (c++ only) It's what the cool people use :icon_wink So there's my 2 cents/pence/rupees. Just in case you're interested, this is how my programming progressed: QBasic/Spectrum->Java->C++->C/C++
__________________
Developer of Tipster Unzip/Unrar ThrottleX RoboTORN3D ODEPsp ![]() Now, with the power of my PSP, I will finally RULE THE WORLD. Muhahahah. Last edited by AnonymousTipster; 03-12-2006 at 07:11 AM.. |
|
|
|
|
|
#15 | ||
![]() Quality Haxing Since 1991
|
Quote:
One thing to remember also, is if you want to program games or not. If you want to program a game and are just starting out, I would definitely recommend LUA. C/C++ has a lot of advantages, but it isn't as game-friendly as LUA is for beginners. If you're planning on making programs, LUA isn't the best language for that. If you're planning on making games and you're just starting otu, I would go with LUA. That way, if you want to make better games afterwards, it will be easier to learn C/C++ Also, one thing little OT, has anyone made a 3-D LUA game yet? I know that LUA has 3-D capabilities, but I don't remember a game ever being made in LUA that was 3-D.
__________________
Quote:
|
||
|
|
|
|
|
#17 | |
![]() ![]() Developer
|
Quote:
__________________
Developer of Tipster Unzip/Unrar ThrottleX RoboTORN3D ODEPsp ![]() Now, with the power of my PSP, I will finally RULE THE WORLD. Muhahahah. |
|
|
|
|
|
|
#18 | ||
![]() Quality Haxing Since 1991
|
Quote:
__________________
Quote:
|
||
|
|
|
|
|
#19 |
![]() ![]() Developer
|
My coding background is C, and more recently I've been working in Java.
I first started coding for the PSP using C. I've recently switched to LUA because I can be way more productive in LUA than C. No compiling, and I don't have to copy the executable to the PSP to test, I can just test in the windows luaplayer. The only reason I'd choose to write a game in C is if performance was a concern. I recently wrote a game proof-of-concept with loads of floating point ops which was unplayable in lua, but ran fine when I ported it to C. Lee |
|
|
|
|
|
#20 |
![]() |
I believe LUA is more like a scripting language so if you're familiar with html or vbs and java I think you'll be okay with LUA. :mrgreen:
but ofcourse you'll find C++ to be a bit more complex and scary at first than you would LUA (for some people) Last edited by Devun_06; 03-12-2006 at 04:54 PM.. |
|
|
|
|
|
#21 | |
![]() |
Quote:
|
|
|
|
|
|
|
#22 |
![]() |
I'd say go for either language. C can seem hopelessly complex (writing a Hello World program in C is waaaay more complex than writing one in Lua. See this: PSP Programming Tutorials in Lua - Lesson One, Hello World ) but in the long run C/C++ is going to do you more good if you're going to get into programming as a career. It's the standard.
However, if you're impatient (don't want to screw around with programming environments, toolchains, etc) and want to get programs up and running right away, I'd go for Lua. Lua is really a capable language - people really underestimate it. It has a lot of stuff built into it so you can access the PSP filesystem, 3D/2D graphics, WiFi sockets, etc. With Lua Tables you can do full-on object oriented programming with classes and Inheritance - people think tables are arrays - they can be but then you aren't taking full advantage of them. I'm not saying that you can't do this stuff with C but it's alot easier doing it in Lua. However with this ease of use there's also some serious deficiencies with Lua: -can't launch eboots (for security reasons) -graphics are a bit limited (images sizes of up to 512x512 pixels) -3D functions are really poorly documented -it's a bit slow -cannot and will not ever play mp3s |
|
|
|
|
|
#24 | |
![]() ![]() Developer
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| lua |
| Thread Tools | |
|
|