Lua Script Game

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Lua Script Game

Post by dandymcgee »

Screenshot:
Image

I was in the middle of testing a lot of different things last time I played with this code (3-4 months ago), so it's not in the most readable of states right now. There are a few comments here and there, but the majority of them are debug code rather than useful information.

There are also .txt files in the data and scripts subdirectories with information regarding what the files do. The documentation is limited, but will give you a basic understanding if you'd like to edit how fast a player walks or something like that.

I'm sorry the project isn't in a better state for other people right now, but feel free to take a look and let me know if you have any questions. Thanks for your interest!

Project v0.46c Download: http://dandymcgee.webs.com/Lua%20Script ... 00.46c.zip

I'm not sure if I'll ever go back and do anything with it, the code started getting pretty messy towards the end. Albeit very primitive and hacked together, there may be something that someone can take from looking at it.

[rant]
I know the first thing every newbie programmer is told is that "RPGs are BAD ideas and you should NOT EVER try them as a first, second, or third project". Although I agree that no newbie is going create the latest and greatest, I think trying makes for an interesting experience. One can learn a lot from all of the issues encountered while attempting such a huge feat, although frustration levels are always high and sometimes the things learned may not be so great and may end up being retained as bad habits for years to come. ;)
[/rant]

Note: Attempting to compile this project is most definitely not recommended as one would probably die of old age before they could do so successfully. The .exe is there, so feel free to play with what's in the scripts. The source code is included in case you would like to see how something is done, rather than allowing easy modification.

Let me know what ya think.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Lua Script Game

Post by dandymcgee »

Interesting, no comments whatsoever. Uhh, I added a pretty picture? :mrgreen:
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Lua Script Game

Post by MadPumpkin »

Well it looks great, I haven't looked at the code because... Quite frankly their is quite a bit more than necessary I'm sure, by the way you put it that is. The game runs quite nicely and it looks pretty well done. I love the textures you used on the rocks, they remind me of an old MMO I used to play at a very young age... I forget the title but, very nice.
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Lua Script Game

Post by dandymcgee »

MadPumpkin wrote:Well it looks great, I haven't looked at the code because... Quite frankly their is quite a bit more than necessary I'm sure, by the way you put it that is. The game runs quite nicely and it looks pretty well done. I love the textures you used on the rocks, they remind me of an old MMO I used to play at a very young age... I forget the title but, very nice.
Thanks! Yeah, the code is far from anything you'd want to look at, but I suppose the data files might be of interest if you were bored enough to make you own object lol.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Lua Script Game

Post by MadPumpkin »

dandymcgee wrote:
MadPumpkin wrote:Well it looks great, I haven't looked at the code because... Quite frankly their is quite a bit more than necessary I'm sure, by the way you put it that is. The game runs quite nicely and it looks pretty well done. I love the textures you used on the rocks, they remind me of an old MMO I used to play at a very young age... I forget the title but, very nice.
Thanks! Yeah, the code is far from anything you'd want to look at, but I suppose the data files might be of interest if you were bored enough to make you own object lol.
Yea I actually looked at those last night. Very nicely done... As far as I know that is. I don't use LUA yet... Haha but great job man!
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: Lua Script Game

Post by MrDeathNote »

I've had a quick look over this, although i don't have time to get into all the in's and out's of the code I do like wat you've done. Nice work man, i'll maybe come back and have a much longer look at it when i have the time. :)
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Lua Script Game

Post by dandymcgee »

MrDeathNote wrote:I've had a quick look over this, although i don't have time to get into all the in's and out's of the code I do like wat you've done. Nice work man, i'll maybe come back and have a much longer look at it when i have the time. :)
Cool thanks. As this week and next are finals, I don't have much spare time right now, but I am in the process of rewriting a lot of it. I'll likely end up posting a new much cleaner version when I get the chance, but again it may not be for a while.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply