Giter Site home page Giter Site logo

Make better project structure about 2dadventure HOT 8 CLOSED

 avatar commented on July 19, 2024
Make better project structure

from 2dadventure.

Comments (8)

 avatar commented on July 19, 2024 3

It was just a reminder :P

from 2dadventure.

sorinmiroiu97 avatar sorinmiroiu97 commented on July 19, 2024

Will do. As I said the project is still in progress, in its pre-alpha-unreleased-ever-ever version... I still have a lot to do. I will rename everything once I'll add the other forms and classes for the project.

from 2dadventure.

 avatar commented on July 19, 2024

I would suggest to add to these: https://github.com/soryncrash13/2dAdventure/blob/master/src/Game.cs#L26-L29
the private keyword to make it more clear eg: In Java they would have been public by default.
Also you might want to make these: https://github.com/soryncrash13/2dAdventure/blob/master/src/Game.cs#L28-L29
"float" instead of "int" to have more precision over your "physics" system.

from 2dadventure.

sorinmiroiu97 avatar sorinmiroiu97 commented on July 19, 2024

I'm gonna make those variables float, and those are by default private so there's no need to add the keyword, but I'll add it for more clarity. I'm still working with the collisions. They work just fine, but I want to use some other "mechanics" to say so for them. I think I'm gonna change the collisions today.

from 2dadventure.

 avatar commented on July 19, 2024

You might want to add: velocity, friction, dynamic and static objects and if you feel fancy about it kinematic objects are welcomed too :)
I can provide you some code but in Lua if you feel interested.

from 2dadventure.

sorinmiroiu97 avatar sorinmiroiu97 commented on July 19, 2024

I'd like that, yeah 😃 . I'll more things but firstly I have to make the movements, jump and the collisions more acurate. Well I made them today. I just have to put each one of them into a method in the main.cs so I can just call them in every form. I think I'm gonna update the code tonight. I'll call you when I do this. 💃 😆

from 2dadventure.

 avatar commented on July 19, 2024

https://github.com/soryncrash13/2dAdventure/blob/master/src/Game.cs#L81 - Better use ArrayList because you want to be able to dynamically allocate memory for each bullet.
Also if I were you I'd start to move some code from Game.cs.

from 2dadventure.

sorinmiroiu97 avatar sorinmiroiu97 commented on July 19, 2024

I'll move the code and make it cleaner, but first, as I told you I just want to finish all the assets for the game. Also I have to make the animations for the enemy too...hate that, but you gotta do what you've gotta do.

from 2dadventure.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.