Author Archives: Anthon Fredriksson

About Anthon Fredriksson

2013 Programming

Draw Manager

Today I have polished the state machine and added a DrawManager wich for now, clears the screen with a nice yellow color and presents it.A simple Entity class is made wich will hold all game objects.

Tomorrow I will be adding a sprite class that will load a file and get it to draw on the screen.

/ Comments Off on Draw Manager
Program: Programming

Draw Manager

Today I have polished the state machine and added a DrawManager wich for now, clears the screen with a nice yellow color and presents it.A simple Entity class is made wich will hold all game objects.

Tomorrow I will be adding a sprite class that will load a file and get it to draw on the screen.

/ Comments Off on Draw Manager
Program: Programming

Project Plan

Project plan
Name: ArkanoidTeam members: Anthon Fredriksson and Laban melanderDeadline: 2014 January 19thGame genre: Arkanoid, Arcade
A simple arkanoid game that has one paddle, multiple balls and multiple bricks with different levels. You start with one ball and you have to destroy all of the blocks to reach to the next level. Sometimes when you destroy a block, a drop will spawn and you get some advantages when you pick it up.
Blocks:9 different. the lowest has 1 level(destroys on one hit) and […]

/ Comments Off on Project Plan
Program: Programming

Project Plan

Project plan
Name: ArkanoidTeam members: Anthon Fredriksson and Laban melanderDeadline: 2014 January 19thGame genre: Arkanoid, Arcade
A simple arkanoid game that has one paddle, multiple balls and multiple bricks with different levels. You start with one ball and you have to destroy all of the blocks to reach to the next level. Sometimes when you destroy a block, a drop will spawn and you get some advantages when you pick it up.
Blocks:9 different. the lowest has 1 level(destroys on one hit) and […]

/ Comments Off on Project Plan
Program: Programming

State engine

So far, I have finished the state engine.
Right now it only loads one state, the menu state but you will be able to switch states from anywhere, making it as flexible as I can.

I think I will work on the Input Manager right now. Im waiting for Laban to wake up so that we can make up our project plan. That is why I will create core functions that will be independent of what type of game to make.

December 20, 2013 / Comments Off on State engine
Program: Programming

State engine

So far, I have finished the state engine.
Right now it only loads one state, the menu state but you will be able to switch states from anywhere, making it as flexible as I can.

I think I will work on the Input Manager right now. Im waiting for Laban to wake up so that we can make up our project plan. That is why I will create core functions that will be independent of what type of game to make.

December 20, 2013 / Comments Off on State engine
Program: Programming

Working on a level editor

I´m working on a level editor to use in future games. The level editor is made in JavaScript and I will soon release it in public.
 TODO:Set custom dimension for gameAdding support for multiple layersAdding support for custom tiles – I have to make this very flexible. I have some thoughts in autoloading img from url.Adding auto generated map ready to be edited
Here is a picture of how it looks right now.

I drew this myself, […]

/ Comments Off on Working on a level editor
Program: Programming

Working on a level editor

I´m working on a level editor to use in future games. The level editor is made in JavaScript and I will soon release it in public.
 TODO:Set custom dimension for gameAdding support for multiple layersAdding support for custom tiles – I have to make this very flexible. I have some thoughts in autoloading img from url.Adding auto generated map ready to be edited
Here is a picture of how it looks right now.

I drew this myself, […]

/ Comments Off on Working on a level editor
Program: Programming

Is point within a rectangle

I came up with this neat function to check if a point [x,y] is within a rectangle [x, y, width, height].
It´s made in Javascript but can be applied to ALL languages.
// CommentUtils.pointWithinRect = function(point, rect) { var px = point[0]; var py = point[1]; var top = rect.y; var left = rect.x; var bottom = rect.y + rect.height; var right […]

/ Comments Off on Is point within a rectangle
Program: Programming

Is point within a rectangle

I came up with this neat function to check if a point [x,y] is within a rectangle [x, y, width, height].
It´s made in Javascript but can be applied to ALL languages.
// CommentUtils.pointWithinRect = function(point, rect) { var px = point[0]; var py = point[1]; var top = rect.y; var left = rect.x; var bottom = rect.y + rect.height; var right […]

/ Comments Off on Is point within a rectangle
Program: Programming

Post Alpha

Efter mycket om och men har man nu en blogg. Jag visste in att Google tillhandahöll bloggar så det var ju perfekt för en Google-älskare som jag.

Jag blev just färdig med min map generator i Javascript. Nu ska jag bara optimisera terräng generation.
Sedan fick vi en uppgift i C++ att skapa ett spel, 2 och 2 i grupper. Hand in någonstans i början av Januari.

Hoppas du som läser har en riktigt god jul!

/ Comments Off on Post Alpha
Program: Programming

Post Alpha

Efter mycket om och men har man nu en blogg. Jag visste in att Google tillhandahöll bloggar så det var ju perfekt för en Google-älskare som jag.

Jag blev just färdig med min map generator i Javascript. Nu ska jag bara optimisera terräng generation.
Sedan fick vi en uppgift i C++ att skapa ett spel, 2 och 2 i grupper. Hand in någonstans i början av Januari.

Hoppas du som läser har en riktigt god jul!

/ Comments Off on Post Alpha
Program: Programming