Jump to content

I've been learning C# and using unity doing some basic stuff so far such player movement, collisions teleport pads as well as some basic AI where it just follows the player when it gets into a certain range but as ive been slowly progressing i don't understand whats happening in the code, do you guys have any tips to progressing more in C#.

 

thanks.

Link to comment
https://linustechtips.com/topic/786231-tips-for-game-development-in-c/
Share on other sites

Link to post
Share on other sites

If you can attach a debugger, set break points where you are having trouble and step through the code to see what goes on.

 

Or read the code itself, figure out where unknowns are defined and used elsewhere in code, etc.

Link to post
Share on other sites

1 hour ago, M.Yurizaki said:

If you can attach a debugger, set break points where you are having trouble and step through the code to see what goes on.

 

Or read the code itself, figure out where unknowns are defined and used elsewhere in code, etc.

ah okay ill give it a try, i think i might of jumped in to fast without actually starting with the basics :P 

Link to post
Share on other sites

On 2017-5-29 at 9:48 PM, manlykeweaver465 said:

do you guys have any tips to progressing more

You should have a look at Game Programming Patterns. In general you should be less concerned with 'implementation detail' and more concerned with overall architecture, design, principles, patterns and concepts. Once you garner an understanding and appreciation of those then you can begin thinking about how the rest:

On 2017-5-29 at 9:48 PM, manlykeweaver465 said:

player movement

On 2017-5-29 at 9:48 PM, manlykeweaver465 said:

collisions

(Quadtree/Octree)

On 2017-5-29 at 9:48 PM, manlykeweaver465 said:

teleport pads

On 2017-5-29 at 9:48 PM, manlykeweaver465 said:

basic AI where it just follows the player when it gets into a certain range

...will fit into that topology.

 

Of course there's nothing wrong with playing with the technical details right away but I'd caution not to go too far lest you end up in a terrible mess. Your situation is very much akin to floating on the surface of a vast ocean right now. Try not to drown.

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

1 hour ago, Nuluvius said:

You should have a look at Game Programming Patterns. In general you should be less concerned with 'implementation detail' and more concerned with overall architecture, design, principles, patterns and concepts. Once you garner an understanding and appreciation of those then you can begin thinking about how the rest:

(Quadtree/Octree)

...will fit into that topology.

 

Of course there's nothing wrong with playing with the technical details right away but I'd caution not to go too far lest you end up in a terrible mess. Your situation is very much akin to floating on the surface of a vast ocean right now. Try not to drown.

Ah okay i get you, ill have a look at that book also, thanks for the advice :) 

Link to post
Share on other sites

I suggest to do some C# witouth the game element first. Try to make some administration program or something. Then when you know what Classes, Objects, Constructors, Properties and Methods are I would suggest moving to game development.

PC: Case: Cooler Master CM690 II - PSU: Cooler Master G650M - RAM: Transcend 4x 8Gb DDR3 1333Mhz - MoBo: Gigabyte Z87x-D3H - CPU: i5 4670K @ 4.5Ghz - GPU: MSI GTX1060 ARMOR OC - Hard disks: 4x 500Gb Seagate enterprise in RAID 0 - SSD: Crucial M4 128Gb

Phone: Samsung Galaxy S6

Link to post
Share on other sites

3 hours ago, LUUD18 said:

I suggest to do some C# witouth the game element first. Try to make some administration program or something. Then when you know what Classes, Objects, Constructors, Properties and Methods are I would suggest moving to game development.

Yeah i get you, im gonna start out very basic researching about the fundamentals of programming then when i start to understand more complex things im gonna start doing projects then slowly building up 

Link to post
Share on other sites

3 hours ago, manlykeweaver465 said:

Yeah i get you, im gonna start out very basic researching about the fundamentals of programming then when i start to understand more complex things im gonna start doing projects then slowly building up 

I think this is the problem many aspiring developers have. They want to make something big, but they get discouraged by all the relatively complex stuff they see

 

As a side note, start on simpler games too. Tic Tac Toe and even Klondike Solitaire are pretty straight forward. If you want to get into fun stuff, you can try doing automaton games like Conway's Game of Life.

Link to post
Share on other sites

33 minutes ago, M.Yurizaki said:

I think this is the problem many aspiring developers have. They want to make something big, but they get discouraged by all the relatively complex stuff they see

 

As a side note, start on simpler games too. Tic Tac Toe and even Klondike Solitaire are pretty straight forward. If you want to get into fun stuff, you can try doing automaton games like Conway's Game of Life.

yeah i get you i don't think for me its because i want to make a big game its just that my college course is pretty crap lol and we haven't done much programming on the course so i guess I'm just eager to learn but yeah i understand what you mean start off with basic projects and learn the fundamentals. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×