Jump to content

  • Log In with Google      Sign In   
  • Create Account


superman3275

Member Since 08 Sep 2012
Offline Last Active Today, 08:22 PM
-----

#5169654 Passing Objects

Posted by superman3275 on Yesterday, 08:58 PM

Apparently, I was wrong. I retract my statement. 




#5169543 What is super().__init()

Posted by superman3275 on Yesterday, 11:41 AM

 

 

Yes i do when learn about the 'basic' of python,but i never learn about class much,since the books i read never using class on their example.But after reading that books and look some example on internet i realize that i must learn about it much ^^

 

For a book, I can recommend 'Learning Python'. But there's also many internet courses, amongst them is http://learnpythonthehardway.org/ which I think is the most appreciated python course on this forum. I'm quite sure it covers basics of OOP and such. Good luck with your education! smile.png

 

In the Python world, LPTHW is great for everything but OOP. It's unanimously agreed that the OOP section in that book is its major downfall.

 

I recommend you just look at examples of programs which use classes, and try writing some OOP programs yourself. OOP is the kind of thing that doesn't really "click" until you start using it yourself.




#5169406 [Game] How do i make a camera.class?

Posted by superman3275 on 26 July 2014 - 06:31 PM

We're going to need more information. What API / Framework / Library are you using? How is your code structured (it's hard to just read through all of your source code and understand it. Furthermore, few of us have the time)?

 

You're going to need to clarify your question if you want robust answers.




#5169403 Declaring temporary variable to save 1 multiply?

Posted by superman3275 on 26 July 2014 - 06:26 PM

Generally, if you have a large expression in which different parts of it meaningfully represent different values which make up the equation, then it makes sense to do this.

 

For example, it would be fruitless to do this when you're just doing some arbitrary operations. But if you have a formula which uses variables in it which you have to calculate, then it makes sense to abstract away these variables. In the distance formula:

 

d = sqrt((x2-x1)^2 + (y2-y1)^2)

 

(x2-x1) and (y2-y1) represent meaningful values: the x and y distance. Thus it would make sense to abstract the formula away to:

 

d = sqrt(xdistance^2 + ydistance^2)

 

Where:

 

xdistance = (x2 - x1)

 

and

 

ydistance = (y2-y1)




#5169401 What is super().__init()

Posted by superman3275 on 26 July 2014 - 06:22 PM

It runs the parent class' Constructor. More formally, it gives a version of the Player object which in the form of the Player objects parent class.




#5169397 I've decided unity

Posted by superman3275 on 26 July 2014 - 06:06 PM

Using JavaScript inside Unity is slightly different to using it under web dev.

Very different :)!




#5147036 Great laptop for game development? (Budget of +1200,- euros)

Posted by superman3275 on 14 April 2014 - 10:14 PM

I use an Ideapad y500 (You can get a y510p), and it's absolutely amazing. It's incredibly fast, and the new y510P supposedly has great battery also. It also has everything on your list.

 

 

There is no DDR-5

Yes there is. It's used in almost all modern graphics cards.

 

 

Processor needs to be at least 3.0 Ghz these days

In a laptop? You're dreaming. You want around 2.4 Ghz.




#5141872 mingw

Posted by superman3275 on 24 March 2014 - 08:26 PM

MinGW allows programmers to use the (amazing) GCC compiler on Windows.




#5141850 ive made a simple pong, what next?

Posted by superman3275 on 24 March 2014 - 06:47 PM

I guess I would not try to get a better understanding of a language (build a routine using it) by developing a game.

I'd probably go for solving Google Code Jam problems ... or similar coding challenges with C# and then return to learning game development with Unity.

 

IMO what you want to get better at is using data structures and algorithms efficiently in C# ... and with the ones you need for game logic you might not get the best mileage out of your endeavours.

This is fairly wrong. If he wants to develop games, he should be working on his game development skills. Unless he's making large, 3D games, he won't need Algorithms (unless you count things like Sweep and Prune, but at the same time, those won't be needed unless you have a very complex 2D game). Data Structures are an integral part of C#, and I'd be surprised if he couldn't work his way around Arrays, Queues, and Stacks.

 

What he needs to do is make games. That's how you get better, it's a proven technique.

 

To the Original Poster: I made Breakout after Pong, for me it was a natural transition. Maybe you can try that too?




#5141735 There got to be a better way to manage animations.

Posted by superman3275 on 24 March 2014 - 11:10 AM

Your animation management appears to be a finite state machine, which doesn't need to be hardcoded with constants and ifs and enums.

Instead, you should define a data structure to represent animation definitions, loaded from external files and processed by a generic animation manager. Your current ManageAnimation method is in class IActor, but it isn't generic: it assumes a number of states and events exist.

This is spot on. Read this for a great introductory tutorial to creating FSM's.

 

Here's another one which uses Enumerations, but is still very general. It might be easier for you to use this one, because it somewhat follows your current train of thought.




#5141459 Whats the best language for game development?

Posted by superman3275 on 23 March 2014 - 09:53 AM

I will say it again. There's no perfect language: It's a personal opinion. This thread opens up a can of worms, and I'm going to message the mod so it can be locked.




#5141455 Whats the best language for game development?

Posted by superman3275 on 23 March 2014 - 09:47 AM

There's no perfect or best language. You need to find one you're comfortable with and learn it's ins / outs. There aren't very many good video resources out there, so I suggest you get a book.




#5115276 I have got am if-statement problem

Posted by superman3275 on 07 December 2013 - 11:37 PM

As one of the few members on here who uses Python for games:

What library are you using?

What does the Stars array do?

How does the click array work?

Some of these can be fixed if you *post full source code*. Then I can help you.

Cheers ;)!


#5115176 Game Engine, How do I make one

Posted by superman3275 on 07 December 2013 - 01:36 PM

You really don't need to make a game engine. Just make games, and you will eventually have reusable parts.

 

I recommend you start with Python + Pygame.

 

Cheers :)!




#5115175 How to program a zelda style game

Posted by superman3275 on 07 December 2013 - 01:34 PM

You can probably adapt the tile system in your Sonic game to a Zelda game. You're gonna have to program:

 

Pathfinding!

 

Enemy AI!

 

RPG Style Leveling / Inventory!

 

And Plenty of other stuff to make your game a success.

 

But don't give up! If you can remake sonic, you can definitely make an awesome zelda game!

 

(You can also look at my new blog post about a semi-similar game)

 

Cheers :)!






PARTNERS