Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

Next up:

Levelgeneration
- 0 (0%)
World richness
- 0 (0%)
World Interaction
- 0 (0%)
Game-Story
- 0 (0%)
Animation
- 0 (0%)
Sound
- 0 (0%)
Game-Mechanics
- 0 (0%)

Total Members Voted: 0

Voting closed: September 17, 2011, 12:37:34 pm


Pages: 1 ... 7 8 [9] 10 11 ... 16

Author Topic: Let's Dev (again): Camera ON! Next up: DEATH by GUI  (Read 20580 times)

eerr

  • Bay Watcher
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #120 on: September 17, 2011, 02:54:58 pm »

*snickers*
mining will involve blowing high-pressure air.
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #121 on: September 19, 2011, 05:08:36 am »

Astro blaster. I love it.  8)

Spent the weekend drinking myself into a stupor, there will be more programming this week.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

eerr

  • Bay Watcher
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #122 on: September 19, 2011, 03:34:07 pm »

Astro blaster. I love it.  8)

Spent the weekend drinking myself into a stupor, there will be more programming this week.

Yes, but you won't get people to take the game seriously.

doooo something :/

(is filled with regret.)
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #123 on: September 19, 2011, 04:02:26 pm »

take the game seriously.
Wait what? When was that ever going to happen??! ;)

Anyway, current status: http://nam.siquo.net/webgames/lets-dev/
You can drag to look around, don't press AWSD or it will crash :)

Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

eerr

  • Bay Watcher
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #124 on: September 19, 2011, 04:14:35 pm »

take the game seriously.
Wait what? When was that ever going to happen??! ;)

Anyway, current status: http://nam.siquo.net/webgames/lets-dev/
You can drag to look around, don't press AWSD or it will crash :)
You don't want zero respect.
Trust me.
Logged

Biag

  • Bay Watcher
  • Huzzah!
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #125 on: September 19, 2011, 04:39:47 pm »

Someone fill me in. Why does naming a weapon "astro-blaster" destroy Siquo's respectability?
Logged

eerr

  • Bay Watcher
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #126 on: September 19, 2011, 04:42:40 pm »

Someone fill me in. Why does naming a weapon "astro-blaster" destroy Siquo's respectability?
Everybody starts making fun of astroblaster and ignoring Siquo entirely.
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #127 on: September 19, 2011, 06:22:48 pm »

Oh, I don't mind. It's supposed to be a fun project/cooperative forum game :) If nobody here listens to me anymore, I'm still going to continue.

I've been doing some writing, but quickly demotivated myself by saying that it's pointless because so much writing doesn't have a place in a game like this. Nevertheless, I'm going to put what I have here, just because I want to save it somewhere.
Well, how'd you like this to be implemented? Just showing a wall of text probably isn't going to work.

Siquo's respectability
After this weekend, there's not much left of that...
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #128 on: September 20, 2011, 03:01:34 am »

Hey Siquo, how are you going with camera logic?
I've made games before that had hard coded limits for camera location, so when you walked all the way to the ends of the level it would stop scrolling, but I'm working on something that can have variable level size and the level is constructed of an array of tiles, but for some reason it either will not go all the way to the edge of the level, or I get null pointer exceptions when it goes too far down or left.
So yea, have you got a moving camera working yet that I can steal logic from?

EDIT:
Wait, I think I am getting there, at least it will print to the edge tiles and not crash... But it doesn't print the edges... Never mind, I'll get this.
Spoiler (click to show/hide)

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #129 on: September 20, 2011, 03:19:42 am »

UHmmm, no idea? It's just a floating amount of tiles.

I'm more concerned about culling: how will I determine which tiles to draw and which not to draw, which ones are in the current viewport, as this might really screw up fps on large maps.

I'll post some code tonight.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #130 on: September 20, 2011, 03:23:04 am »

Culling is done with a camera.
It is basically two floating points that determine the top left vector of the screen. You can then divide that by the tile size to find the first tile in an array to print, and subtract the modulo of the calculation to find the offset, giving you a nice smooth scroll effect.

Fuck, maybe we should just get Vector in here.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #131 on: September 20, 2011, 03:46:28 am »

Oh but I have a top left vector, and a width&height.

My problem is that my 2D array is skewed by 45 degrees, as my thing is isometric:  http://nam.siquo.net/webgames/lets-dev/

So it's not a square out of a 2d array, I want... a diamond....... Okay, I think I just answered my own question :)
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #132 on: September 20, 2011, 03:51:47 am »

Now when did we agree on that!
Have you been listening to the pole again? I warned you about that! Although are you still keeping tiles in a 2d array?

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #133 on: September 20, 2011, 03:56:43 am »

Yes, the isometric is just the view, as Glyph taught me how to use an MVC-structure. So I can just take that same world/array/objects/terrain, and display it as a 2d grid like yours, or as a roguelike, or as anything, really.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Let's Dev (again): We Almost haz a decision. It shall be gratuitous.
« Reply #134 on: September 20, 2011, 04:02:41 am »

Nice work Glyph! Anyway, I did find this, it is designed for xna, but it goes over the logic to find the shape you need to print, so it might save you some effort.

EDIT: Wrong link, that was for the nest page.
EDIT 2: Wait, that one is for hex, not iso... Ooh, I see what they did, clever! Ok, yea, your going to need to read over both pages for the full thing.

Also, figured out my problem... It is because THE WORLD HATES ME!!!
Pages: 1 ... 7 8 [9] 10 11 ... 16