Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


willpowered

Member Since 26 Dec 2011
Offline Last Active Yesterday, 03:11 AM

#5154253 Newb Questions

Posted by willpowered on 17 May 2014 - 06:53 AM

Assuming you want to make a simple game using HTML and Javascript, is there any reason you can't do it locally on your own computer, instead of going out and buying a domain name and setting up a website?

For a basic game, you probably won't need much more than a browser to run it.




#5136813 Switch or Not?

Posted by willpowered on 06 March 2014 - 09:00 AM

As others have said, if you're bored then you need to do some brainstorming. What kind of game do you want to make? Pick a game idea and make it.

If you're worried about not learning anything new, don't worry. You'll learn as you make games.

 

At this point, switching languages will only set you back if you have nothing you want to make with them.




#5059352 Scrolling Horror

Posted by willpowered on 04 May 2013 - 11:14 PM

public void scrollUp() {
	if (scroll_index <= 0) return;
	scroll_index--;

	refreshContentsPosition();
}

public void scrollDown() {
	if (scroll_index >= contents.Count() + (2 * 6) - 12) return; //todo: make sure this is the correct index, once you add more levels.
	scroll_index++;

	refreshContentsPosition();
}

 

The code speaks for itself. Obviously, upon review, it was not the correct index.

 

Dunno what came over me when I wrote that.




#5054466 Coding Style: Curly Braces

Posted by willpowered on 18 April 2013 - 01:36 AM

bool f1() {
	//...
}

bool f2() {
	//...
}

bool f3() {
	//...
}

if(f1()) {
	if(f2()) {
		if(f3()) {
			//...
		}
	}
}

 

To me, this is the clearest way. Why waste a line, when it's clear that if you have proper indentation, the close bracket will always align with the statement that opens it?




#5041678 c++ Entity system- please try help if you understand entity systems

Posted by willpowered on 10 March 2013 - 07:57 PM

So yeah, if someone can wrote me up some .cpp and headers for what i need i would be so happy

 

I don't think anyone is going to hold your hand and give you a bunch of code, either here or on the Allegro forums. You need to make some effort to understand the concepts yourself and at least attempt to solve the problem.

 

If you're interested in learning, I found a couple interesting posts about entity-component-systems.

http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/

http://www.chris-granger.com/2012/12/11/anatomy-of-a-knockout/




#5041674 2D scrolling game

Posted by willpowered on 10 March 2013 - 07:37 PM

Move the player, and then move the camera to the same position. Then when you draw, draw everything at an offset based on the camera's position.




#5035453 Need some motivation

Posted by willpowered on 22 February 2013 - 10:27 AM

If you're looking for a jump-start to your motivation, go watch Indie Game: The Movie.

I watched about 30 minutes and then got off the couch and started working again, because it was so damn inspiring!




#5009121 Ooops... XNA is dead?!.

Posted by willpowered on 10 December 2012 - 10:55 AM

The sadest part of this story is: they(persons) will teach us this crap(XNA) in the uni after this X-mas, instead of changing the program.


You can often apply the skills you learn using one technology to other situations using similar technologies. It's still going to be useful for you.


#5004284 Not quite sure where to start when it comes to drawing an array of sprites.

Posted by willpowered on 26 November 2012 - 01:50 PM

Something like that.

In the long run, what you really want is-

foreach (Something s in everythingList)
s.draw();

Ideally, "Something" should be a Sprite, GameObject... whatever you're working with. Add all your game objects to a list, and draw them all.


#5001929 Impotant! Books to start learning video game programming ! I need it...

Posted by willpowered on 17 November 2012 - 10:01 PM

I searched amazon and google but there are many books and i culdn't choose the best one. In google there are many advises like last time I asked a question how to create , so i a game engine and some said create a game engine and some said just program a game, so i am just confused in that things

I'm pretty sure he meant that as an alternative to buying books to read on game programming, you could instead research game programming through the internet.

Which I highly recommend. The internet is a richer source of knowledge than any handful of books can be. And the best part is- it's interactive! You can go to forums just like this one and ask for advice or help! The same can't be said of a book. Furthermore, books can be out of date, and base their code on old technology.
If you still intend to buy books, at least buy recent ones.


#5001928 I Am Starting Over. What To "Learn"?

Posted by willpowered on 17 November 2012 - 09:55 PM

the tutorial said that you cannot name a function with alphabetic characters, you need to leave no space between type and variable names, and also that you need to declare all variables in the header files

I hope it said non-alphabetic characters. Otherwise, it's wrong.
You can have a function named "abc", "abc2", "abC3", "abc_3", etc.
You cannot have a function named "ab+", "a b c", "3abc", "a.b.c.", etc.
These rules apply to a lot of languages out there.

As for leaving space between type and variable names, I'm not sure what it means. Do you mean vertical space?

It's often recommended to declare all variables in header files, if you can. It makes things less confusing down the road and keeps things organized.

If you already know C#, I'd stick with it for now. Don't worry about code semantics, and instead worry about learning more about actually making games.


#5001927 Just starting out in the programming world. Lost and need help.

Posted by willpowered on 17 November 2012 - 09:50 PM

Starting with C#, Java, or Python will be more beneficial to you. You'll be able to worry about making your game instead of worrying about basic tasks like memory management and pointers.


#4916423 Side scroller theory

Posted by willpowered on 24 February 2012 - 09:36 PM

boogyman has the right idea. Picture a camera following your character around the level. When your character moves, the world doesn't move to accommodate his new position. The camera does.
Just draw everything offset by the camera's position.


PARTNERS