I'm a Programming Teacher. I've played games my whole life. I like supporting games that are multiplattform. I'm trying to become a Indie Game Developer. I love the old SNES RPG's and pixel art so my game is going to be a Secret of Mana 2 like game :)

Latest Media

We're sorry, but no images, videos or audio files have been added to this gallery.

If you would like to share media with the community, sign up and you can.

Blog RSS Feed Report abuse Latest Blog: Annotation

0 comments by Khazrak on Nov 24th, 2013

I've had a hard time think about how the game actually will function (not programming wise).
Use Hitpoints or more like Super Smash Brothers?

I'm not sure which function to implement next.
I started on a abstract way to do button combinations.
That lead me to Annotations in Java.

I could have solved my code by doing lots of if's, but I feelt that there has to be a better way.
So by making a Enum with all the actions buttons can do, a Interface with @ and then connecting the @Interface to the methods of my InputHandler I could invoke (by Java Reflection) the methods by the Enum.

So if I send the Enum Button.SHOOT to the test-method it runs the method in the InputHandler that has that Enum Value in its Annotation and by that can check if the button is pressed.

So I can check if buttons are pressed by checking the Enum's with the test-method, instead of coding every possible combination.

Happy to learn something new! But I haven't mastered it...

Groups
Bushido

Bushido

Other group with 30 members, open to all members

We fight with what other peoples lack - we of the Bushido Clan fight with Honor. A word that seems to be forgotten.

game design/ideas

game design/ideas

Hobbies & Interests group with 17 members, open to all members

we are a group that makes and or designs games, we are looking for members that are interested in joining to share and help others with their ideas. Message...

Game Idea Group

Game Idea Group

Web & Community group with 10 members, open to all members

Not all of us are game developers, but who is to say we don't have great game ideas? Here everyone can post their game ideas and concept art. Who knows...

game ideas

game ideas

Hobbies & Interests group with 7 members, open to all members

what i made this for is for people who have really good game ideas but dont know how to use softwares or dont have soft wares like me. also to have people...

Indie Devs

Indie Devs

Hobbies & Interests group with 1,079 members, open to all members

A group dedicated to indie and standalone game development.

Linux Gamers

Linux Gamers

Fans & Clans group with 2,898 members, open to all members

The group for gamers dedicated to Linux. No matter if game developers or game players all are welcome interested in Linux as a gaming platform.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Level
Avatar
Avatar
Offline Since
Jan 13, 2014
Country
Sweden Sweden
Gender
Male
Member Watch
Track this member
Statistics
Activity Points
87
Rank
23,223 of 460,746
Watchers
0 members
Time Online
1 second
Comments
3
Site Visits
283
Profile Visitors
2,269 (1 today)
Contact
Private Message
Send Now
Email
Members Only
Cyangmou
Cyangmou friends since Apr 27, 2013