Well after two years ive finally made my own game ( im happy) and i want to know some things about game making.
How to make a person jump , ive pondered this and tested but no avail.
how to make a general gravity
how to make "steps" like in Mario.
and ive heard of Tile based games like saying ---o---
--oo---
where - is air and o is land , but i dont get how that works.
anything would help and if you need me to clarify ill try.
Thanks :biggrin.gif:
Rollback Post to RevisionRollBack
Quote from Equeon »
One time, my sister walked in on me ma-
-king a custom map for Minecraft.
There is no single way of doing this and you will have to figure out your own way. Here's some pointers though.
Assuming you have a computation thread that iterates an X amount of times per second, you can do gravity by just subtracting vertical velocity by Gravity*dt (time between steps) and then updating position based on that velocity.
As for steps and blocks etc you will need collision detection that works with rectangles or triangles. I don't know the specifics on how that works with ramps.
As for your tile-based thingy. What is it exactly that you want? Do you want a map file format where you can define the tile-type for every 32x32 block? You can do this in plaintext even and have it interpret this and dynamically create the map. Iterate through the map file contents and edit some tile matrix or tile vector or whatever it is you want to use.
I had to read that twice to take that all in... I am probably going to learn Java sometime, just don't have the time.
There is no single way of doing this and you will have to figure out your own way. Here's some pointers though.
Assuming you have a computation thread that iterates an X amount of times per second, you can do gravity by just subtracting vertical velocity by Gravity*dt (time between steps) and then updating position based on that velocity.
As for steps and blocks etc you will need collision detection that works with rectangles or triangles. I don't know the specifics on how that works with ramps.
As for your tile-based thingy. What is it exactly that you want? Do you want a map file format where you can define the tile-type for every 32x32 block? You can do this in plaintext even and have it interpret this and dynamically create the map. Iterate through the map file contents and edit some tile matrix or tile vector or whatever it is you want to use.
I had to read that twice to take that all in... I am probably going to learn Java sometime, just don't have the time.
This is as much related to Java as astronomy is related to telescopes. This is fundamental maths and game design. Independant of the language of implementation.
So, what you are saying is that it is a general overlook of fundamentals in coding looking over a broad range of different languages? I see. Still, I think I will try and learn this summer.
So, what you are saying is that it is a general overlook of fundamentals in coding looking over a broad range of different languages? I see. Still, I think I will try and learn this summer.
Here's a simple assignment to work on gravity.
Take a cannon that shoots at projectile at a 45 degree angle from position (X,Y)=(0,0) in a (2D) environment with Gravity=1m/s^2. Take the projectile's initial velocity to be 10m/s in that 45 degree angle. Write something on paper or Java or your graphical calculator (BASIC ftw), that plots the course of the projectile. (Height versus Time, Distance versus Time).
I consider myself smart, but I am still a freshman. Granted I am two years a head of the basic math curriculum, this seems beyond my scope. I am planning to eventually take computer science and physics in the future, which will probably help with this kinda stuff.
Heh, now all this math has found a way to integrate into computer science. Now that you say something, using position, velocity, and acceleration formulas to simulate gravity is so obvious. /facepalm
The tile based thing is pretty easy. I can give a better example later, though. I got homework to do. :/
Rollback Post to RevisionRollBack
Windows 7 | Core i5 2500k | Patriot 8GB | HD 6870 | Capstone 450 | Z68ITX-A-E | Barracuda LP 2TB | Chronos 120GB | Lian Li PC-Q08B
Ultrasharp U2211H | Klipsch ProMedia 2.1 Klipsch S4 | RAT 9 | Das Keyboard
How to make a person jump , ive pondered this and tested but no avail.
how to make a general gravity
how to make "steps" like in Mario.
and ive heard of Tile based games like saying ---o---
--oo---
where - is air and o is land , but i dont get how that works.
anything would help and if you need me to clarify ill try.
Thanks :biggrin.gif:
I had to read that twice to take that all in... I am probably going to learn Java sometime, just don't have the time.
Thinking about coming a mod to simply not moderate.
So, what you are saying is that it is a general overlook of fundamentals in coding looking over a broad range of different languages? I see. Still, I think I will try and learn this summer.
Thinking about coming a mod to simply not moderate.
I consider myself smart, but I am still a freshman. Granted I am two years a head of the basic math curriculum, this seems beyond my scope. I am planning to eventually take computer science and physics in the future, which will probably help with this kinda stuff.
Thinking about coming a mod to simply not moderate.
The tile based thing is pretty easy. I can give a better example later, though. I got homework to do. :/
Ultrasharp U2211H |
Klipsch ProMedia 2.1Klipsch S4 | RAT 9 | Das Keyboard