Search found 9 matches

by TheKraigose
Sat Apr 16, 2011 5:16 am
Forum: General
Topic: Lua string functions - How do I do this?
Replies: 3
Views: 1996

Re: Lua string functions - How do I do this?

Robin wrote:I'm not sure what exactly the question is?
I actually figured it out.

My question though was "how do you do strings and file handling in Lua". Sorry about earlier DX
by TheKraigose
Sat Apr 16, 2011 2:11 am
Forum: General
Topic: Lua string functions - How do I do this?
Replies: 3
Views: 1996

Lua string functions - How do I do this?

Okay, I'm kind of stumped on one thing - Lua's string functions. I'm trying to write a parser for my Love2D-based map editor, which has the format as followed: -- Comment header for no reason. map[1] = {1, 2, 3} objmap[1] = {55, 66, 77} It may look similar... because it's actually an included LUA fi...
by TheKraigose
Fri Apr 15, 2011 5:25 pm
Forum: Games and Creations
Topic: Project Dominion Ep 1 + PDomEdit Map Editor
Replies: 5
Views: 2981

Re: Project Dominion Episode 1 (very alpha) - by Kraigose

Guys and gals, I have great wonderful news. http://i773.photobucket.com/albums/yy16/KraigTheC/Project%20Dominion/th_pdomedit1.png There is now an official map editor for Project Dominion! I call it PDomEdit right now. It uses Love2D and heavy Lua scripting! It currently has these features: Save to e...
by TheKraigose
Thu Apr 14, 2011 9:26 pm
Forum: General
Topic: Waiting.
Replies: 15
Views: 5274

Re: Waiting.

Good example. if isPaused == false then isPaused = true -- this flag stops the main game rendering and logic else isPaused = false -- this flag unfreezes game rendering and logic end How about: isPaused = not isPaused ? Ah! I was not familiar with the not keyword! Does it basically act like !varNam...
by TheKraigose
Thu Apr 14, 2011 3:26 pm
Forum: General
Topic: Waiting.
Replies: 15
Views: 5274

Re: Waiting.

I'm not sure if it helps or anything, because I'm not knowing the specifics of exactly what you are trying to accomplish. However, when it comes to waiting... one thing I notice is I'm able to do a countdown clock method. This is a simple example from my own game: -- in player.lua pauseCooldown = 60...
by TheKraigose
Thu Apr 14, 2011 3:14 pm
Forum: Games and Creations
Topic: Project Dominion Ep 1 + PDomEdit Map Editor
Replies: 5
Views: 2981

Re: Project Dominion Episode 1 (very alpha) - by Kraigose

Thanks for the replies, guys. I am surprised at how easy Git was to set up, even on Windows 7.

I got a GitHub account and got a repository going:

https://github.com/TheKraigose/Project-Dominion
by TheKraigose
Thu Apr 14, 2011 3:41 am
Forum: General
Topic: Noob looking for help!
Replies: 10
Views: 3376

Re: Noob looking for help!

I'm a newbie to the forum as well! I hope you enjoy your stay, regardless. Here's a tip about Lua - it's really easy to get into, and with love2d, it's really powerful once you get used to some quirks. I recommend the best way, as I did, is to dive in. A tip - comment often - specifically at the top...
by TheKraigose
Thu Apr 14, 2011 3:30 am
Forum: Games and Creations
Topic: Project Dominion Ep 1 + PDomEdit Map Editor
Replies: 5
Views: 2981

Project Dominion Ep 1 + PDomEdit Map Editor

Project Dominion Episode #1 What is it? Back in 2007 I started developing wacky ZDoom mods, but lately I've been wanting to do more standalone coding work. As a stepping stone I stumbled upon Love2D, and am currently working on a project based on this concept: The story revolves around a shy Canadi...
by TheKraigose
Tue Apr 12, 2011 5:39 pm
Forum: General
Topic: Turning an image
Replies: 13
Views: 3790

Re: Turning an image

I actually had to do this the other day for an overhead shooter I'm developing. My method is not the fastest, but it works for what I need to do. I convert the radians to degrees, perform my calculations, then convert it back to radians using the corresponding math.* functions. It's easier and seems...