Thursday, February 23, 2012

Update on Graphics engine
I am here at college bored out of my mind waiting for a class so i might as well give a report on my progress. Some of you might know that i am working on a tech demo for how graphics will be displayed. I had to scrap nearly all of it after finding out the two methods i was going to use were going to take some work.

(This is for any one thinks they will understand.)
How my program worked was by calling from a 2 dimensional array of char and find a picture based on that. well if i was going to use this method i would have to pass the object though while making the object and to do that i would require for me to keep passing it though methods or let the constructor run before using the pictures making a error somewhere in my code.

Anyways i have to go now. I have found clean easy way to do it now. However i have a error where my 5x3 grid is displaying as 5x1 which is a pain in the ass because i don't know why it is doing that.

Half working demo maybe up in 6 or 8 hours.

EDIT
To comment made after since google is being a ass and wont let me comment in my own blog for some reason.

Yes but, that has nothing to do with what i said.

The map is displayed in a char[][].
each element is a tile. I pass this though to my graphic panel and it updates what's displayed by based on whats in the char[][] and where.

My problem right is Java being an ass about object URL's

2 comments:

  1. I didn't understand program part and was confused.
    So you are going to use both images and text for game scenes/events/etc?

    ReplyDelete
  2. Ya I guess it was a bit confusing. and to think i am in college partly because of my great score on the writing section of the test.

    So a char is a character. a sting or a word has at least 1 char in it(okay not a string because a string could equal null which means it has nothing in it.)

    What i'm doing is saying if location 0,0 = $ then place wall pic at location 0,0. The char are used to find out what stuff goes where.

    ReplyDelete