[posted 1 week late]
[this is for last week --May 5]
I can't believe it's week 6 already. Looks like I'll have to spend the rest of the week coming up with an action plan for how these last 4 weeks should go. With the end of the quarter sneaking up this fast I'll need to spend a few hours this week figuring out what tasks we can accomplish in this limited time.
Back to previous problems though; this past week I ended up solving my CSS issue.
It was an asset loader problem with the level objects (it's always the freakin' loaders!!!). I didn't realize that the level objects contained the paths for their terrain PNGs because the game has it's own image loader function/class. I figured that all the image data would get loaded through image loader function but that isn't the case. Several of the pieces to this tutorial game are hard-coded for ease of readability and it ends up making the structure of the code a little sprawling.
Now that I'm through that headache I can focus on the 4 week crunch.
I will be spending this week digging into a 2D engine called Phaser because I'm starting to wonder if all of these headaches can be avoided with sprite sheets and atlases. I should be making more headway then I am. Also my impending graduation is definitely bringing my 3D trudge to the forefront of my mind.
So wish me luck on my super short 2D adventure.
Thanks for reading,
-Clay Francisco
Tuesday, May 13, 2014
Tuesday, April 29, 2014
My week back in Java Post #15
This past week I spent 3 days working with the Parts & Portals game group. Well... really just Daniel and myself. We had a fairly successful run of it. We got the enemy units turning and jumping and the player shooting bullets and a little health powerup working.
The AndEngine has some interesting quirks and I didn't spend enough time to really get a good feel for it but the bullets took us a while to implement because of the way the engine handles dynamic object spawning. The AndEngine requires dynamic object spawning be handled by a GenericPool class that the given subclass must extend. This is because the small amount of phone RAM must be tightly controlled. Java's regular garbage collection doesn't seem to cut it so it looks like the GenericPool class takes care of object loading from level to level.
If you don't want to use the GenericPool it seems like the only other option is to use the XML level editor to hard-code assets into the level. This works out great for health and powerups but doesn't work for dynamic badguys and bullets. It took us a few hours to figure all of this out but once we defined the two basic datatypes for the engine the rest of the work went pretty smooth.
Moving forward, once collision detection for bullets is in place, killing enemies should be a snap as the superclass already "knows how to die". Which will bring the game to a point where you are being chased by enemies that can kill you and that you can kill (plus there's life!).
Overall we had a pretty good time getting over their engine hump and we will spend this next week getting me over my HTML5/CSS3 hump.
Thanks for reading,
-Clay
The AndEngine has some interesting quirks and I didn't spend enough time to really get a good feel for it but the bullets took us a while to implement because of the way the engine handles dynamic object spawning. The AndEngine requires dynamic object spawning be handled by a GenericPool class that the given subclass must extend. This is because the small amount of phone RAM must be tightly controlled. Java's regular garbage collection doesn't seem to cut it so it looks like the GenericPool class takes care of object loading from level to level.
If you don't want to use the GenericPool it seems like the only other option is to use the XML level editor to hard-code assets into the level. This works out great for health and powerups but doesn't work for dynamic badguys and bullets. It took us a few hours to figure all of this out but once we defined the two basic datatypes for the engine the rest of the work went pretty smooth.
Moving forward, once collision detection for bullets is in place, killing enemies should be a snap as the superclass already "knows how to die". Which will bring the game to a point where you are being chased by enemies that can kill you and that you can kill (plus there's life!).
Overall we had a pretty good time getting over their engine hump and we will spend this next week getting me over my HTML5/CSS3 hump.
Thanks for reading,
-Clay
Tuesday, April 22, 2014
Combining Efforts Post #14
So I last decided to work on the off-line portion of the game: UI, start/login screen, asset loading, etc...
As I started diving into a completely new version of the UI and map panning I ran into some really weird CSS problems with my z-index and mouse event handlers. Somehow my event listeners aren't tied to the correct DOM element even though I'm working my way through a fairly good tutorial (that of course works just fine).
I'm not the only one hitting "critical mass" roadblocks or perhaps just project burnout? One of the teams making an Android game is having engine usability issues and with my recent foray into game engines we both have skill sets the other team currently needs. So our teams will spend the next week or so helping each other get our projects over this next little hump. I think both of our groups are also at the point where we just need some new creative life breathed into us.
Oh. It's the Parts & Portals game group (Daniel, Jacky and Jaron).
So the goal for my project for the week remains the same as it did for the past few weeks. I'll be explaining in more detail where I'm at technically in the client thread.
Thanks for reading.
-Clay
As I started diving into a completely new version of the UI and map panning I ran into some really weird CSS problems with my z-index and mouse event handlers. Somehow my event listeners aren't tied to the correct DOM element even though I'm working my way through a fairly good tutorial (that of course works just fine).
I'm not the only one hitting "critical mass" roadblocks or perhaps just project burnout? One of the teams making an Android game is having engine usability issues and with my recent foray into game engines we both have skill sets the other team currently needs. So our teams will spend the next week or so helping each other get our projects over this next little hump. I think both of our groups are also at the point where we just need some new creative life breathed into us.
Oh. It's the Parts & Portals game group (Daniel, Jacky and Jaron).
So the goal for my project for the week remains the same as it did for the past few weeks. I'll be explaining in more detail where I'm at technically in the client thread.
Thanks for reading.
-Clay
Tuesday, April 8, 2014
Decisions for moving forward. Post #13
After some careful evaluation we realized we weren't as far in the hole as we thought we were. Yes the client still has a long way to come and we need it for play-testing. But Zach has made pretty good progress on an ugly temp client in Elm that we will use to test vision, pathfinding and a few other "critical systems".
Once the Elm client is mocked up enough to show units and some basic terrain we can start testing.
Granted it won't be a visual feast but it will get the job done so we can keep moving forward with server logic.
Which means I will keep working on the 3D JS client. I am going back to the Babylon JS engine to experiment with their object loader. Now That I have some real JavaScript chops I am going to re-evaluate it's usability. I'm pretty sure after using ThreeJS on it's own for the past two months that it was just my noob-ness causing my problems.
Side note: I've heard some really good things about Visual Studio's JavaScript intellisense so I'll be checking that out this week as well. It also has TypeScript support (which I'm only partially curious about but will give a look).
Currently I am working on the BabylonJS model loader and terrain generation examples, looking into how they will translate/compose with the ThreeJS implementation we already have.
Side note 2: I have been informed that I once (maybe even more than once) promised videos of progress. Sorry about being a liar but I won't be able to get to videos until after I get more done on the client. I will put some videos up as soon as I have something worth showing.
So, goals for this week are:
Clay:
Get into the BabylonJS loader code and understand it's use properties.
Get a simple scene loaded with a couple of units and a few buildings.
(off-line, no server communication. Well... ideally it'd be spawning from the server)
Zach:
Getting Elm client to a critical testing point.
Test vision on the Elm client.
Thanks for reading,
-Clay
Once the Elm client is mocked up enough to show units and some basic terrain we can start testing.
Granted it won't be a visual feast but it will get the job done so we can keep moving forward with server logic.
Which means I will keep working on the 3D JS client. I am going back to the Babylon JS engine to experiment with their object loader. Now That I have some real JavaScript chops I am going to re-evaluate it's usability. I'm pretty sure after using ThreeJS on it's own for the past two months that it was just my noob-ness causing my problems.
Side note: I've heard some really good things about Visual Studio's JavaScript intellisense so I'll be checking that out this week as well. It also has TypeScript support (which I'm only partially curious about but will give a look).
Currently I am working on the BabylonJS model loader and terrain generation examples, looking into how they will translate/compose with the ThreeJS implementation we already have.
Side note 2: I have been informed that I once (maybe even more than once) promised videos of progress. Sorry about being a liar but I won't be able to get to videos until after I get more done on the client. I will put some videos up as soon as I have something worth showing.
So, goals for this week are:
Clay:
Get into the BabylonJS loader code and understand it's use properties.
Get a simple scene loaded with a couple of units and a few buildings.
(off-line, no server communication. Well... ideally it'd be spawning from the server)
Zach:
Getting Elm client to a critical testing point.
Test vision on the Elm client.
Thanks for reading,
-Clay
Tuesday, April 1, 2014
Spring Quarter Refresher. Post #12
I broke it.
Not sure how.
But the client is most certainly, broken.
Just after getting things all piped up properly I broke the UI somehow when refactoring the button layout and somehow reduced the FPS to 2-8 or so. Yup.
Put simply. We might just be in too deep for a two man team with our time constraints. The only way I can figure to lower the water level in the boat is to cut back on graphics as we aren't willing to sacrifice functionality or playability. Additionally, it is fairly straight forward for us to add more dimensionality to the graphics because the overall logic will always remain 2.5D.
Zach and I will spend this next week tearing down all of our expectations and building a new super clean SAP model/design. Granted, it feels like this will be a process of upheaval and chaos but it is really just the next step in creating a slick, maintainable end-product.
With our connection success we have proved that our framework does work. The excitement of having a communicating framework has sparked debate about simplifying the client in order to speed up the iteration process. We are actually both in agreement about the fact that simplification needs to be done (yet again), and are currently just debating which of the graphical components must make it into the SAP.
It seems we forgot to weight graphic workload as heavily as we should have. I believe it was partly do to the artist in me not wanting to sacrifice all the pretty polygons.
Once we find the minimum balance between iconographic communication and speed of iteration we will be unstoppable.
Here's to a great quarter.
Thanks for reading,
Clay Francisco
Not sure how.
But the client is most certainly, broken.
Just after getting things all piped up properly I broke the UI somehow when refactoring the button layout and somehow reduced the FPS to 2-8 or so. Yup.
Put simply. We might just be in too deep for a two man team with our time constraints. The only way I can figure to lower the water level in the boat is to cut back on graphics as we aren't willing to sacrifice functionality or playability. Additionally, it is fairly straight forward for us to add more dimensionality to the graphics because the overall logic will always remain 2.5D.
Zach and I will spend this next week tearing down all of our expectations and building a new super clean SAP model/design. Granted, it feels like this will be a process of upheaval and chaos but it is really just the next step in creating a slick, maintainable end-product.
With our connection success we have proved that our framework does work. The excitement of having a communicating framework has sparked debate about simplifying the client in order to speed up the iteration process. We are actually both in agreement about the fact that simplification needs to be done (yet again), and are currently just debating which of the graphical components must make it into the SAP.
It seems we forgot to weight graphic workload as heavily as we should have. I believe it was partly do to the artist in me not wanting to sacrifice all the pretty polygons.
Once we find the minimum balance between iconographic communication and speed of iteration we will be unstoppable.
Here's to a great quarter.
Thanks for reading,
Clay Francisco
Sunday, March 16, 2014
Connection Success! Now the fun begins. Post #11
So last night Zach and I got the client and server connected and talking. He has teams logging on and spawning the two default units we have. I think he had 5 teams with 10 units.
Of course we ran into cross-origin resource errors (that I'll explain in the Client thread) with my end but as soon as I make a few minor changes to allow the server to request graphics from my computer (a feature we'll need if we ever want to have downloadable skins) we'll be up and running, developing through iterative testing. We are pretty excited right now.
I don't have any screen shots to share because Zach's computer is the one with the Haskell server working.
We are meeting up on Tues. and should get all that stuff up then.
He did put a .exe up on our Git so that I can run our server on my end but because I don't have the proper modules yet so I wouldn't be able to edit the server. If you know about Haskell and Cabal hell then you know why this is and why I'm not super excited to get the platform working on my end.
It must and will happen in the next couple weeks though, if for no other reason than it's time. We both need to be working on both sides of the code base, at least in a limited fashion where we need to be able to share and examine each others code remotely and in real-time.
That's really all I have to report in this thread. I'm off to update the Client thread now.
Thanks for reading,
-Clay
Of course we ran into cross-origin resource errors (that I'll explain in the Client thread) with my end but as soon as I make a few minor changes to allow the server to request graphics from my computer (a feature we'll need if we ever want to have downloadable skins) we'll be up and running, developing through iterative testing. We are pretty excited right now.
I don't have any screen shots to share because Zach's computer is the one with the Haskell server working.
We are meeting up on Tues. and should get all that stuff up then.
He did put a .exe up on our Git so that I can run our server on my end but because I don't have the proper modules yet so I wouldn't be able to edit the server. If you know about Haskell and Cabal hell then you know why this is and why I'm not super excited to get the platform working on my end.
It must and will happen in the next couple weeks though, if for no other reason than it's time. We both need to be working on both sides of the code base, at least in a limited fashion where we need to be able to share and examine each others code remotely and in real-time.
That's really all I have to report in this thread. I'm off to update the Client thread now.
Thanks for reading,
-Clay
Wednesday, March 5, 2014
Distractions... Post #10
This past week was slower going than I wanted it to be, and it was all my fault. I got a (sorely needed) new Asus laptop with Windows 8 and spent far too many hours setting up my new development environment and forcing an Ubuntu partition onto it. Again, I must shoulder some of the blame for the delays because I have been a faithful Mac user for the past 5 years. My impending graduation, and the buzz about Win8 had brought to my attention that my once quite adequate PC skills had started to dwindle.
While Windows 8 cannot be named the sole culprit for this weeks delays, it most certainly played it's part. In the interest of not turning this into a bash-on-Windows post I will only mention the single most annoying feature I came across.
When you swipe, left-to-right, over the area of the track-pad where the buttons reside it "swipes-in" the MS store (whatever it's called). To back out you have to press "Win" then click on your desktop lifetile(?).
When you swipe, right-to-left, it "swipes-in" the control panel. This only takes clicking on your application or desktop to go back to whatever you were doing and is emulating touch functionality so I understand why it's setup that way. However, it is pretty annoying and it took me a couple days to even figure out HOW I was making it happen. I kept thinking I must have been pressing a key down as well or something.
Which begs the question; "Is that the only way to access the control panel on a non touch screen?"
If the answer is no; "Then why is it so hard to find the hot-key command to bring it up?"
These problems are of course minor annoyances that I eventually turned off but unfortunately Win8 users now know these come from a family of feature oddities strewn throughout the system. Which is really too bad because I like the new Flat-UI design and how it works on the touch screen. I really think it's a great interface for a tablet. It's just too bad you don't have a clearer and easier way to adjust how many of the touch features the OS is implementing on real computers.
Anyway...
Back to the project.
The only thing I succeeded in implementing was some minor refactoring of the GUI layout and some really bad animation and "onHover" events working in CSS3. I guess this means I did finally figure out that it would be way too expensive to do ray-casting to full 3D WebGL buttons.
Although, now that I think about it there may be a good way to attach a new canvas element that has the UI/HUD layer on it, and because it would be static compared to screen coordinates, you might be able to cache the objects and just keep them "unprojected" on the screen in 2D space. I'm pretty sure this is how caching is done for marquee selection for a stationary camera view. Hmmm.... I'll have to look into that later.
Sorry that was a kind of technical tangent.
I'm currently in the process of creating the structure of: Game Object, Entity super class, Unit & Building sub-classes. I'm using the structure from SimJS, the ultra light "game framework" package (literally 6 .js files) from WebGL Up and Running.
I really like the simple structure of his "SimObject" class and aside from some outdated loaders (that do work with his examples, but mine always got an error about using a Vector3D vs Vertex3 that came from inside three.min.js which meant I was asking it to do something in an old format and I tracked it down to one of the loaders but could never fix it so I just started over), it is a solid foundation. I think anyone new to game programming (but perhaps not programming in general) can benefit from taking a good look at his super simple but totally complete game model.
ughh... I'm pretty sure that was another technical tangent and I really don't wan't to move this post. oh well.
I'm out of steam anyway.
That's what I've been up to, thanks for reading.
-Clay Francisco
While Windows 8 cannot be named the sole culprit for this weeks delays, it most certainly played it's part. In the interest of not turning this into a bash-on-Windows post I will only mention the single most annoying feature I came across.
When you swipe, left-to-right, over the area of the track-pad where the buttons reside it "swipes-in" the MS store (whatever it's called). To back out you have to press "Win" then click on your desktop lifetile(?).
When you swipe, right-to-left, it "swipes-in" the control panel. This only takes clicking on your application or desktop to go back to whatever you were doing and is emulating touch functionality so I understand why it's setup that way. However, it is pretty annoying and it took me a couple days to even figure out HOW I was making it happen. I kept thinking I must have been pressing a key down as well or something.
Which begs the question; "Is that the only way to access the control panel on a non touch screen?"
If the answer is no; "Then why is it so hard to find the hot-key command to bring it up?"
These problems are of course minor annoyances that I eventually turned off but unfortunately Win8 users now know these come from a family of feature oddities strewn throughout the system. Which is really too bad because I like the new Flat-UI design and how it works on the touch screen. I really think it's a great interface for a tablet. It's just too bad you don't have a clearer and easier way to adjust how many of the touch features the OS is implementing on real computers.
Anyway...
Back to the project.
The only thing I succeeded in implementing was some minor refactoring of the GUI layout and some really bad animation and "onHover" events working in CSS3. I guess this means I did finally figure out that it would be way too expensive to do ray-casting to full 3D WebGL buttons.
Although, now that I think about it there may be a good way to attach a new canvas element that has the UI/HUD layer on it, and because it would be static compared to screen coordinates, you might be able to cache the objects and just keep them "unprojected" on the screen in 2D space. I'm pretty sure this is how caching is done for marquee selection for a stationary camera view. Hmmm.... I'll have to look into that later.
Sorry that was a kind of technical tangent.
I'm currently in the process of creating the structure of: Game Object, Entity super class, Unit & Building sub-classes. I'm using the structure from SimJS, the ultra light "game framework" package (literally 6 .js files) from WebGL Up and Running.
I really like the simple structure of his "SimObject" class and aside from some outdated loaders (that do work with his examples, but mine always got an error about using a Vector3D vs Vertex3 that came from inside three.min.js which meant I was asking it to do something in an old format and I tracked it down to one of the loaders but could never fix it so I just started over), it is a solid foundation. I think anyone new to game programming (but perhaps not programming in general) can benefit from taking a good look at his super simple but totally complete game model.
ughh... I'm pretty sure that was another technical tangent and I really don't wan't to move this post. oh well.
I'm out of steam anyway.
That's what I've been up to, thanks for reading.
-Clay Francisco
Subscribe to:
Posts (Atom)