Coder Social home page Coder Social logo

bandwidthps1game's People

Contributors

cloudmracek avatar

Stargazers

Marton Tasnadi avatar Andrea Cultraro avatar Thiago Vieira  avatar Monzer Omer avatar Smaïl Hammour avatar  avatar DragoonSouls avatar  avatar  avatar Rossana Rocha avatar Luiz avatar  avatar Alexandre Saccol avatar Nontre avatar Jeremy Johnson avatar Jakub Vávra avatar Jeremy Weasley avatar Skiupace avatar  avatar Nicolas Gallo avatar  avatar  avatar Roger Winright avatar David Sanders avatar Marcos Sader avatar  avatar  avatar Isadora Gonçalves Ferreira avatar Maximilian Gerhardt avatar  avatar Tyler Wilding avatar Kiera Carman avatar marz avatar Alastair Carr avatar Laurence Louis Trippen avatar  avatar Anderson Paschoalon avatar Christopher Lee avatar Jorge Nachtigall avatar Lollie avatar Gavin R. Isgar avatar  avatar Octavio Percivaldi avatar  avatar Radek Lžičař avatar Stephen Christian Berana avatar ChampionLeake avatar Memorix101 avatar ReyeMe avatar  avatar Nicolas Mailloux avatar  avatar  avatar Erik Slovák avatar Walter Kaunda avatar Luiz Felipe Pereira Fontenele avatar Shrektopher avatar

Watchers

Alastair Carr avatar  avatar  avatar Stephen Christian Berana avatar

bandwidthps1game's Issues

SquareRoot0 XL line

Hola,

I saw your video, super cool btw. And I can't let pass this loooong line:

SquareRoot0(abs((pos.vx - enemies[j].pos.vx) * (pos.vx - enemies[j].pos.vx)) + abs((pos.vz - enemies[j].pos.vz) * (pos.vz - enemies[j].pos.vz)));

I don't know which compiler is used for compile to PSX, because depending on the compiler the stdlib implementation could change in sort kind. Also I dunno what the heck is SquareRoot0 (I sneaked in the SDK source code, but is fully assembly and exceed my knowledge), if you know and you want to explain me, would be really great!.

So...

  1. pos.vx - enemies[j].pos.vx and pos.vz - enemies[j].pos.vz -> can pass this to a variable for computes once.

  2. You're requiring for the Absolute Value, as you already know the abs value is just the positive value of any Real Number, so you can use a Macro Function -> #define ABS(N) (N < 0 ? -N : N). With this you avoid passing as argument and call to a function. Also, I think the implementation of abs function does the same thing (because is pure math logic description).

  3. Referencing to the previous point, you already getting the abs value when you do the multiplication. That's because of the two factors will have the same sing (- * - = +) and (+ * + = +). So, if I understood correct, you don't need to calculate the abs value. In case I understood wrong, just use the MACRO 🙂.

  4. (Optional). If you are lazy as me, use a MACRO for Cuadrado (no idea how to say it in english) -> #define CRD(N) (N * N).

So the final image will be:

#define ABS(N) (N < 0 ? -N : N)
#define CRD(N) (N * N)

int vx = (pos.vx - enemies[j].pos.vx);
int vz = (pos.vz - enemies[j].pos.vz);

SquareRoot0((CRD(vx))+(CRD(vz)));

This is an executable example in C Playground

I hope it help for the improvement of performance, I'm not a C dev so I can't guarantee.

Greetings from Argentina!. Super good job with this and the video, you got a new sub!.

iso file?

sorry but i dont see is or just dont know how to convert it into iso file i wanted to burn it into my cd but i dont see iso file i think i have to burn iso file i am not sure i just wanna play this game but i dont know where is the iso file does it work if i will just download it as zip and convert it into iso file. does it work like that? i just want to play that game

navíc jsem čech

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.